This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone
Currently im working in a modbus table map. Formed by a big array of structs.
I initialize this array of structs in a .c file and extenalize it in a .h file extern modbus_map_t hr_map[NUMERO_HOLDING_REGISTERS_SLAVE];
The struct is the following
This big array belongs to .ebss, and im currently storing this at GSRAM, joining 4 sectors .ebss : > RAMGS0_4, PAGE = 1,
The problem comes before run the code, its possible see the values of the structs with the debugger and many of them are correctly initialized but some of them are wrong, are not pointing to the correct variables, and values.
Anyone know how to solve this?
Many thanks in advance
Dear Vivek
Where can I find, EABI or COFF format?
Yes in cpu1.
As you can see adress 2091, 2092, 2093 are not correctly initialized, is very extrange
Thanks in advanced
Many thanks. In addition this only happends when im debugging. Out of debugging, 'in production' the addresses are correct because I can communicate with them.
Are you only observing the issue while viewing the variables or this cause issue while running the code with debugger connected ?
Only when im debuging. If the code runs without debugging session, this positions works good, because I can read them
I've tried to put to 0 the optimizations or put as const but not work.
I was asking if your code execution fails with debug connected. Also when do you halt CPU to see these variables ?
Vivek Singh
Entry point is in your project setting but this also helps. So basically you halt in main() and then look at these variables.
Can you also clarify that this issue has an impact on your application execution ?
Would it be possible to send this CCS project to us to have a look ?
Vivek Singh