Skip to main content
Visitor II
February 7, 2020
Question

STM32F746 Freeze And Debugger Lost Connection

  • February 7, 2020
  • 4 replies
  • 1938 views

Hello everyone,

I have a custom board with STM32F746. I'm using STM32CubeIDE for this project.

Board(s) working as expected. But after a while it stops working.

At this point debugger connection also lost. I can not trace anything.

Also ST-Link Utility can't connect to device via Hot-Plug.

It needs to hardware reset for working again.

Is anyone faced something like this?

What i'm missing about debugging?

I'm using SDMMC, Ethernet, FMC, SPI and timer and external interrupts.

Thanks.

    This topic has been closed for replies.

    4 replies

    Visitor II
    February 7, 2020

    Schematic of the board could help.

    Ive done couple stm32xxxx based boards and none of them have had such proplems.​

    SCAN.1Author
    Visitor II
    February 7, 2020

    Hi, thanks for answer.

    I'm sure that it is not a hardware problem. Because when i change size of buffers which im using issue disapears.

    Its probably my mistake in software. I think mcu enters lockup state. But i cant see anything when it hangs.

    Visitor II
    February 7, 2020

    Can you share the code? All of it

    SCAN.1Author
    Visitor II
    February 7, 2020

    I cant share all of the code sorry. It is a commercial project. I know it is strange i need help and dont share all of the code but it is the situation.

    Also project consist almost 60 files except hal and third parties. It will a bit hard to understand what happenning. I just need to know how can i see what happening on mcu.... Thanks.

    Graduate II
    February 8, 2020

    Another idea - using low-power modes, but not enabling the corresponding bits in DBGMCU_CR register.

    SCAN.1Author
    Visitor II
    February 8, 2020

    I'm not using low power modes. Thanks.