Question
Modify the start address 0x800 0000
Posted on June 26, 2012 at 16:26
Hi,
My microcontroller is a STM32F103CB.I followed the AN2557 to do an IAP in my software. Everything works fine but now I would like to do something like a dual bank features.I can flash two firmwares at two different address in flash (for example, one @0x8003000 and the second @0x8006000) but when my IAP software starts (@0x800 0000), if I do the classical test ( if (((*(__IO uint32_t*)ApplicationAddress) & 0x2FFE0000 ) == 0x20000000) ) the first bank will be still OK, so I never start the firmware in the second flash.Is there a way to set an option to know which ''bank'' is activated?Is there a way to modify by software the start address (modify the 0x800 0000 address)?I hope my request is enought clear!!Regards, #flash #groundhog-day #start-address #iap #stm32