Skip to main content
Explorer
August 26, 2024
Solved

Did I brick my STM32H745I-Discovery board? Can program, but code is not executed.

  • August 26, 2024
  • 3 replies
  • 1699 views

I have tested a TouchGFX-created project that should tie in a USB-Stick connected to the board and create a csv file, then write to it. 

After writing the necessary code and debugging this project in STM32CubeIDE, the board was stuck with a white screen, and further debugging was not possible anymore.

 

Fortunately, I was able to connect to the board from STM32CubeProgrammer and I did a full chip erase. 

Now I am able to program again from STM32CubeIDE, but the code is not executed when debugging. The same project works with another STM32H745I-Disco board.

In the programmer, the fault analyzer says the CPU is either halted or in lockup...

Is there a way to save this one board, or is the debugger working but the main chip toast?

 

Thanks!

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    You can perhaps test by reprogramming the test application firmware, should be binary or hex files living in the board / demo specific project directory under CubeH7 repo.

    3 replies

    Technical Moderator
    August 26, 2024

    Hello @FabianEbs and welcome to the community.

    Check if you have disabled the Cortex-M4 using CubeProgrammer in option bytes menu.

     

    FabianEbsAuthor
    Explorer
    August 26, 2024

    Hi @mƎALLEm , thanks for your reply!

    The M4-Core is enabled and the address should also be fine: 

    Screenshot 2024-08-26 160109.png

    Screenshot 2024-08-26 155859.png

    Graduate II
    August 26, 2024

    You can perhaps test by reprogramming the test application firmware, should be binary or hex files living in the board / demo specific project directory under CubeH7 repo.

    FabianEbsAuthor
    Explorer
    August 26, 2024

    Yeah that worked.

     

    I did another full chip erase followed by programming the .elf file of an example project, both in STM32CubeProgrammer under Erasing & Programming. 

    Afterwards I was able to flash directly from STM32CubeIDE again.

     

    Thanks a lot everyone!

    Technical Moderator
    August 26, 2024

    but the code is not executed when debugging. The same project works with another STM32H745I-Disco board.

    Is is executing in stand alone?

    Could you please share your ioc file?

    FabianEbsAuthor
    Explorer
    August 26, 2024

    Here is the ioc-file that broke the board, not sure what is wrong with it, i didnt dare test it on another board yet. Will do now though.

    Technical Moderator
    August 26, 2024

    Indeed this is a wrong configuration with your RCC:

    SofLit_0-1724682398006.png

    First, STM32H745I-Discovery is mounted in SMPS by HW while you set the power config to LDO.

    Second, you cannot exceed 400MHz @VOS1 in SMPS with that microcontroller.

    Attached an updated ioc file. Please test and get back with your findings.