2024-08-26 06:51 AM
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!
Solved! Go to Solution.
2024-08-26 07:04 AM
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.
2024-08-26 06:55 AM
Hello @FabianEbs and welcome to the community.
Check if you have disabled the Cortex-M4 using CubeProgrammer in option bytes menu.
2024-08-26 07:02 AM
2024-08-26 07:04 AM
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.
2024-08-26 07:10 AM - edited 2024-08-26 07:11 AM
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?
2024-08-26 07:21 AM
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!
2024-08-26 07:23 AM
2024-08-26 07:28 AM - edited 2024-08-26 07:36 AM
Indeed this is a wrong configuration with your RCC:
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.
2024-09-09 10:19 PM
Yeah now the ioc file doesnt break the board anymore.
Thanks!
2024-09-10 03:39 AM
At least i thought so. it worked for some time but as I worked on a project that enables Ethernet + TouchGFX and after some visual screen bugs, the board stopped working again.
the weird part is, I can not resolve this with above solution.
can connect via programmer and deleted full chip with manual .elf flashing, now i can debug an example ethernet program (STM32H745_Disco_M7_ETH) and ping my board, but i cant flash anything that uses the display.
I tried flashing to a new board, and my programs work...
.ioc file is attached that broke the board this time. It did not break immediatly, but after a few times of flashing.
should i make a new post about this? since its another ioc file and this error was resolved (for a while...)