Debugging Smoothieboard

I have a new Smoothieboard and I am attempting to debug a new firmware I’m developing but so far I have been unable to GDB to connect. I am successfully compiling the uploading “make all upload” and then connecting over the USB serial and running commands. But as soon as I run the “break” command or press the ISP button the board just hangs and then after about 20 seconds USB disconnects from my computer. “make debug” runs but just hangs trying to connect to the target and then errors out once the USB port is closed.

I’ve tried on both OSX and Ubuntu with similar result.

Does anyone have any additional tips for debugging debugging?

Thanks

Imported from wikidot

Hey !

If you are doing mri debugging ( http://smoothieware.org/mri-debugging ) that does not happen over USB, but over the debug UART. So you need to connect a USB/UART cable on there, and use that to connect.

Cheers :slight_smile:

Thanks Arthur yeah that’s the problem! I wondered about that - all the different types of serial port are confusing for a newbie me.

Cheers

PS. Haha. I just had another look at the docs and it’s there clear as day! Did I totally miss that bit in the docs or did you just add it in?

Just added it : you are not the first to be confused, so I thought I’d make it clear.