cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746-DISCO + openocd + gdb + eclipse

ANDRE THEVENIN
Associate II
Posted on July 03, 2018 at 15:21

Hello,

I have plenty of problems to debug on STM32F746-DISCO with openocd and eclipse

The most frequent is that, just after programming the Flash, the MCU goes directly on the Hard fault handler, and does not even go to the reset handler.

If I use the same openocd commands but skipping the flash programming, the MCU starts normally.

The other problem is indicated by openocd at launch

'Warn : Silicon bug: single stepping will enter pending exception handler!'

This makes very difficult to step in a program. Is there a workaround ?

In fact I do not know if the problem in in openocd (0.10.0), in gdb or in the board.

#hard-fault #openocd #gdb
3 REPLIES 3
motla
Associate II

+1 !

>> Is there a workaround ?

I guess to use a different chip, or move beyond single-stepping to determine what your code does.

ST typically doesn't update the processor IP in the products, ie the F74x will continue using r0p1. The F722 uses newer IP (revision and patch level of ARM CM7), as does the H7 series. I don't recall what the F76x/F77x parts are using but they do have a larger cache and full FPU-D implementation.

https://community.st.com/s/question/0D50X00009XkYbhSAF/does-anyone-know-how-to-find-out-the-core-revision-number

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

This thread shows the revision/patch level of assorted CM7 product from ST

https://community.st.com/s/question/0D50X00009XkXtQSAV/cubemx-support-for-stm32h750

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..