2026-04-21 12:54 PM - last edited on 2026-04-22 2:06 AM by Andrew Neil
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
APB1 timer clock runs at 240MHz
Solved! Go to Solution.
2026-04-22 1:54 AM - edited 2026-04-22 2:25 AM
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 :
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.
2026-04-22 1:54 AM - edited 2026-04-22 2:25 AM
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 :
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.