NCS: Central UART Sample

Hi,

I had previously posted this as an issue and self-resolved but it has re-occurred so I am re-opening the issue.

The central_uart sample hardfaults when bt_enable(NULL) is entered. I can use the debugger and step over the first couple lines but stepping over bt_enable causes a hardfault. In my uart output window all I see is: 

*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***
*** Booting Zephyr OS build v3.0.99-ncs1 ***

I am using nRF Connect SDK v2.0.0 on nrf52dk_nrf52832. I have had no issues with any other examples in the mesh examples or the peripheral uart example.

Curiously, the connect sdk v1.7.0 version of central uart appears to be working correctly.

Is there a bug in the sample for NCS v2.0.0?

Thanks,

Phillip

Parents
  • I want to point out this issue is still occurring in the sample. I've used an nRF52-DK as well as a BMD-350 EVK, same issue in both, whether debugging or not. If I step through the code, it fails at bt_enable with a HardFault:

    Level,Function,Stack Frame,Source,PC,Return Address,Stack Used
    0,<HardFault Exception>,32 @ 0x20005188,fault_s.S:80,0x00019190,[0x200051A0]: 0x11B35B2A,32
    0,Top of stack - return address out of range: 0x11B35B2A,,,,,

    Edit: I upgraded NCS to 2.2.0 and this seems resolved. So maybe a non-issue now.

Reply
  • I want to point out this issue is still occurring in the sample. I've used an nRF52-DK as well as a BMD-350 EVK, same issue in both, whether debugging or not. If I step through the code, it fails at bt_enable with a HardFault:

    Level,Function,Stack Frame,Source,PC,Return Address,Stack Used
    0,<HardFault Exception>,32 @ 0x20005188,fault_s.S:80,0x00019190,[0x200051A0]: 0x11B35B2A,32
    0,Top of stack - return address out of range: 0x11B35B2A,,,,,

    Edit: I upgraded NCS to 2.2.0 and this seems resolved. So maybe a non-issue now.

Children
Related