Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Debugging 4481 = itsybitsy nrf52840 : Hw required?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Debugging 4481 = itsybitsy nrf52840 : Hw required?

by pog on Wed Jun 17, 2020 11:27 pm

Hey,

I'm trying to debug an ItsyBitsy nrf52840 (product 4481 using vs code and platformio, programming in C++.

I can get code onto the board and see proper behavior from the serial out from the thing but am unable to
get debugging (breakpoint, step etc) to work.

I get the error

undefinedCould not connect to J-Link.
Please check power, connection and settings.

from the Debug_console.

Question: Is it required that I purchase another physical debugging interface (say the Jlink from Segger or similar) to
get this to work or should I be able to get this to all work with just the usb connection to the 4481?

I am perplexed in that there is a claim on the platformio site suggesting that there is a built in probe capability on the
4481 itself that obviates the need to purchase another interface.

To wit, from

https://docs.platformio.org/en/latest/b ... itsy%20nrf

ItsyBitsy nRF52840 Express has on-board debug probe and IS READY for debugging. You don’t need to use/buy external debug probe.
Compatible Tools On-board Default
J-LINK Yes Yes
ST-LINK

Any info would be much appreciated.

Regards, and thanks.

f

pog
 
Posts: 5
Joined: Thu Feb 27, 2020 2:12 pm

Re: Debugging 4481 = itsybitsy nrf52840 : Hw required?

by mikeysklar on Thu Jun 18, 2020 2:03 pm

Yes, you will need a hardware debugger. Any of the Segger J-Link's will work. They start at $20.

https://www.adafruit.com/?q=segger%20j-link

Pinout Page for Itsy Bitsy M4:

https://learn.adafruit.com/introducing- ... m4/pinouts

SWCLK & SWDIO - These are the debug-interface pins, used if you want to reprogram the chip directly or attach a debugger.

mikeysklar
 
Posts: 1782
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.