2025-12-05 9:37 PM - last edited on 2025-12-06 1:40 AM by Andrew Neil
Hello All,
I am using touchgfx for one of my application using on STM32757I-Eval kit.
I am facing issue with running the application after successfully flashing the application, first time if I load from STM cube programmer, I can see the Program is running on display, but as I remove the Power from usb stlink and reconnect it back the Application is not loading and running.
Could you please help me to understand why it happens and how can I rerun the application so that I don't have to program it again and again.
Please let me know how to resolve it ?
Regards,
Shiv
2025-12-05 10:57 PM
Your code can have three or more issues:
!. Not run at all based on BOOT setup OB.
2. Run to Error handler while good practice place led blink here
3. Run to hard fault same as 2.
On flashing process is app run other way.
2025-12-05 11:36 PM - last edited on 2025-12-06 1:27 AM by Andrew Neil
Hello @MM..1 ,
Thanks for quick reply, Yes there could be some trouble. Just for some more information. here are the OB settng from my cubeprogrammer and the Main.c function, this might give some more clue.
After power cycle, at least the debug log "MX_USART1_UART_Init" at line 207, should be received. I am not able to receive it as well.
2025-12-06 1:22 AM
@Shiv09 wrote:but as I remove the Power from usb stlink and reconnect it back the Application is not loading and running.
Not sure what you mean by that ?
Is your board powered via the ST-Link ?
So what you're saying is that your system doesn't restart after a power cycle ?
2025-12-06 1:29 AM
Hello @Andrew Neil ,
Yes the board is powered by stlink, If I remove the USB connected to my PC, and reconnect it the program doesnt load or run.
Yes after power cycle the application doesn't run.
2025-12-06 1:42 AM
OK - I've edited the title to clarify that.
Does pressing the Reset button get it started?
Note that you can connect to a running (or "stuck"/"crashed") system without having to reset & do a download:
So you can examine what's actually happening in this case ...
2025-12-06 1:57 AM
Hello @Andrew Neil ,
Yes after loading the application and pressing the reset button is starting the application without any problem.
Even after multiple reset the application is running successfully.
Only after power cycle (reconnecting the usb), the application is not running. Now I am not sure why does the Power cycle is causing the trouble, the board is in Flash mode and even the option bytes look good from Stm32 cubeprogrammer.
If there are any settings or some configurations file to check and verify I can share. this might give any clue. just let me know what things shall i verify and how ?
2025-12-06 2:46 AM
I extend my point 1. BOOT OB and state of BOOTx pins on PCB in reset ... Too boards with displays require more current sometime more as USB from PC give...