-->
Page 1 of 1

UART communication for PC in FreeRTOS.

PostPosted: Sun Apr 22, 2018 10:45 pm
by AndreFeliciano
Hi,

I installed, with Eclipse, the FreeRTOS on nodeMCU with 3 tasks and it is working normally. I could not communicate via UART.

I put "#include" driver / uart.h "" and "uart_init (BIT_RATE_115200);" in user_main.c. In the project it includes the files "uart.c" and "uart.h".

When it is flashing:

mingw32-make.exe: *** [build / app.out] Error 1
recipe for target 'build / app.out' failed - Makefile
undefined reference to `uart_init '- user_main.c

Any tips?

Re: UART communication for PC in FreeRTOS.

PostPosted: Tue Apr 24, 2018 1:51 am
by jcmvbkbc
AndreFeliciano wrote:mingw32-make.exe: *** [build / app.out] Error 1
recipe for target 'build / app.out' failed - Makefile
undefined reference to `uart_init '- user_main.c
Any tips?

Looking at FreeRTOS examples I see a function called uart_set_baud, maybe that's what you need to use instead of uart_init?

Re: UART communication for PC in FreeRTOS.

PostPosted: Tue Apr 24, 2018 6:31 pm
by AndreFeliciano
The same error still occurs. I think it's not connecting with the "uart.c" and "uart.h".