Skip to main content
ANDRE THEVENIN
Associate
July 3, 2018
Question

STM32F746-DISCO + openocd + gdb + eclipse

  • July 3, 2018
  • 3 replies
  • 1044 views
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
    This topic has been closed for replies.

    3 replies

    motla
    Associate II
    December 5, 2018

    +1 !

    Tesla DeLorean
    Guru
    December 5, 2018

    >> 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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    December 5, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..