9 years, 8 months ago.

Debug ATSAM3U2C from nRF51822 mKit in Windows

Hello everyone!

Firs of all consider I'm very new in micro controllers programming/debugging, so your patience would be much appreciated.

I have a nRF51822 mKit like the one below and what I really need is to debug the firmware from the Atmel ATSAM3U2C on it.

/media/uploads/margabro/668d3438effb08d00be7a3093d4c6c6f.png

Till now, what I achieved is to compile my own bootloader firmware (which is the default given by Nordic with some "print" added), compile it on a bin file and install on the chip by connecting it in bootloader mode... and just works fine, same as the default one. I was able to load app through mbed compiler as before.

Then, searching in this web and others, I watches some tutorials and what I saw is you can debug the chip directly through USB without any debugger with pyOCD.

I installed it, all wrking fine, but when I run the gdb_server.py file in test folder I get the following message either I try in normal mode or bootloader mode:

/media/uploads/margabro/captura.png

I don't think the problem are the drivers because as I said before the kit works just fine with mbed compiler.

So if anyone could give me a push with a small tutorial or some instructions on how to achieve that I would be very grateful. I only need to see the prints I made on a console.

In case you tell me debugging directly with USB it is not possible with the nRF51822 I also have the ULINK2 debugger from Keil, which as far as I read, it is compatible with the mKit.

Thanks a lot in advance!

I don't understand why you are debugging the ATSAM3U2C. That chip just provides an debug and programming interface to the nRF51822. It may be easier to answer if you explain what it is you're trying to do and why.

posted by Sam Grove 07 Aug 2014

I basically need to make a gang programmer and for the main kit I would like to be able to debug it. The intention is to program through this ATSAM3U2C more nRF51822 kits at the same time, using the same method as we would program the nRF51822 chip.

posted by Gabriel Codarcea 08 Aug 2014
Be the first to answer this question.