Skip to content

tianxiaoMCU/RTT2UART

Repository files navigation

RTT2UART

Note: Installed a virtual serial port tool like com0com before use this tool !

VirtualSerialPort.png

How to use

  • Step1: selete the device and click OK

    RTT2UART.pngSeleteDevice.png

  • Step2: config the target interface and speed

  • Step3: tick the Reset target option will reset the target once connected

  • Step4: scan then selete the virtual COM port like com4 and baud rate

  • Step5: click start to connect the target

  • Step6: selete another com port of the com port pair like com5 serialcomtool.png

Update the device lists

Note: Starting with version v2.0.0, there is no need to update JLinkDevicesBuildIn.xml file manually!

if can't find the device you want, follow the picture below and replace the JLinkDevicesBuildIn.xml file in the path of this tool.

exportdevicelist.png

Package the program with pyinstaller

Open cmd.exe in the project path and input follow command pyinstaller --onefile --name rtt2uart --noconsole -i .\swap_horiz_16px.ico .\main_window.py

Development

Create UI python class

execute the following command in a terminal

pyside6-uic .\rtt2uart.ui -o .\ui_rtt2uart.py
pyside6-uic .\sel_device.ui -o .\ui_sel_device.py

Create source file python class

execute the following command in a terminal

pyside6-rcc .\icons.qrc -o .\rc_icons.py