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.
Tool/software:
Hi TI support:
I encountered such a problem when using the tms320f2800137 chip. I defined a structure as follows:
typedef struct
{
uint16_t a;
uint32_t b[8];
uint16_t c;
uint16_t d;
uint16_t e;
uint16_t f;
}Data;
In the program, I assigned values to the structure members e and f, but the result of the program running was to assign values to the structure members c and d.
Then I checked the addresses of the structure members. The addresses of the structure members directly viewed through debug and the addresses of the structure members obtained through variables are different. The addresses of the structure members e and f obtained through variables are exactly the addresses of the structure members c and d. Why does this address mismatch problem occur?
We have spent a lot of time on this problem. I hope you can help us solve this problem. Thank you very much!
Hello,
Thank you for the inquiry. I will try to formulate my response/some suggestions by end of tomorrow. Appreciate the patience in the meantime!
Best Regards,
Allison
Hello,
My apologies for the extended delay in response. I first wanted to check if you are still facing this query/if any information has changed since the original post? This likely is caused by your structure alignment and padding added. Here are some similar inquiries discussing this in the meantime:
Best Regards,
Allison