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

add libuarte to central&peripheral

Hello,
Im working on project that communicate with gps/gprs and it works with the example/peripheral/libuarte. 
but when I want to integrat it (add) it to central peripheral id doesnt :
I added the same "drivers" that are used on libuarte example and "library" and "sdkconfig" and also "User Include Directories"

here is my logs of errors:

  • Hi

    What do you mean by "I added the BLE things" to the SoftDevice? You should not make any changes to the SoftDevice files of your project as that might cause you a lot of trouble. What exactly are these changes?

    Best regards,

    Simon

  • no I didnt touch the sofdevice files , I added the ble folder and (nRF_BLE ,nRF_BLE_service nrf_softdevicefolder) and drivers and libraries that are used in Relay example and not used on libuarte example. and sdk config i combined both confi. and dirctorites so i try to combine all . but there is alwaus error , major one is Nrf_succes is undefineded

  • Okay, thank you for clarifying. I think you have started out wrong. It is much harder to implement BLE and the SoftDevice into an example that doesn't have that. One thing that came to mind. When implementing a SoftDevice into an example that didn't already have a SoftDevice you have to make sure you remove the ../../../../../../components/drivers_nrf/nrf_soc_nosd from the User Include Directories, as that might cause errors like NRF_SUCCESS undefined. Sorry I didn't think of this initially!

    Best regards,

    Simon

  • yes thats what i try to explained to you and continue forward to the main subject .
    is adding libeuart to the example of relay:
    i removed the nrf_soc_nosd: the nrf_nvic  and nrf_soc.

    I activate in the sdk libuarte and and alla of the sdkconfig libuarte , and now it complies without errors . but when i debug and upload it the nrf52832 the log is white and it stoped fastely and i push the button of play another time but the lof is emepery every thing is white. please have alook at my project , i promise i will share it with the community to see the example of relay with libeuarte.


    here is the file uploaded to we transfer beacaue the platforme wont i try many time 

    https://we.tl/t-6kCaxqyveA




    above is the probleme that show when i ckliked on play the frist time its caused by the uartInit()

  • Hi Oukheir

    The reason your debug terminal is white is due to a conflict with the default SDK examples and SEGGER. Please set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in your sdk_config.h file.

    Best regards,

    Simon

Related