2015-11-24 12:51 AM
Hello,
I' m programming stm32f103RB and my code goes well but I'm doing some changes and when I try to load the code the IAR show my this error:* Programming failed @address 0x0800400 (program error)I don't know what can I do because the code was ok. Also I try to load others codes which go good but the error is the same. Maybe the microcontroller is wrong?Thank you.2015-11-24 04:37 AM
You might want to double check what STM32 core the programming thinks it is dealing with. You could erase the chip and see if that helps.
If you are using an ST-LINK, you could use the Utilities to erase/program/verify the chip. Really not enough context here to know what you're doing wrong, or why it is failing. It could be a chip issue, but I'd have to eliminate all user induced failures first.