-
Notifications
You must be signed in to change notification settings - Fork 317
Description
I tried many times to enable debugging on OpenSK deployed on the nRF52840DK board without success. However, I managed to get the board up and running without debugging.
Actual behavior
- Execute
JLinkExe -device nrf52 -if swd -speed 1000 -autoconnect 1in a terminal - Execute
JLinkRTTClientin another - Connect board JTAG port to the computer
- Run
./deploy.py --board=nrf52840dk_opensk --opensk --debug - The configuration of the device fails (as expected), but I can see debug output:
Initialization complete. Entering main loop
NRF52 HW INFO: Variant: Unspecified, Part: N52840, Package: QI, Ram: K256, Flash: K1024
Hello world from OpenSK!
Entering main ctap loop
tock$ ...................................................
- Connect micro USB cable to the USB port of the device (by keeping the JTAG connected)
- Press "RESET" (debug output stops), this is needed in order for the board to be recognized by the computer.
- Run
./tools/configure.py \
--certificate=crypto_data/opensk_cert.pem \
--private-key=crypto_data/opensk.key
- The command hangs and the board has LED1 blinking with non-regular intervals.
Expected behavior
In point 7. the output should not stop and point 9. should not happen.
Additional information
Even without the debugger enabled (i.e. without executing steps 1 and 2, it still does not work and I get the same results).
Am I doing something wrong? Is this a known bug? I tried having a look at #561 but I cannot get it to work.
UPDATE
I managed to configure the develop branch of the firmware, but I am still not able to debug using the aforementioned steps. If I change steps (1) and (2) and put them in place of steps (3) and (4) the board complains that it is locked and must be unprotected (by wiping the internal memory, of course, rendering deploy.py useless).
Thanks.