Hi I want to ask something to help my friend working on ra2l1 as a project.
He wants to see a buttons threshold value but the problem is ,
He can see it on graphics or with help of debug menus but he wants to see it in console as a code .
Like printf(button3 threshold value) I couldn't find anything about it not spesificly releated to this .
I would be much appreciated if you can show me the way or a solution thanks
You need to write your code inside the hal_entry.c file if you don't use and RTOS.
The main function of the program in "hal_entry", so you should write your main code there.
The _write function…
Hello yarkin95,
I think, in this post there is a clear explanation on how to redirect the printf function to the UART: https://renesasrulz.com/mcu-mpu/ra/f/forum/19226/get-printf-to-send-characters-to-sci-uart/63330.
Kind regards,
Sergey
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!RenesasRulz Forum Moderatorhttps://renesasrulz.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
I'm very new into coding basically I'm lost in e2 studio can't analyze the code or not sure where to write my code in mainwhat I want is basically this: if button3 pressedprint (button3 threshold value)thanks to your answer I'm understanding better but I would accept any detailed help or answer
The _write function mentioned in the link above should be written before the hal_entry function.
The printf function has the same format as in usual C, so you can't use it in the way you have mentioned. You can refer here for its detailed description https://cplusplus.com/reference/cstdio/printf/.