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

UART/Serial Port Emulation over BLE seems not running

Hello guys,

I've a PCA10040 connected to my laptop.

It works fine with all the .hex BLE template example in the nordic SDK except with the UART example.

After download the ble_app_uart_pca10040_s132.hex I expected the device is advertising with the device name "Nordic_UART" and LED 1 is blinking (period 2 sec, duty cycle: 10%).

I also started Putty Emu Terminal 

Nothing happen!

The LED1 on the PCA  is stady ON.

Any idea or suggestions?

Of course as said earlier, the other BLE example as ble_app_template_pca10040_s132.hex   works fine.

Parents Reply Children
  • Hi Augusto,

    How do you download the image? via nRF Connect programmer, nRF-Command-Line-Tools or Segger?

    Is the image from nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\hex or generated by you? Is it an unmodified example? If not, what do you modify? 

    Are you able to do the following test?

    Please download nRF-Command-Line-Tools and use the image ble_app_uart_pca10040_s132.hex under nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\hex

    Execute the following commands in the Command Prompt(CMD):

    nrfjprog -eraseall

    nrfjprog --program ble_app_uart_pca10040_s132.hex --sectorerase --verify -r

    Do you see "UART started." with the terminal tool? If not, you could press the reset button and check again. It should adverse as "Nordic_UART" now. 

    Please let me know this can help or not. Thanks. 

    -Amanda 

  • Hi Amanda,

    I load the image by dragging the .hex file into JLINK interface iof the PCA10040 board

    BTW: It work fine for all the other example except with the UART.

    Yes I download the .hex example file from nRF5_SDK_17.0.2 SDK directory as it is.

    I tried also to build the image by SEGGER  and download it ...with same result. No adversing and LED1 and 2 steady ON.

    I tried also your suggestion using command line tool but the result is the same.

    Neither in the Putty terminal text like "UART started" is shown

    Is someone experienced my same issue with PCA10040 board and UART example?

    --Augusto

  • Hi, 

    Can you try another DK, pc, usb cable, or phone?

    Do you connect to the used COM port with the following UART settings?

    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: None
    AugROS said:
    I load the image by dragging the .hex file into JLINK interface iof the PCA10040 board

    Suggest programming the board with Sgger or command line tool. 

     

    AugROS said:
    I tried also to build the image by SEGGER  and download it ...with same result.

     I would suggest to enable the NRF_LOG_BACKEND_RTT_ENABLED (1), disable NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED (0) and building with debug mode to check the debug log. Is it possible to provide the debug log?

    -Amanda H.

  • Hello Amanda,

    sorry for late reply to your message.

    I solved the issue.

    The "ble_app_uart_pca10040_s132" its running on the pca10040.

    One of the last issue I've experienced is the error "error on writing characteristics (128)" when I attempt to write a value by using the nRFtoolbox' uart app.

    But this error seems to be related to the Android on my specific mobile, however changing mobile the issue disappear and all works fine.

    Thanks for your support. 

Related