Skip to main content
yuri CH
Senior
September 2, 2021
Solved

Application Is not running without debugger presence and connection

Hello!

i am working with the STM32H745 dual core nucleo board.

i have noticed that the app that i built runs perfectly when i debug it using IAR, on the other hand, it does not when i just connect the nucleo board to power and try to communicate with it.

i tried to debug this using the LEDs on the board and found out that the last function to run

is vTaskStartScheduler().

what is the difference between running the app with debugging oposed to without it.

please advise on how to debug this issue?

thanks alot in advance

This topic has been closed for replies.
A Maq
A MaqBest answer
Associate III
September 14, 2021

There are major differences between running an application using the C-SPY debugger, compared to running stand alone.

When debugging the application with the C-SPY debugger, a number of SFRs are set by:

  • the flash loader source code.
  • the mac file used by the flash loader.
  • the mac file used by the application.

When the application runs standalone these SFRs need to be set by the application in the start-up/initialization code.

This Application note from IAR gives detailed information regarding this issue fix. Let us know if this solves your issue. Thanks

https://www.iar.com/knowledge/support/technical-notes/debugger/application-does-not-run-stand-alone/

2 replies

A Maq
A MaqBest answer
Associate III
September 14, 2021

There are major differences between running an application using the C-SPY debugger, compared to running stand alone.

When debugging the application with the C-SPY debugger, a number of SFRs are set by:

  • the flash loader source code.
  • the mac file used by the flash loader.
  • the mac file used by the application.

When the application runs standalone these SFRs need to be set by the application in the start-up/initialization code.

This Application note from IAR gives detailed information regarding this issue fix. Let us know if this solves your issue. Thanks

https://www.iar.com/knowledge/support/technical-notes/debugger/application-does-not-run-stand-alone/

yuri CH
yuri CHAuthor
Senior
October 4, 2021

Hello!

thank you for your help, eventually it was the printf() calls.

0693W00000FBJnnQAH.png