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.

TMS320F28379D: keep RAM content after reset

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Hello, Team

My goal is to store data at RAM, and use it after reset.

Before, we use 28335, and it works well.

But currently, after I performed a watchdog reset, the content in RAM will be initialized to 0.

How can I change the way reset by C code?(Because if I use the CPU reset at CCS IDE, it will not clear RAM data)

Or how can I skip the initialization of RAM data?

Can you provide some advice of it?

Thanks and regards,

Lucas

  • Hi Lucas,

    On this device, RAM get initialize to 0x0 by BOOT code. This is done to initialize the ECC/Parity of RAMs which was not the case on earlier device like F28335. User can not bypass this. How much data you need to store ? If it's one or two word then we may have some registers where you could store it but if it's lot's of data then you need to store it in flash.

    Regards,

    Vivek Singh

  • Hi Vivek,

    Totally 0x40 words, I have tried HIBMODE register but its size is too small for me.

    I want to know how to perform a CPU reset(has a button when debug at CCS IDE) by C code. Because it meets my requirement.

    Thanks,

    Lucas

  • Totally 0x40 words, I have tried HIBMODE register but its size is too small for me.

    In this case you have to use flash to store the data.

    I want to know how to perform a CPU reset(has a button when debug at CCS IDE) by C code. Because it meets my requirement.

    Reset from CCS is only available from CCS and not from application code. We have one another reset (SCCRESET) which can be used via application but it's not straight forward. If you think storing the content in flash is not option then I'll check with team and see if we have an example code which you can use to generate SCCRESET.

    Regards,

    Vivek Singh

  • Hi Vivek,

    Thanks for your response. I would really appreciate if you could provide me with an example code for generating SCCRESET.

    Best regards,

    Lucas

  • Lucas,

    You can find the example in C2000Ware folder (device_support\f2837xd\examples\cpu1\dcsm_scc_reset). 

    Regards,

    Vivek Singh