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

nRF52833: Bluetooth peripheral_uart sample code not hitting UART receive callback

Board:     nRF52833 DK

Version:  1.0.0 PCA10100

SD:          s140

Env:         Segger v4.52 (installed on 5/10 via Toolchain Manager)

Hello all...

I'm running into a problem with the peripheral_uart sample for the nRF52833. I have ran the same example on the nRF840 DK with no issues. Both trials were with the s140 soft device loaded. 

I'm using nRF connect mobile and a COM terminal to see how the units are reacting. Both units boot up with Zephyr and the blue-tooth begins and allows me to connect with the phone. The difference appears when a message is sent to the DK using the 'Nordic UART Service'. On the 840, the message is echoed to the terminal like it should, and therefor, the bt_receive_cb is entered and executed. On the 833, the callback is never entered and nothing shows up on the terminal after the BLE connection message is displayed on the logger.

In the README, it says that the 833 isn't supported for this example, but the s140 is, so I'm not sure why this isn't working. I was wondering if anyone has had this problem with this example. Is there a port for this? Is it a hardware difference between the two DKs?

Thanks in advance,

josh 

Parents Reply Children
  • Hung,

    Thanks for the response. I have ran a debug session to monitor if bt_receive_cb() is getting called for both the 52840 and the 52833. It only reaches this callback on the 52840.. Is there a process that is done when porting DKs to the nrf samples? 

    As for other examples, I have used the 833 in the Bluetooth: throughput sample. There were no troubles here even though the Readme file didn't have this particular DK listed in its supported list of DKs. I have also had success with the Bluetooth: peripheral_lbs. It seems that the 833 just doesn't like the NUS. Any thoughts on why this might be?

    Thanks,

    Josh 

  • Hi Josh, I did a quick test here and it worked fine for me on the PCA10100, I can send and receive text both way on UART and on the phone. Please try to have a fresh build of the project. I don't see any reason why LBS works but not NUS. 

  • Hung,

    I went ahead and deleted the build and updated the SDK via the toolchain manager and the example works just fine now on the 833. I'm honestly not sure what was going on to get it to behave the way that it was before.. The behavior was repeatable yesterday.

    Either way I appreciate you taking the time to help me out. Super impressed with Nordic's support forums.

    Josh

Related