This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nordig nrf91 thingy not debugging

when i try to debug with the segger develoment envrionment using a segger j link

i get the following log and a generic error

this is straightout of the box code no modes from me and standard instillation

i can flash and make it run and attach to the thingy, but debugging does not work out of the box, out of our 3 thingy's only 2 connect to the network?

this is the segger log, this may be a reset issue?

SEGGER J-Link V6.46h DLL Log
DLL Compiled: Jun 28 2019 17:11:51
Logging started @ 2019-08-08 11:34

T2630 4488:763 JLINK_DEVICE_GetIndex(sDeviceName = nRF9160)  returns 1863
T2630 4488:765 JLINK_DEVICE_GetIndex(sDeviceName = nRF9160)  returns 1863
T2630 4488:765 JLINK_DEVICE_GetInfo(DeviceIndex = 1863)  returns 0
T2630 4488:765 JLINK_TIF_Select(JLINKARM_TIF_SWD)  returns 0x00
T2630 4488:766 JLINK_SWO_Control(JLINKARM_SWO_CMD_GET_SPEED_INFO, ...)  returns 0x00
T2630 4488:766 JLINK_SetSpeed(4000)
T2630 4488:907 JLINK_ReadMemU32(0xE000EFB8, 0x0001 Items, ...) - Data: FF 00 00 00
T2630 4488:907 JLINK_WriteU32(0xE0000FB0, 0xC5ACCE55) - ITM_LOCKACCESS
T2630 4489:901 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4490:897 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4491:935 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4492:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4493:899 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4494:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4495:908 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4496:897 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4497:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4498:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4499:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4500:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4501:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4502:908 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4503:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4504:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4505:899 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4506:910 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4507:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4508:898 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4509:899 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4510:899 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4511:909 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4512:899 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4513:898 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4514:898 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4518:184 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4518:899 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4519:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4520:900 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4521:912 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4522:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4523:916 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4524:916 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4525:918 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4526:916 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4527:912 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4528:923 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4529:916 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4530:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4531:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4532:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4533:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4534:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4535:915 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4536:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4537:912 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4538:915 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4539:915 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4540:912 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4541:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4542:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4543:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4544:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4545:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4546:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4547:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4548:915 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4549:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4550:914 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4551:922 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4552:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4553:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4554:912 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4555:913 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 12 34 0F 17 - DWT_CYCCNT
T2630 4557:982 JLINK_Reset() -- Type: 0
T2630 4558:422 JLINK_ReadRegs(NumRegs = 1, Indexes: 0) -- R0=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 1) -- R1=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 2) -- R2=0x200242A8  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 3) -- R3=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 4) -- R4=0x01  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 5) -- R5=0x200284F8  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 6) -- R6=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 7) -- R7=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 8) -- R8=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 9) -- R9=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 10) -- R10=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 11) -- R11=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 12) -- R12=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 13) -- R13 (SP)=0x2002CED0  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 14) -- R14=0x2D2E1  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 15) -- R15 (PC)=0x15424  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 16) -- XPSR=0x61000000  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 17) -- MSP=0x2002D6E0  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 18) -- PSP=0x2002CED0  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 20) -- CFBP=0x2000000  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 66) -- MSP_NS=0x2002D6E0  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 67) -- PSP_NS=0x2002CED0  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 68) -- MSP_S=0x200026A8  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 69) -- PSP_S=0x20001CD0  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 70) -- MSPLIM_S=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 71) -- PSPLIM_S=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 72) -- MSPLIM_NS=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 73) -- PSPLIM_NS=0x00  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 74) -- CFBP_S=0x2000000  returns 0x00
T2630 4558:424 JLINK_ReadRegs(NumRegs = 1, Indexes: 75) -- CFBP_NS=0x2000000  returns 0x00
T2630 4558:424 JLINK_ReadMemU32(0xE000ED04, 0x0001 Items, ...) - Data: 00 50 C2 00
T2630 4558:424 JLINK_ReadMemU32(0xE000EE08, 0x0001 Items, ...) - Data: 00 00 02 00 - DSCSR
T2630 4558:424 JLINK_ReadMemU32(0xE000EDFC, 0x0001 Items, ...) - Data: 00 00 10 01 - DEMCR
T2630 4558:424 JLINK_ReadMemU32(0xE0001000, 0x0001 Items, ...) - Data: 01 00 00 40 - DWT_CTRL
T2630 4558:425 JLINK_WriteU32(0xE0001004, 0x00000000) - DWT_CYCCNT
T2630 4558:636 JLINK_WriteMem(0x00000000, 0x8000 Bytes, ...) - Data: 68 1D 00 20 D5 1B 00 00 ... - In flash
T2630 4558:660 JLINK_WriteMem(0x0000C000, 0x19000 Bytes, ...) - Data: A0 CD 02 20 25 5A 01 00 ... - In flash
T2630 4558:661 JLINK_WriteMem(0x00025000, 0x19000 Bytes, ...) - Data: 0C 06 32 46 08 46 FD F7 ... - In flash
T2630 4558:662 JLINK_WriteMem(0x0003E000, 0x5604 Bytes, ...) - Data: 6E 6E 65 6C 20 21 3D 20 ... - In flash
Parents
  • Hi Splat, 

    How are you connected to the thingy?

    Remember that you need to connect the debugger with a 10-pin connector (or the debug-out on a nrf91 DK) to the input on the thingy:91.

  • Hi Martin, I'm looking at this particular Thingy now.

    This is the output of at%cmng, I think your hypothesis that cloud certificate is lost could be true. These certs don't look valid.

    at%cmng=1%CMNG: 0,6,"0606060606060606060606060606060606060606060606060606060606060606"%CMNG: 16842753,0,"0000000000000000000000000000000000000000000000000000000000000000"%CMNG: 16842753,1,"0101010101010101010101010101010101010101010101010101010101010101"%CMNG: 16842753,2,"0202020202020202020202020202020202020202020202020202020202020202"OK

    How can I restore them?

  • Hi arfwid,
    That looks correct when you use the command AT%CMNG=1 to list the certificates. (not read, since you should not be able to read out all types of certificates)

    Please try the command: AT%CMNG=2, 12345678, 0  to read the "Root CA certificate".

    (from the documentation: "Reading types 1, 2, and 3 are not supported.")


    I suspect that you have another issue, with regards to connecting to the network. (the default application is connecting to LTE-M network, please flash the nb-iot version if your area only supports that, then you also need to switch to a local SIM card (iBasis does not support nb_iot yet))

    Please make another case and explaining what issues you are seeing when you are trying to connect.

Reply
  • Hi arfwid,
    That looks correct when you use the command AT%CMNG=1 to list the certificates. (not read, since you should not be able to read out all types of certificates)

    Please try the command: AT%CMNG=2, 12345678, 0  to read the "Root CA certificate".

    (from the documentation: "Reading types 1, 2, and 3 are not supported.")


    I suspect that you have another issue, with regards to connecting to the network. (the default application is connecting to LTE-M network, please flash the nb-iot version if your area only supports that, then you also need to switch to a local SIM card (iBasis does not support nb_iot yet))

    Please make another case and explaining what issues you are seeing when you are trying to connect.

Children
No Data
Related