Skip to main content
ramasubbu
Associate
November 15, 2017
Question

Regarding IAP internal flash switching

  • November 15, 2017
  • 1 reply
  • 893 views
Posted on November 15, 2017 at 12:37

Hello all,

I am using stm32f407 microcontroller for my application.

For IAP

I have chosen 1 Megabyte flash memory chip, i will separate this into two 512 kb regions.One region will be having my running application,another region will be used to write the the downloaded application from uart ( IAP).

first region address range will be (0x08000000 - 0x0807FFFF)

second region address range will be (0x08080000 - 0x080F FFFF)

how to to switch the booting address from one region to another region

What are the things i have consider to do this

For this is it necessary to relocate the vector table 

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    November 15, 2017
    Posted on November 15, 2017 at 15:32

    Code and vector table need to reflect the address code is placed for execution.

    You would need to transfer control to the 0x08080000 image from your earlier code.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ramasubbu
    ramasubbuAuthor
    Associate
    November 16, 2017
    Posted on November 16, 2017 at 06:07

    Hi,

    Ok once i have changed that address and execute the downloaded application

    if power reboot happens then what will be the starting address is it(0x00000000) or (

    0x08080000)

    Tesla DeLorean
    Guru
    November 16, 2017
    Posted on November 16, 2017 at 09:28

    The base of FLASH 

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..