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

code storage and execution in Flash memory

hello all,
i am very confused about flash programming concept.please have a look at the below issue
i am writing code for STM32f103c8 in keil. i want to write the code at some address(not default address) and want execute from the same location..waht are the changes i need to do and where should i change.could you please tell me in brief regarding this flash programming concept

thanks in advance

Parents
  • Do they?

    I think the bootloaders provided by the chip manufacturers are usually in ROM - not in the user Flash space.

    In the STM32, this bootloader is controlled by the BOOT pins; it loads the code, and then jumps to the reset vector address. This is invisible to the user project.

    I think you are getting confused with writing your own bootloader - which, obviously, does have to start from the reset vector and does have to load the "application" to a different address, and make the jump to the application...?

    For the STM32, ST provide an application note & example of how to do this - search the ST resources for "In-Application Programming" (IAP).

Reply
  • Do they?

    I think the bootloaders provided by the chip manufacturers are usually in ROM - not in the user Flash space.

    In the STM32, this bootloader is controlled by the BOOT pins; it loads the code, and then jumps to the reset vector address. This is invisible to the user project.

    I think you are getting confused with writing your own bootloader - which, obviously, does have to start from the reset vector and does have to load the "application" to a different address, and make the jump to the application...?

    For the STM32, ST provide an application note & example of how to do this - search the ST resources for "In-Application Programming" (IAP).

Children
No data