Hello.
I want to integrate UART and SPI ,I am using SDK15.2. The problem here is i am not able to add app_uart.h to main.c(spi).
My question here is how to add it to main,c?
I am using Keil uVision.
Thanks in Advance.
Hello.
I want to integrate UART and SPI ,I am using SDK15.2. The problem here is i am not able to add app_uart.h to main.c(spi).
My question here is how to add it to main,c?
I am using Keil uVision.
Thanks in Advance.
I am able to include all the necessary files,but when i build it shows 2 errors.
I am attaching the picture of error message along with Screenshot of a file in program which appears in faded form.
It's generally better to copy & paste errors as text - rather than a picture.
But your picture is clear enough to see in this case.
Again, this is a standard 'C' issue: header files just contain declarations (function prototypes) - so you also need to add the source (.c) file (or pre-built binary library) with the definitions of those functions.
http://c-faq.com/decl/decldef.html
And, again, there is a Nordic-specific twist that the correct settings in sdk_config.h are also required.
https://devzone.nordicsemi.com/f/nordic-q-a/39503/undefined-reference-on-the-linker-level
Have done all the necessary steps in program,also in sdk_config.h.Its not showing any errors now,but when i look on putty nothing appears.If we comment uart portion in main, nrf_log_info statements appear.
Whats the problem?
Any help would be appreciated.
Hi
What most people have trouble with is forgetting to enable something in the sdk_config.h file. You have to go through the sdk_config.h file of a uart example, and make sure that all functions enabled there are also enabled in your projects sdk_config file, as in setting all functions that are set to 1 in the example sdk_config to 1 in your project as well. If there are some functions enabled in the example file that is not at all in your project, you will have to copy/paste those.
Best regards,
Simon
Thanks.
We have already enabled all functions accordingly in config and no error is shown.
NRF_LOG_DEFAULT_BACKENDS_INIT() creates problem.
when we comment it only uart works but when we uncomment it nothing works.
We want both UART and SPI to work .
Any help would be highly appreciated.
Best Regards,
M Rafiq.