Hello,
I'm trying to get the LPUART to work with my KL03 and J-Link Plus. I'm using the Kinetis Design Studio software. I assume that this communication will be over SWO, but when I select this in the debugger configuration I get nothing in my terminal window, which is setup for an SWO port (2332).
I know that the J-Link is working fine since it runs all my code that does not involve the UART without any issues. My problem is specific to the UART.
Is there anything else that I need to set in the debugger configuration?
Any ideas?
Thanks,
Sara
已解决! 转到解答。
Sara
You need to connect the LPUART's pins to a 3V serial to USB adapter (rather than an RS232-USB serial adapter) and then you can use it with a terminal program on the PC.
This is what the OpenSDA device does on the FRDM-KL03Z board.
Regards
Mark
Hi Sara,
I checked Segger J-Link Plus tool web, which doesn't provide the virtual serial feature.
If you are using FRDM-KL03Z board, customer could use on board Opensda debugger tool.
That debugger tool provide USB virtual serial port and with UART pins connects with KL03 chip:
Thank you for the attention.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Ma Hui,
I am not using the FRDM-KL03Z, I have my own development board with the KL03Z. I need a way to use the LPuart. Are you saying that there is no way to do so with the Segger J-link plus? I find that hard to believe!
Thanks,
Sara
Sara
Are you trying to use the SWD connection via the debugger as semi-hosting terminal (eg. https://mcuoneclipse.com/2015/05/27/semihosting-for-kinetis-design-studio-v3-0-0-and-gnu-arm-embedde...) or do you need to use the KL03's physical LPUART?
Regards
Mark
Hi Mark,
I need to use the KL03’s physical LPUART. Ultimately, my application won’t have the J-Link Plus and I think I know how I will use the LPUART in that situation. I was hoping to test out the UART on my board with a connection to my PC and a terminal window. Is that possible?
Thanks,
Sara
Sara Stout-Grandy, M.Eng., Ph.D., P.Eng.
Senior Hardware Designer
20 Angus Morton Dr., Bedford,
NS, Canada, B4B 0L9
902-450-1700, x278
Sara
You need to connect the LPUART's pins to a 3V serial to USB adapter (rather than an RS232-USB serial adapter) and then you can use it with a terminal program on the PC.
This is what the OpenSDA device does on the FRDM-KL03Z board.
Regards
Mark