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

Simple UART app from scratch, setup and code

Hello.

I would like to use UART or UARTE in all of my future projects for debugging. What steps do I need for one app to work? More specifically:

1 - What include folders do I need for the Makefile?

2 - What source files do I need for the Makefile?

3 - What essential functions and definitions do I need in main.c? The peripherals/uart example is too convoluted and I can't extract what's needed and what not.

4 - What settings do I need to include in the sdk_config.h file?

I'm trying to make one and got a lot of errors from unidentified to undefined reference error when building, as I have no idea what to put in the makefile and the sdk_config.h file. 

Thank you and best regards.

Parents Reply Children
  • Hi,

    Thanks for passing by.

    I did start with it and successfully combined blinky example with it.

    However, I don't know what to include and config in the makefile and the sdk_config.h if I were to develop one from scratch. I'm sorry if my question is too confusing, my main questions are:

    What settings do I need to include in the sdk_config.h file?

    What source files and include folder do I need for the Makefile?

Related