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.

AM2434: bootloader can be overlaid by application code?

Part Number: AM2434

Dear Champs,

Is it possible to overlay boot-loader SW by application SW code section?

If so, could you please share some example cmd file and idea how it can be implemented?

Thanks and Best Regards,

SI.

  • Hi ,

    Is it possible to overlay boot-loader SW by application SW code section?

    Yes, the bootloader SW region can be reused by application. Currently the Example SBL Bootloader loads the application and then resets the CPU.

    This is a simple approach where you can reclaim this memory by setting the bss and stack region of your application at the same location of that of SBL. But customers are free to experiment with text region of application as well, but this needs thorough research of map files and customer applications.

    Hope it helps.

    Best Regards,
    Aakash

  • Hi Aakash,

    Do you mean customer can reuse bootloader region with application code by using GROUP statements in the linker.cmd file included MCU+ SDK as below?

    Thanks and Best Regards,

    SI.

  • Hi ,

    These are text sections. moving the text sections will be problem because the SBL regions will be overwritten. Only bss regions and stack regions are suppose to be allocated to bootloader area so when the bootloader execution is completed the init code of application will initialize the stack and bss sections as 0s and use the same.

    Hope it helps.

    Best Regards,
    Aakash