Page 1 of 1

Can't run and debug code

Posted: Mon Aug 26, 2019 3:50 pm
by nerdELinux
Hi guys,

I'm having problems running and debugging my codes on ChibiStudio.

Thanks in advance,
chibios.png

Re: Can't run and debug code

Posted: Mon Aug 26, 2019 8:25 pm
by Giovanni
No clue, never seen that and that image shows nothing of interest. Make sure to use a standard setup initially, following play-embedded videos usually works.

Giovanni

Re: Can't run and debug code

Posted: Mon Aug 26, 2019 9:59 pm
by mikeprotts
I'd suggest seeing if gdb works outside of the eclipse environment. The Details button might give more info, but from the screenshot it's not possible to tell if gdb is not being found, or if it is found but has some form of error.

Mike

Re: Can't run and debug code

Posted: Tue Aug 27, 2019 8:01 am
by nerdELinux
Thanks for the reply, yes mikeprotts it's not seeing the gdb... complaining of Cannot run program gdb check the debug settings below
debug2.png
debug1.png

Re: Can't run and debug code

Posted: Tue Aug 27, 2019 6:45 pm
by mikeprotts
Did the compile stage run OK, no errors or warnings? That means rebuilding everything, in case something old was left around.

Have you checked that gdb exists and is in a directory that is picked up by the Eclipse settings?

Are you using the standard current ChibiStudio installation, and using the shortcut to launch?

Mike

Re: Can't run and debug code

Posted: Tue Aug 27, 2019 7:57 pm
by nerdELinux
Hi mikeprotts, The code compiled successfully, i will check if gdb exist buh i am using the ChibiStudio Shortcut launch..

Re: Can't run and debug code

Posted: Wed Aug 28, 2019 2:54 pm
by nerdELinux
It works now, I remained the gdb to arm-none-eabi-gdb

Thanks

Re: Can't run and debug code

Posted: Wed Aug 28, 2019 7:46 pm
by mikeprotts
Simple fixes are the best. And thanks for posting that here as it will no doubt help others in the future.

Mike