Skip to main content
July 28, 2021
Solved

Is there a way to set argc/argv when remote debugging?

Some remote debugging tools (Arm's DS-5 semihosting) allow setting arguments to main(). I'm unable to figure out the steps do this with stlink + gdb remote targeting because it doesn't support "run", only "continue". Is there a way to do this with a combination of STM32 Cube tools?

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
July 28, 2021

Put your command line data into some agreed mail-box ram location, and parse/pass via your startup.s implementation.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
July 28, 2021

Put your command line data into some agreed mail-box ram location, and parse/pass via your startup.s implementation.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..