radio test NCS nrf52820 and nrf21540

Hi All!

I am using NCS v2.0.0 and nrf52820 custom board and an example to test is radio test . I tested that example with nrf52833DK , code is executing/ printing messages on UART. But when I tested the same code by selecting the nrf52833_52820 then it was unable to run/ execute the code fully as it was with nrf52833. can you please help me in this regard?

Only this message on UART , after that no response when loaded program for nrf52820

But when i loaded the program for nrf52833 the program run properly as you can see the output it moves forward not stuck at the point where nrf52820.

Thanks in advance!

Parents Reply Children
  • Hi,

    Please try to open RTT Viewer and see if the crash log is shown there.

  • Hi,

    Thank you! i will provide it soon .This is new for me so may take some time to reply!

    Again thank you!

  • Hi @Vidar Berg,

    Thank you for the response! I attached the file.

     

    RTT log
    00> [00:00:00.046,508] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:02.353,424] <err> fatal_error: Resetting system
    00> [00:00:00.018,[00:00:00.018,585] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,585] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.018,798] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.025,970] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,000] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.039,916] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.039,916] <err> os: ***** HARD FAULT *****
    00> [00:00:00.039,947] <err> os:   Fault escalation (see below)
    00> [00:00:00.039,947] <err> os: ARCH_EXCEPT with reason 3
    00> 
    00> [00:00:00.039,978] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.039,978] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005fc1 r14/lr:  0x00020e7b[0m
    00> [00:00:00.040,008] <err> os:  xpsr:  0x41000018
    00> [00:00:00.040,039] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.040,039] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.040,069] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.040,100] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.178,741] <err> fatal_error: Resetting system[0m
    00> [00:00:00.[00:00:00.018,798] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,798] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.019,012] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.026,153] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,214] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.037,139] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.037,139] <err> os: ***** HARD FAULT *****
    00> [00:00:00.037,170] <err> os:   Fault escalation (see below)
    00> [00:00:00.037,170] <err> os: ARCH_EXCEPT with reason 3
    00> 
    00> [00:00:00.037,200] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.037,231] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005fc1 r14/lr:  0x00020e7b
    00> [00:00:00.037,231] <err> os:  xpsr:  0x41000018
    00> [00:00:00.037,261] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.037,261] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.037,292] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.037,322] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.178,405] <err> fatal_error: Resetting system
    00> [00:00:00.[00:00:00.018,676] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,707] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.018,890] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.026,123] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,153] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.036,529] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.036,560] <err> os: ***** HARD FAULT *****
    00> [00:00:00.036,560] <err> os:   Fault escalation (see below)
    00> [00:00:00.036,590] <err> os: ARCH_EXCEPT with reason 3
    00> 
    00> [00:00:00.036,621] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.036,621] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005fc1 r14/lr:  0x00020e7b
    00> [00:00:00.036,651] <err> os:  xpsr:  0x41000018
    00> [00:00:00.036,651] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.036,682] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.036,712] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.036,712] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.178,771] <err> fatal_error: Resetting system
    00> [00:00:00.018,[00:00:00.018,676] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,707] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.018,890] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.026,123] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,153] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.041,809] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.041,809] <err> os: ***** HARD FAULT *****
    00> [00:00:00.041,839] <err> os:   Fault escalation (see below)
    00> [00:00:00.041,839] <err> os: ARCH_EXCEPT with reason 3
    00> 
    00> [00:00:00.041,870] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.041,900] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005fc1 r14/lr:  0x00020e7b
    00> [00:00:00.041,900] <err> os:  xpsr:  0x41000018
    00> [00:00:00.041,931] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.041,931] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.041,961] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.041,992] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.184,265] <err> fatal_error: Resetting system
    00> [00:00:00.018,[00:00:00.018,371] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,432] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.018,585] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.025,878] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.025,909] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.038,360] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.038,360] <err> os: ***** HARD FAULT *****
    00> [00:00:00.038,391] <err> os:   Fault escalation (see below)
    00> [00:00:00.038,391] <err> os: ARCH_EXCEPT with reason 3
    00> 
    00> [00:00:00.038,421] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.038,452] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005ef1 r14/lr:  0x00020e7b[0m
    00> [00:00:00.038,482] <err> os:  xpsr:  0x41000018
    00> [00:00:00.038,482] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.038,513] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.038,513] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.038,543] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.180,725] <err> fatal_error: Resetting system
    00> [00:00:00.01[00:00:00.018,798] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,798] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.019,012] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.026,123] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,123] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.044,464] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.044,494] <err> os: ***** HARD FAULT *****
    00> [00:00:00.044,494] <err> os:   Fault escalation (see below)
    00> [00:00:00.044,525] <err> os: ARCH_EXCEPT with reason 3
    00> [0m
    00> [00:00:00.044,555] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.044,555] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005fc1 r14/lr:  0x00020e7b
    00> [00:00:00.044,586] <err> os:  xpsr:  0x41000018
    00> [00:00:00.044,586] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.044,616] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.044,616] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.044,647] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.185,913] <err> fatal_error: Resetting system
    00> [00:00:00.[00:00:00.018,798] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,829] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.019,012] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.026,123] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,153] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.042,968] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.042,968] <err> os: ***** HARD FAULT *****
    00> [00:00:00.042,999] <err> os:   Fault escalation (see below)
    00> [00:00:00.042,999] <err> os: ARCH_EXCEPT with reason 3
    00> 
    00> [00:00:00.043,029] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.043,060] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005f09 r14/lr:  0x00020e7b
    00> [00:00:00.043,060] <err> os:  xpsr:  0x41000018
    00> [00:00:00.043,090] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.043,121] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.043,121] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.043,151] <err> os: Current thread: 0x200020b0 (unknown)
    00> [00:00:01.184,844] <err> fatal_error: Resetting system
    00> [00:00:00[00:00:00.018,798] <inf> fs_nvs: alloc wra: 0, fd0
    00> [00:00:00.018,798] <inf> fs_nvs: data wra: 0, 20
    00> [00:00:00.019,012] <inf> sdc_hci_driver: SoftDevice Controller build revision: 
    00>                                          33 78 2a 18 20 f5 61 61  a6 8b 77 60 62 83 39 2a |3x*. .aa ..w`b.9*
    00>                                          7c f1 14 e4                                      ||...             
    00> [00:00:00.026,123] <inf> bt_hci_core: No ID address. App must call settings_load()
    00> [00:00:00.026,153] <inf> peripheral_uart: Bluetooth initialized
    00> [00:00:00.043,426] <err> mpsl_init: MPSL ASSERT: 112, 2152
    00> [00:00:00.043,426] <err> os: ***** HARD FAULT *****
    00> [00:00:00.043,457] <err> os:   Fault escalation (see below)
    00> [00:00:00.043,457] <err> os: ARCH_EXCEPT with reason 3
    00> [0m
    00> [00:00:00.043,487] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000006  r2/a3:  0x00000005
    00> [00:00:00.043,518] <err> os: r3/a4:  0x20001a78 r12/ip:  0x20005fc1 r14/lr:  0x00020e7b
    00> [00:00:00.043,518] <err> os:  xpsr:  0x41000018
    00> [00:00:00.043,548] <err> os: Faulting instruction address (r15/pc): 0x00020e88
    00> [00:00:00.043,579] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    00> [00:00:00.043,579] <err> os: Fault during interrupt handling
    00> 
    00> [00:00:00.043,609] <err> os: Current thread: 0x200020b0 (unknown)
     

    Can you please go through it.

    Thanks,

  • Hi,

    Thanks for the log. The assert shown here indicates that the HF crystal is not running when it should. As a test, please try to add the code below right before the call to bt_enable(); and let me know if the program is able to exit the while loop.

    	NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
    	NRF_CLOCK->TASKS_HFCLKSTART = 1;
    	while(NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
    
    	printk("HF Clock has started\n");

  • Hi,

    Again thank you so much for the support and response! I just tried as per your instructions. Now the controller is not rebooting.

    But when I tested it with the central_peripheral app (nrf52833DK). It is unable to connect and send and receive messages. And not printing the "HF Clock has started" message. means it stuck before that.

    Thanks in advance!

Related