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.

AWR1642: Is there something wrong with my memory?

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!

  • Hi,
    HSRAM can not be used for storing the code/data memory of a binary file, as bootloader will not copy the content from sFlash to HSRAM.
    HSRAM memory mainly used for handshake data between MSS and DSS cores.
    Although you can to this memory later when your application bootup to storing any temp data but not as a part of binary file.

    In debugging mode it'll work as CCS copies required content to HSRAM (as CCS can acess this memory contrast to bootloader).


    Regards,
    Jitendra