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

BLE App Uart nRF52810

I'm trying to get the ble_app_uart example working on a nRF52810. I'm using SDK 15.2.0 together with Softdevice S112.

The infocenter says the Example needs Softdevice S132 or S140 http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Findex.html. But that's not available for nRF52810. So what's the solution to run the ble_app_uart demo on the nRF52810?

If I try to use the ble_app_uart on the nRF52810 with the pca10040e then it doesn't work. I don't get UART output and also don't see any UART device with the nRF Connect App.

Parents
  • Hi,

    The pca10040e configuration requires softdevice s112 (\components\softdevice\s112\hex) which will be uploaded automatically if you use Segger Embedded studio. Does you board include a 32kHz crystal? If not, make sure to change the clock source to use the internal RC in sdk_config.h.


  • Hi,

    Thanks for the fast answer. I already did that but it still doesn't work. I'm using arm gcc under Linux. I have also removed the emulation flags in the Makefile.

  • Hi,

    I would suggest that you debug the code, see if the program reaches main() for instance. You may use Segger embedded studio for debugging if you don't have a different debug setup. Also, since you have a custom board, note that the code enables pinreset on P0.21 by default (is active low).

  • Hi,

    Thanks! The Reset Pin was the issue, it's now working! What I don't understand is, if I understand correctly the -DCONFIG_GPIO_AS_PINRESET flag enables this feature. But that's also enabled on the ble_app_beacon example. But the beacon example is working without hooking up P0.21 to VCC.

  • hmm, it's a bit strange. I have disabled the -DCONFIG_GPIO_AS_PINRESET, erased the chip and reflashed everything. But the reset seems to be still active. My Hardware leaves P0.21 floating

    The PSELRESET register looks like that:

    nrfjprog -f NRF52 --memrd 0x10001200 --n 8          
    0x10001200: FFFFFFFF FFFFFFFF                     |........|

  • Pinreset should not have been triggered if  P0.21 was left floating. I suspect the actual issue is floating RX input: https://devzone.nordicsemi.com/f/nordic-q-a/40625/app_ble_uart-uart-must-be-hooked-up

  • Hi,

    Yep, I can confirm that this was the root issue. I thought it's resetting due to P0.21 but I was also unintentionally touching RX with my hands (and thus causing the APP_UART_COMMUNICATION_ERROR event). With enabling the Pullup or disabling the UART module it's fixed.


    Thanks for the first class support  

Reply
  • Hi,

    Yep, I can confirm that this was the root issue. I thought it's resetting due to P0.21 but I was also unintentionally touching RX with my hands (and thus causing the APP_UART_COMMUNICATION_ERROR event). With enabling the Pullup or disabling the UART module it's fixed.


    Thanks for the first class support  

Children
No Data