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

Crash when using FPEC after IAP with STM32F103

Hi,

I work with µVison4 and a STM32F103RC. My software use lot's of peripherals (adc, usart, ...) and there is also an EEPROM Emulation (Using flash and FPEC). It works well when the code is loaded starting from 0x0800000. If I load the code staring from 0x08002000 with an "In Application Programming" (IAP), every thing (all peripherals, interrupts and so on) works well to as long as I don't try to write to the flash with FPEC or try to erase am flash page. As soon as I write to the flash, the program crashes. Exactly the same code loaded at 0x0800000 works without failure. The flash is unlocked and I have the same values in the Flash-register just before "staring page erase" or "write word".

Can some body help me to found out ma error? Thanks

Pascal

0