Skip to main content
Visitor II
April 21, 2026
Solved

H755: Need to erase full chip flash memory after every powerloss to the board

  • April 21, 2026
  • 1 reply
  • 170 views

Hello i'm new to STM32, i'm doing school project on in. Basically the plan is to read oil temperature from CAN bus in car, and display the temperature on analog clock using servo. I have the H755ZI-Q board for this. I know it's bit overkill for what i'm doing but i'm fine with it.

I've did a test code for inter core communication test. Since i want to receive the CAN info on M4. Calculate the PWM signal on M7 and then the M4 will update the PWM signal. Now it just send some numbers and displays it via uart on pc console for checking the data. But as soon as i wanted to implement the servo i started to have some issues. Basically i enabled the TIM2 with PWM generation on M4, and then the board didn't want to communicate via the STLINK. I've got error: failed to start GDB server (No device found on target). So I've erased the flash memory by bridging the BOOT0 and VDD and erasing it in CubeProgrammer. And then i have to run different project  first, before mine for it to event program the board (i use STM32H7_IPC_OpenAMP from you guys). But as soon as i disconnect and connect the usb something must happend with the flash memory because, then i have to do this whole procedure again. Otherwise i get error: failed to execute MI command (load C:\\...Can-Communication_CM4.elf Error finishing flash operation)

Also don't know why i can't change SupplySource to PWM_DIRECT_SMPS_SUPPLY, i have it currently set to PWR_LDO_SUPPLY

TIM2 conf.png

APB1 timer clock runs at 240MHz

 

 

Best answer by mƎALLEm

Hello @Matej_v and welcome to the ST community,

What is the power supply you set for that Nucleo board? SMPS or something else?

If something else, that's normal and the board is configured in SMPS. So you should set the power configuration of the chip in Direct SMPS :

mALLEm_0-1776849919038.png

Please refer to How can I recover my STM32H7/STM32H7RS board after facing a power configuration deadlock?

 

Edit:


@Matej_v wrote:

Also don't know why i can't change SupplySource to PWM_DIRECT_SMPS_SUPPLY, i have it currently set to PWR_LDO_SUPPLY


I didn't see that statement and that confirms what I said above.

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
April 22, 2026

Hello @Matej_v and welcome to the ST community,

What is the power supply you set for that Nucleo board? SMPS or something else?

If something else, that's normal and the board is configured in SMPS. So you should set the power configuration of the chip in Direct SMPS :

mALLEm_0-1776849919038.png

Please refer to How can I recover my STM32H7/STM32H7RS board after facing a power configuration deadlock?

 

Edit:


@Matej_v wrote:

Also don't know why i can't change SupplySource to PWM_DIRECT_SMPS_SUPPLY, i have it currently set to PWR_LDO_SUPPLY


I didn't see that statement and that confirms what I said above.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."