I am facing some issues while coding the FW for my application and would like to print comments, values, states etc during debugging. Unfortunaltey I can't use printf function neither arch_printf function as the run of the code is stopped in the debugging session when including the functions named above. Is there a way to perform some kind of print to console during debugging with µKeil5? What parameters need to be set and where can I find these? What kind of function do I neet to use to print data to console?
My development is based on the DA14531 USB Dev Kit and the Code is based on the ble_app_peripheral example project in the SDK 220.127.116.114.
Thanks in advance, Patipat3110
Hi Patipat3110,Thank you for posting your question online.Please refer on the SDK6 Getting Started Guide 10. Debugging via Serial Port:10. Debugging via Serial Port — DA145XX Tutorial SDK Getting started…
Hi Patipat3110,Thank you for posting your question online.Please refer on the SDK6 Getting Started Guide 10. Debugging via Serial Port:10. Debugging via Serial Port — DA145XX Tutorial SDK Getting started (renesas.com)At the start of the guide you can see the configuration for USB dev kit:And at chapter 10, you can see that you will have to define the CFG_PRINTF macro on the da1458x_config_basic.h file and include the arch_console.h file in the file you are trying to print something.You should also check on user_periph_setup.h file which Pin you have configured for UART_TX.Please follow the guide and share your results.Kind Regards,OV_Renesas
Hi OV_Renesas, I tried it previously with the method explained above but faced some issues. I couldn't figure out what caused these issues wherefore I opened the topic. I again followed the instructions and everything worked as desired. It seems that I did something wrong the first time I tried. Unfortunately I can't reproduce what was my mistake.
Thanks for the fast reply and the help!
Hi patipat3110,Thank you for the feedback.Glad you were able to solve the issue and see printed messages.If you want you can verify the answer so you can help others in the community as well.Kind Regards,OV_Renesas