cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32 programing problem

louati-amir
Associate II
Posted on June 16, 2013 at 12:38

I'm using IAR.

My board wold not get programated. In fact the program annonce that the program was successfully downloaded and the debug mode is opned but the program in the stm32 wold not change :\

when I chek the debug mode the code get blocked in the file of startup_stm32f4xx.s in the ligne 197-198 ''BusFault_Handler

                               B BusFault_Handler''

and the led LD1 get off !

I'm having this problem after pushing the reset boutton when I was debugging
4 REPLIES 4
Posted on June 16, 2013 at 14:24

You can restart the board with BOOT0 high, this would permit you to erase the chip without the current failing code stopping you.

You need to review what your code was doing that might cause this problem.

For the Hard Fault you'll need to examine the processor state and registers at the fault, and determine what the faulting instruction is.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
louati-amir
Associate II
Posted on June 16, 2013 at 15:08

I tried that but the current program would not get deleted !

Posted on June 16, 2013 at 15:16

I tried that but the current program would not get deleted !

You would appear to be out of luck.

You could try the ST-Link utilities, and make sure you have most current firmware and drivers.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
louati-amir
Associate II
Posted on June 16, 2013 at 16:02

It work fin now 🙂

I delete the firmware by the stm32 st_link utility 🙂