Tool/software: Code Composer Studio
Hi,
Need help with tms320c6701.
The issue is in program (not data) memory read. Linker has directive : .const > IPROG (all constant values are placed to prog memory at (IPROG: o = 00000200h l = 0000FE00h). The program code is simplest:
const int ar1[5] = {1,2,3,4,5}; int ar2[5] = {0,0,0,0,0}; int main(void) { ar2[0] = ar1[0]; ar2[1] = ar1[1]; ar2[2] = ar1[2]; ar2[3] = ar1[3]; }
map file approves that ar1 was placed to 0x0000xxxx addresses and ar2 to 0x8000xxxx.
But ar2 gets values not 1,2,3,4,5, but some other values..
Does anyone know why it happends? Pls, help.