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.

TMS570LS20216 memory swap

Hello,

I'm trying and need to use the memory swap feature to the TMS570 cpu. When I perform this operation, I've been getting crashes when I attempt to enable the ECC and performing a memory initialization. Are there any limitations when in  swapped memory mode ?

a) The application runs perfectly when the ECC is disabled and not performing memory initialization.

b) The application also runs perfectly when enabling ECC and performing memory initialization when not memory swapped.

Point to note: The swap sequence is performed as follows:

1) Copy the Vector table from FLASH to RAM, then perform memory swap.

When in swapped mode, the code is still in internal flash. Only the vector table is in RAM with the application variables.

Thanks for the support

Normand

 

  • Hello Normand,

    Do you also initialize the CPU RAM? If so, then this step will overwrite the vector table that you just copied into RAM. You need to remove the CPU RAM from the memories that are initialized.

    Alternatively (better option), you can initialize the memories, then copy over the vector table, then swap the memories and then continue with the rest of the application.

    Let me know how it goes.

    Regards, Sunil

  • Hello Sunil,

     

    Yes. The CPU RAM is initialized, the system interrupts are disabled. Then the vector table is "reconstructed".

    I will try tomorrow your suggestion and let you know the result.

    One question: by configuring a memory swap and writing the CPU reset bit, does this action reset all the configured peripherals  or simply forces a reboot  without altering any configured peripherals ?

     

    Thanks for your support.

     

    Normand