Can't run and debug code

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
User avatar
nerdELinux
Posts: 9
Joined: Sat Aug 24, 2019 12:45 am
Has thanked: 5 times
Been thanked: 1 time

Can't run and debug code

Post by nerdELinux »

Hi guys,

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

Thanks in advance,
chibios.png
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Can't run and debug code

Post 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
mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

Re: Can't run and debug code

Post 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
User avatar
nerdELinux
Posts: 9
Joined: Sat Aug 24, 2019 12:45 am
Has thanked: 5 times
Been thanked: 1 time

Re: Can't run and debug code

Post 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
mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

Re: Can't run and debug code

Post 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
User avatar
nerdELinux
Posts: 9
Joined: Sat Aug 24, 2019 12:45 am
Has thanked: 5 times
Been thanked: 1 time

Re: Can't run and debug code

Post by nerdELinux »

Hi mikeprotts, The code compiled successfully, i will check if gdb exist buh i am using the ChibiStudio Shortcut launch..
User avatar
nerdELinux
Posts: 9
Joined: Sat Aug 24, 2019 12:45 am
Has thanked: 5 times
Been thanked: 1 time

Re: Can't run and debug code

Post by nerdELinux »

It works now, I remained the gdb to arm-none-eabi-gdb

Thanks
mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

Re: Can't run and debug code

Post by mikeprotts »

Simple fixes are the best. And thanks for posting that here as it will no doubt help others in the future.

Mike
Post Reply