cancel
Showing results for 
Search instead for 
Did you mean: 

STM32h745 Microcontroller Not Responding

motaz9898
Associate II

I have an STM32H745 Discovery board. The first problem I encountered was when I was creating interfaces using TouchGFX. I could upload them to the microcontroller via the application without any issues, but when I uploaded the code file through CubeIDE, I encountered a problem. I discovered that I needed to include a boot file.

Once I did that, it worked, and the interfaces appeared, allowing me to modify and upload them. However, when I added the USB host initialization, the screen froze without me adding any line of code. After that, the microcontroller refused to accept any code. I had to use the reset button with CubeProgrammer in power-down mode to restore it before it could take the code again.

I tried testing the microcontroller by uploading a colored background code. The code uploaded successfully, but nothing appeared on the screen. Note that I have a demo from Embedded Wizard, and when I upload it, the screen works.

Did I damage something with the microcontroller's addressing? How can I fix it

 

7 REPLIES 7
SofLit
ST Employee

Hello @motaz9898  and welcome to the community,

Are you sure your are configuring the Power mode in SMPS and not in LDO config?

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.
MM..1
Chief III

@motaz9898 wrote:

, when I added the USB host initialization,

 


result your code is incomplete and or hardfault handler ... sometimes some line adding is required , for USB host more as ...

"I added that there is a USB host using CubeMX, generated the code, and uploaded it."

"The board works with the demo program."

motaz9898_0-1728480734640.png

motaz9898_2-1728480897620.jpeg

"The board does not work here, even though it was previously working with the same program."

motaz9898_3-1728481060064.jpeg

 

"For your information, I have modified many of the frequency values within the settings. I even raised the input frequency to a value of 48."

 

motaz9898_4-1728481271593.png

 

Again what is the power config you set? SMPS or LDO?

The power config needs to be set to SMPS as STM32H745 Discovery is configured in SMPS by hardware.

Show you RCC config from this CubeMx window:

 

SofLit_1-1728481812966.png

 

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.

motaz9898_0-1728493139310.png

motaz9898_1-1728493160873.png

 

And i write   adding USB host in MX dont equal working code generated. Debug it.