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.

AWR1843: TCMB, data RAM initialization, of MSS

Part Number: AWR1843
Other Parts Discussed in Thread: SYSBIOS

Hello All,

Is there any document that describes how to initialize the memory, TCMB data RAM specifically, for MSS core. I have no any exact information about whether it is done using hardware or within the startup code.

It is urgent.

Thanks in advance.

  • Hi Bishoy,

    Device's bootloader takes care of initializing the TCMB RAM while handing over to the flashed application (MSS and DSS).

    So application code doesn't need to initialize it again.

    Regards,

    Jitendra

  • Hello Jitendra, 

    Yes, I have read that information but when I put two global variables (one initialized and one not), they weren't initialized while watching them in a debug session using code composer, they were of "unknown" value.

  • Hi Bishoy,

    Const or initialized global variables will be set to .data section and non-initialized global variables will be part of .data section.

    auto_init of OS (sysbios) will do the initialize all the registers, variables of the application just before handing over to main function.

    Bootloader clean up the TCMB RAM before handing over the application, now it depends on how startup code (os auto_init) place and initialize these variables.

    For your case, you may need to check the *.map file of application which section they are placed (.bss or .data)

    P.S. - .bss and .data are the section defined in the linker command file of the application project.

    Regards,

    Jitendra

  • Hello Jitendra,

    Do you an answer for these questions about this snapshot:

    What is TCRAM wrapper ?

    How could I enable "auto-init" ? is it as you said of OS ?

     

  • Hi Bishoy,

    TCRAM wrapper is internal hardware module that does the memory initialization. Autoinit is enabled when you use MSS_RCM->MEMINITSTART register to initialize the specific memory.

    mmWave SDK provides a function soc_xwr18xx_mss.c->SOC_initPeripheralRam to do the memory init for DMA, CAN RAM. As I mentioned earlier TCMA/B RAM are initialized by the bootloader before switching to the application.

    Regards,

    Jitendra

  • Hello Jitendra,

    Thanks for your support. The memory initialization is done after hardware reset but after software reset the global variables won't be initialized. This why I need to know how to initialize the .data & .bss sections.