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

using serial communication with softdevice

Hi everyone !

I want to use serial communication with my ble project. So i tried to implement  "/example/peripheral/serial " project into my ble project. I encountered too many errors but i fixed most of them by searching on DevZone. Now i got 4 errors and i couldn't fix them. My goal is using serial communication between my board with another custom board. Not over BLE.

Here is my output;

Building ‘nrf52-ble-tutorial-characteristic’ from solution ‘nrf52-ble-tutorial-characteristic’ in configuration ‘Release’
  Linking nrf52-ble-tutorial-characteristic.elf
    Output/nrf52-ble-tutorial-characteristic Release/Obj/nrf_drv_power.o: in function `nrf_drv_power_sd_usbevt_enable':
    undefined reference to `sd_power_usbdetected_enable'
    C:\Users\********\Desktop\Nordic\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\integration\nrfx\legacy/nrf_drv_power.c:229: undefined reference to `sd_power_usbpwrrdy_enable'
    C:\Users\*********\Desktop\Nordic\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\integration\nrfx\legacy/nrf_drv_power.c:236: undefined reference to `sd_power_usbremoved_enable'
Build failed

What do these functions do? Which librarires and drivers should i include for serial communication. Is there any tutorial for serial ?

and i share the project which using for practise.

Project for nRF52840, SoftDevice S140, SDK 15.0.0

copy the file inside "ble_peripheral".

nrf5-ble-tutorial-characteristic-master.rar

Parents
  • Hi.

    Have you had a look at infocenter about serialization?

    Best regards,

    Andreas

  • well, i checked it but i couldn't find my answer in there 

  • Hi.

    The link in my last reply gives a good explination of serialization, I suggest you read it.

    I was able to compile your project by using these includes:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    ../../../config
    ../../../../../../components
    ../../../../../../components/libraries/sensorsim
    ../../../../../../components/libraries/serial/
    ../../../../../../components/ble/ble_advertising
    ../../../../../../components/ble/ble_dtm
    ../../../../../../components/ble/ble_link_ctx_manager
    ../../../../../../components/ble/ble_racp
    ../../../../../../components/ble/ble_services/ble_ancs_c
    ../../../../../../components/ble/ble_services/ble_ans_c
    ../../../../../../components/ble/ble_services/ble_bas
    ../../../../../../components/ble/ble_services/ble_bas_c
    ../../../../../../components/ble/ble_services/ble_cscs
    ../../../../../../components/ble/ble_services/ble_cts_c
    ../../../../../../components/ble/ble_services/ble_dfu
    ../../../../../../components/ble/ble_services/ble_dis
    ../../../../../../components/ble/ble_services/ble_gls
    ../../../../../../components/ble/ble_services/ble_hids
    ../../../../../../components/ble/ble_services/ble_hrs
    ../../../../../../components/ble/ble_services/ble_hrs_c
    ../../../../../../components/ble/ble_services/ble_hts
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    You had included S132 instead of S140 header files. I also excluded nrf_soc.h and nrf_soc.c.

    Best regards,

    Andreas

  • Thank you Andreas, it's works fine now. I couldn't notice that because my project was working fine until i added UART.

Reply Children
No Data