cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747 generate code issue with STM32Cube and Keil

CChie.6
Associate

I have tried to generate STM32H747I-DISCO's GPIO code.

After loading flash, it can be executed normally.

But after power on the MCU, the code can't be executed and the MCU can't be target with ST-link.

I must pull-up boot0 and erase flash before I can reconnect to the MCU.

What settings are I missing?

Library is STM32Cube FW_H7 V1.7.0.

I only set PI12(M4) and PI15(M7) as GPIO output.

Set CPU1 as 480M and CPU2 as 240M.

0693W000000WdfRQAS.png

0693W000000WdfbQAC.png

Add code in while loop as below:

M7

HAL_Delay(500);

HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_15);

M4

HAL_Delay(500);

HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_12);

Because M4 Load device issue, so I have add the Flash Download setting.

0693W000000WdflQAC.png

2 REPLIES 2

If it locks you out check LDO/SMPS settings, debug interface related settings, and interfering with PA13, PA14 and PB3 pins.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
LMI2
Lead

This same thing happens with 100pin Stm32H750 and I think with STM32F746 too. I tried several flash loaders, one usually works. Like STM32 ST-LINK Utility and Cubeprogrammer. I can't connect with Keil to H750. First Reset pull up and then LDO settings helped.