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

ble_app_uart_c example not work

Hello!

I have:

  • nRF52840-Preview-DK (pca10056)
  • nRF5_SDK_13.0.0_04a0bfd (s140)

I load **nRF5_SDK_13.0.0_04a0bfd\examples\ble_central\ble_app_uart_c\hex\ble_app_uart_c_pca10056_s140.hex** to first board and **nRF5_SDK_13.0.0_04a0bfd\examples\ble_peripheral\ble_app_uart\hex\ble_app_uart_pca10056_s140.hex** to second board, and it work fine.

Next, I load SoftDevice via nRFgo studio to first board, compile ble_app_uart in IAR and load hex file. It work fine.

Next, I load SoftDevice via nRFgo studio to second board, compile **ble_app_uart_c** in IAR and load hex file. This does not work. I compile **ble_app_uart_c** in Keil and load hex file.  It is not work too: Board get error and reset when try ble_nus_c_tx_notif_enable(p_ble_nus_c) in ble_nus_c_evt_handler... Function  ble_nus_c_tx_notif_enable return NRF_ERROR_INVALID_STATE error, because p_ble_nus_c->handles.nus_tx_cccd_handle == BLE_GATT_HANDLE_INVALID...

Please help me!

Parents
  • Hello, thank for answert!

    I check SDK14. Hex example work fine. Commpiling in Keil and downloading with SoftDevice work fine too. But commpiling in IAR and downloading with SoftDevice do not work ((( I think it is my mistake, because I use IAR version 6.70.1

    And please, tell me, can I do this on SDK14: I need device whith Long Range (how I know, I must use s140_nrf52840_5.0.0-3.alpha_softdevice), device will be connect to 1 master and 8 slave device, and each device must have client and server NUS (I wanted use l2cap, but support of l2cap was removed)... Is it posible to do? And what example must I use for it? I look to: ble_central\ble_app_uart_c, ble_peripheral\ble_app_uart, ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput (from s140_nrf52840_5.0.0-3.alpha)?

    Regards!

Reply
  • Hello, thank for answert!

    I check SDK14. Hex example work fine. Commpiling in Keil and downloading with SoftDevice work fine too. But commpiling in IAR and downloading with SoftDevice do not work ((( I think it is my mistake, because I use IAR version 6.70.1

    And please, tell me, can I do this on SDK14: I need device whith Long Range (how I know, I must use s140_nrf52840_5.0.0-3.alpha_softdevice), device will be connect to 1 master and 8 slave device, and each device must have client and server NUS (I wanted use l2cap, but support of l2cap was removed)... Is it posible to do? And what example must I use for it? I look to: ble_central\ble_app_uart_c, ble_peripheral\ble_app_uart, ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput (from s140_nrf52840_5.0.0-3.alpha)?

    Regards!

Children
No Data
Related