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.

AM2612-Q1: Memory execution sequence on AM261

Part Number: AM2612-Q1


Hi experts,

 

Good day! I am asking for customer.

My customer is developing AM261 and they have qustions on memory:

  1. When the APP code is copied to RAM, will the MCU free up the RAM that was used by SBL?
  2. About the principle if code. Will the CPU move the whole program/data from flash to ram, then CPU runs. Or move a part program/data from flash to ram first, then execute it. After this part code execution, then move the rest program/data from flash to RAM, which means "move" and "running" occurs at the same time?                                                                                                      Best regards Kita 
  • Hi Kita,

    When the APP code is copied to RAM, will the MCU free up the RAM that was used by SBL?

    The application will have to re-claim the space which was in use by SBL, it won't be "automatically freed" if that is what the question is. SBL and Application should not have overlapping regions in the memory. So during the run-time of SBL, there should not be any load section in the memory for the Application. You can use SBL region after the SBL load for the Application usage.

    About the principle if code. Will the CPU move the whole program/data from flash to ram, then CPU runs. Or move a part program/data from flash to ram first, then execute it. After this part code execution, then move the rest program/data from flash to RAM, which means "move" and "running" occurs at the same time?     

    After SBL hands over the control to application, the complete application is loaded from Flash to RAM and executed from RAM. Incase your application is too big to be copied to RAM, then you can also enable XIP (Execute in Place), which basically means the application runs from Flash itself. The standard SDK does not provide any way to partially load an application from Flash to RAM and then at runtime move the remaining in chunks

    Regards,
    Shaunak