This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

basic UART sample for nRF Connect SDK

Hi,

I am struggling to find a basic sample for UART communication in NCS. As an experienced Nrf5 SDK programmer, I find it very hard to convert my firmware to nRF Connect and Zephyr. There is no small and simple example in the NCS, the Zephyr website just lists of bunch of declarations, and searching the internet and devzone yields a bewildering amount of different solutions, dead links, with or without FIFO, UART or UARTE, incomprehensible config settings and lots of code that is documented as "not running", "unreliable" etc. I just need 2 UARTs to transmit commands  to sensors and receive data from them, preferably under interrupt.

thx,

Henk

Parents
  • print screen of uart.huarttest.ZIP

    hi Stian,

    here is the ZIP and a printscreen of uart.h after compilation, showing flag is not active.

  • Hi, I ran your project and it compiles fine and the CONFIG_xx flags are set as expected. I ran this through the developers and they can not find anything wrong with your build output. The project includes the file autoconf.h which should set the correct configs. We have seen problems with the "long path name"-issue in Windows earlier, but it doesn't look like a very long path in your project. I can't explain this other than that you have a broken NCS install, or changed some code. Maybe you can try to checkout the newest NCS tag on git, removing any local changes, and use "west update" to get all subrepos to the correct commit.

Reply
  • Hi, I ran your project and it compiles fine and the CONFIG_xx flags are set as expected. I ran this through the developers and they can not find anything wrong with your build output. The project includes the file autoconf.h which should set the correct configs. We have seen problems with the "long path name"-issue in Windows earlier, but it doesn't look like a very long path in your project. I can't explain this other than that you have a broken NCS install, or changed some code. Maybe you can try to checkout the newest NCS tag on git, removing any local changes, and use "west update" to get all subrepos to the correct commit.

Children
No Data
Related