Skip to main content
CChie.6
Visitor II
April 29, 2020
Question

STM32H747 generate code issue with STM32Cube and Keil

  • April 29, 2020
  • 2 replies
  • 1341 views

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
April 29, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
LMI2
Senior III
April 29, 2020

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.