Hello Arvind,
If your project is baremetal without KSDK, you need overwrite the functions of "_write()" and "_read()",
also configure the UART you want to use . About how to write, you can copy the code of Processor Expert.
I recommend you refer to this doc: How to use printf() to print string to Console and UART in KDS2.0
the part of “2.3 Use printf() in Bare Board Project ”
There is also a demo about use printf() in baremetal project. this is for KDSv2.0, while the method is the same
with KDS3.0 , just copy the files of the below :
Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------