cancel
Showing results for 
Search instead for 
Did you mean: 

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

Legacy member
Not applicable

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

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
Up vote any posts that you find helpful, it shows what's working..