Tool/software:
Hi, I'm currently working on an older board to maintain a legacy application with CCSv5, TI compiler v5.1.1, opt lvl 0, bare metal.
I'm facing an issue where 2 of my unsigned char variables are allocated addresses that are on top of a character array size 5. Example
char a[5] = {0, 0, 0, 0, 0};
unsigned char b = 0;
unsigned char c = 0;
map file shows that:
200055a1 for b
200055a2 for c
2000559c for starting address of a
Changing b and c to unsigned long alleviates this problem. Could I ask for some lights on this particular problem? Thank you so much!