Questions tagged [pointers]
The pointers tag has no usage guidance.
16
questions
2
votes
1answer
67 views
Pointer to array gets highest bit toggled by … compiler? (dsPIC33EP & XC16)
Brief:
Pointer to a const-int-array, nested in a struct
Using ptr to this struct (type) in various places
ptr-deref causes address-error, because value was changed from i.e. 0x00AE to 0x80AE -> ...
0
votes
0answers
26 views
How to pass a DBWx-value 2 block-calls deep on Siemens S7-400/Simatic
I'm working on code that was transported from a Siemens S5 PLC to S7. The code works with an old FC(FC2 in the example) that uses a WORD-input called "BNR" to load/save data. When block FC2 ...
0
votes
1answer
10 views
Pointer to a reception buffer seems to have zero in all the other elements differents but the zero index , why with an STM32F401VE
how are you?. I'm having some trouble analizing streamed data. Recently I made a program that analizes streamed data and works for the first message of the stream as you can see in the following post
...
1
vote
0answers
15 views
Arduino esp01 UART connected server with driver
I have a project of WiFi oven driver and I would like to know if I don't overcomplicate any aspects. Or are there any existing tools for what I'm trying to do.
I decided, to connect mentioned devices -...
0
votes
0answers
31 views
Will the following ATSAMD21 series code properly configure SysTick interrupt?
I haven't seen any examples of registering ISRs in Atmel Studio 7, but I've given the following code a go in my IDE.
...
0
votes
1answer
33 views
XC8 Pic function ptrs looks optimized away
The problem is - new_handler in OWT_RegistrateHandler always equals &_DummyHandler and i ...
0
votes
0answers
126 views
Why bad data is read from SPI Flash
I have a device in which there is a SPI flash and a I2C EEPROM, W25Q256JV (32MB) and AT24C1024 (1MB) respectively.
The MCU writes data packets in the flash fifo and saves its read write pointers in ...
1
vote
0answers
205 views
PIC18F4550 - Display 16X4 and menu with more than 4 items
I need to print a list of items of a menu in a 16x4 LCD using a PIC18F4550. I already did it using MPLABX and XC8 compiler and it worked fine, however, I need to migrate it to mikroC environment. But, ...
0
votes
1answer
103 views
Using pointer of a function's returned value
I would like to know if there are possibilities to change the following code:
...
2
votes
1answer
112 views
Using Pointers to implement a filter
I'm trying implement a fairy basic filter, and right now I have just some simple test code for me to enter in values. It errors out on the line when it gets to where I call the function I have written....
-1
votes
2answers
143 views
STM32F4 series: what does the '->' operator? [closed]
Reading some C files related to programming an STM32F4 series Arm controller, I found the following instruction:
...
0
votes
1answer
194 views
C Language Pointers Question [closed]
Not sure if this is the correct place to post a programming based question so will have a go anyway.
Attached below is a piece of code and a table where I have to fill in the blanks. Just to clarify, ...
2
votes
3answers
406 views
Reading char values, returning 16 and 8 bit values?
I'm reading a internal memory block, im declaring a tracking variable and the start address and end address of the block"
...
0
votes
4answers
916 views
pointers to access memory
A quick answer required !
#define PortA_Data (*(volatile unsigned long*)0x40004000)
here in this example I linked PortA_Data with an address, can any body ...
3
votes
1answer
236 views
Memory deallocation exception when using free()
I am currently working on a project that requires some allocation and deallocation of large arrays on a PIC32MX775. I have a dedicated heap memory size of 1500 bytes, which should be more than ...
1
vote
1answer
75 views
PIC - Accessing udata through pointer in another file
So I have a list of clockings in my udata in, let's say, clock.c.
I have read that udata has to be accessed through a pointer, well okay, fair enough.
Above ...