cancel
Showing results for 
Search instead for 
Did you mean: 

Need to keep reloading TouchGFX application on STM32H757I-EVAL; doesn't run after power on.

Shiv09
Associate III

Hello All,

 

I am using the STM32H757I-EVAL for one of the development project for Touchgfx,

1) When-ever I am loading/debugging the project using STMCUBEIDE, only in System Mode I am able to detect the Board, but not in Flash mode.

2) With STMCubeProgrammer, I have to connect the device in System Mode, then I have to Erase the Internal and External Flash, then disconnect the Board and Bring the Device in Flash Mode and then Flash the code. Till now I am able to run the Program,

But as soon as I disconnect the usb (stlink), The Previously loaded program supposed to run as the mode is still in flash, but I can see anything on screen. 

Could anyone please let me know the correct way to do it ?

I mean I don't have to load or flash code again and again to test. The program should load from Flash after power ON- OFF-ON. 

Just for info 34757228 is the size of the program.

7 REPLIES 7
mƎALLEm
ST Employee

Hello,

What do you mean by System mode and Flash mode? do you mean bootloader and user flash?

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.

Hello @mƎALLEm ,

 

I mean the switch provided for STM32H757I-EVAL, as in this image.

 

Suppose if I want to load the firmware in Flash so that every time the device is power on, the older loaded program should retain and shall run.

 

Now every time I make the device on the program doesn't run, I have to load it again and again.

If there are some settings or configuration to do, then please let me know.

 

Please feel free to ask if you need something additional.

System_Flash_switch_Evalboardh757I.jpeg

Sorry the issue is not quite clear.

Which program are you uploading to the board?

What method are you using to upload the program to the board? STLINK, bootloader? if over the bootloader what steps are you following?

On which position you keep that switch for each step before, during and after programming?

Do you face the same issue with another program?

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.

Hello @mƎALLEm ,

 

No Problem, any how its difficult to understand in few post.

Here is some clarification I can provide on issue. below are the responses for your questions.

 

Which program are you uploading to the board?

-> I am loading the touchgfx project build on CM7 (STM32H757I-EVAL, has CM4 and CM7 as its a dual code), this application is developed using STM32CubeIDE.

 

What method are you using to upload the program to the board? STLINK, bootloader? if over the bootloader what steps are you following?

-> I am using STLINK, after building the Application successfully I am loading in Debug mode,

 

On which position you keep that switch for each step before, during and after programming?

-> When the switch is in System Mode, I am able to load a application. If I put the switch in Flash Mode I am not able to detect the Target to debug. If there are some settings to do then please let me know.

 

Do you face the same issue with another program?

Right now i have only one application so not sure about other.


@Shiv09 wrote:

Hello @mƎALLEm ,

-> I am loading the touchgfx project build on CM7 (STM32H757I-EVAL, has CM4 and CM7 as its a dual code), this application is developed using STM32CubeIDE.


Which application? yours or the demo: \Projects\STM32H747I-EVAL\Demonstrations\TouchGFX? 

 


@Shiv09 wrote:

Hello @mƎALLEm ,

-> When the switch is in System Mode, I am able to load a application. If I put the switch in Flash Mode I am not able to detect the Target to debug. If there are some settings to do then please let me know.


What power Power supply is configured in the example? SMPS or LDO? if LDO I thinks that's normal. The board supports only SMPS power configuration.

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.
@Shiv09 wrote:

Hello @mƎALLEm ,

-> I am loading the touchgfx project build on CM7 (STM32H757I-EVAL, has CM4 and CM7 as its a dual code), this application is developed using STM32CubeIDE.

Which application? yours or the demo: \Projects\STM32H747I-EVAL\Demonstrations\TouchGFX? 

-> Its not the demo, I have developed one for application.

 

@Shiv09 wrote:

Hello @mƎALLEm ,

-> When the switch is in System Mode, I am able to load a application. If I put the switch in Flash Mode I am not able to detect the Target to debug. If there are some settings to do then please let me know.

What power Power supply is configured in the example? SMPS or LDO? if LDO I thinks that's normal. The board supports only SMPS power configuration.

-> I am using SMPS .

Forget about that application for now and do the test with any example available on H7 Cube: example the GPIO EXTI: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H747I-EVAL/Examples/GPIO/GPIO_EXTI

Do you face the same issue?

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.