Part Number:AWR1642
Hi:
I want to add extra calibration data to my project in DSP, and configur it via CAN bus. I define the new memory section as follows in C674x_linker.cmd:
HSRAM: o = 0x21080000, l = 0x4000
CALIBRAM: o = 0x21084000, l = 0x4000
and
.calibMem > CALIBRAM
in dss_srr_linker.cmd.
I wrote followeing code in my seperate calib.c file:
#pragma DATA_SECTION(g_pAzimuthCalib, ".calibMem");
#pragma DATA_ALIGN(g_pAzimuthCalib, 4);
/* Q - 14 Format*/
int16_t g_pAzimuthCalib[256] = {};
When I'm debugging, everything is OK, while I download the .bin file to SFLASH, the program seems didn't work. if I wrote as follows:
//#pragma DATA_SECTION(g_pAzimuthCalib, ".calibMem");
//#pragma DATA_ALIGN(g_pAzimuthCalib, 4);
/* Q - 14 Format*/
int16_t g_pAzimuthCalib[256] = {};
It works again! Is there something wrong with my memory definition?
Thank you!