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

µVision IDE flash -> erase changes Microcontroller behaviour

Hi,

i use a STM32F101C8 Controller and µVision Keil IDE.

I have a program that works fine. A code change crashes the controller (probably because of writing in wrong flash areas).

To get the controller back to life i did a Flash->Erase followed by a download of my program.

After that writing/clearing Flash pages dont work proberly anymore.

First of all my Powerfail-Interrupt Routine dont works anymore. The area im writing to contains always 0xFF after i power on/off the controller.

Next weird behaviour is when i erase a flash area the microcontroller it crashes. A power off/on wont bring the controller back. Only a Flash -> Erase and download of program in the µVision IDE fixes the problem.

I use address 0x08006000 as offset and count pagewise from there.

All works fine until i choose Flash->Erase in the Keil IDE.

Did someone inspect same behaviour and can help me out why that happens?

Thanks for your response