Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Serial / UARTE with S140 soft device

Does the serial function operate with a soft device.  Whenever i have an include statement for serial.h in a file with a softdevice I get a No such file or directory compilation error. In the main file can open declaration etc. Can also specifically add an include path without changing compilation error.  If i just compile the serial example then all is ok. 

Using a nRF52840 I need two UARTs services if required to use UARTE instead of serial how do you specifically configure and use the device?

Parents
  • Could you take a screenshot of the problem when you try to compile ? Make sure you include all the needed .c file and path to .h file. 

    Make sure you updated sdk_config.h to enable UART (set NRFX_UARTE_ENABLED = 1) and NRF_SERIAL_ENABLED = 1. 

    Serial library uses drv_uart as the backend, you can have multiple instance. There are 2 instance of UARTE on the NRF52840. 

Reply
  • Could you take a screenshot of the problem when you try to compile ? Make sure you include all the needed .c file and path to .h file. 

    Make sure you updated sdk_config.h to enable UART (set NRFX_UARTE_ENABLED = 1) and NRF_SERIAL_ENABLED = 1. 

    Serial library uses drv_uart as the backend, you can have multiple instance. There are 2 instance of UARTE on the NRF52840. 

Children
No Data
Related