This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[Cortex-M3] Execution code from RAM during Flash Programming

I am writing a bootloader for Cortex M3 Toshiba controller.

During Flash Programming I need to execute code from RAM as entire Flash is inaccessible during write/erase operations

I wish to know how to copy code from FLASH to RAM and execute that code from RAM.

Thanks...
Parents
  • Note: This was originally posted on 14th March 2012 at http://forums.arm.com

    Thanks Joseph for the reply.

    Yes my bootloader will be having flash programming feature.
    I want to copy some piece of code(Flash APIs and some functions) from flash to SRAM  when Flash Programming is being performed as at that time Flash will be inaccessible.
    In this case then these functions should get executed from SRAM means program counter should take the function address from SRAM.
    I am presently unable to figure this out.
    Your inputs will be helpful

    Regards,
    Rohit




    Do you mean your bootloader has flash programming feature, and
    want to copy the boot loader from flash to SRAM when the startup code is executed?
    regards,
    Joseph
Reply
  • Note: This was originally posted on 14th March 2012 at http://forums.arm.com

    Thanks Joseph for the reply.

    Yes my bootloader will be having flash programming feature.
    I want to copy some piece of code(Flash APIs and some functions) from flash to SRAM  when Flash Programming is being performed as at that time Flash will be inaccessible.
    In this case then these functions should get executed from SRAM means program counter should take the function address from SRAM.
    I am presently unable to figure this out.
    Your inputs will be helpful

    Regards,
    Rohit




    Do you mean your bootloader has flash programming feature, and
    want to copy the boot loader from flash to SRAM when the startup code is executed?
    regards,
    Joseph
Children
No data