Hi,I am trying to get get the UART module setup and running on SK S7G2 but it seems that I did something wrong.The user uart callback does not work in my hal_entry. I get unknown type name 'uart_callback_args_t'; did you mean 'cgc_callback_args_t'?I figured I need to put this code into my new_thread0_entry.c file. Then it gets compiled without errors. But still its not working. What am I missing?
You must insert the code in thread function, not into callback. callback is use to manager the events.
I recommend that you check the return value of the API.
Thank you, but when I do it and build I get this error:c:/renesas/synergy/e2studio_v2021-10_ssp_v2.2.0/toolchains/gcc_arm/9_2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: ./src/synergy_gen/new_thread0.o:(.rodata.g_uart0_cfg+0x18): undefined reference to `user_uart_callback'makefile:72: recipe for target 'UART.elf' failedThats why I added the callback. But when I insert it into the thread function without the callback and build I always get the error undefined reference to `user_uart_callback'
Have you read and understood the Renesas UART Module Guide - it also contains a working project you can download and example.
This link should work - no search required.
I will look at the code samples and read it again. Thank you