pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.08k stars 472 forks source link

Pyocd input echo garbled code #1666

Closed ddleed closed 5 months ago

ddleed commented 5 months ago

I Have tested on Windows 10 and Ubuntu 22.04

0000929 I Target type is stm32f401rc [board] 0001019 I DP IDR = 0x2ba01477 (v1 rev2) [dap] 0001023 I debugvar 'DbgMCU_APB1_Fz' = 0x0 (0) [pack_target] 0001023 I debugvar 'DbgMCU_APB2_Fz' = 0x0 (0) [pack_target] 0001023 I debugvar 'DbgMCU_CR' = 0x7 (7) [pack_target] 0001023 I debugvar 'TraceClk_Pin' = 0x40002 (262146) [pack_target] 0001024 I debugvar 'TraceD0_Pin' = 0x40003 (262147) [pack_target] 0001024 I debugvar 'TraceD1_Pin' = 0x40004 (262148) [pack_target] 0001024 I debugvar 'TraceD2_Pin' = 0x40005 (262149) [pack_target] 0001024 I debugvar 'TraceD3_Pin' = 0x40006 (262150) [pack_target] 0001050 I AHB-AP#0 IDR = 0x24770011 (AHB-AP var1 rev2) [discovery] 0001063 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=020:ST part=411) [rom_table] 0001078 I [0] [rom_table] 0001087 I [1] [rom_table] 0001095 I [2] [rom_table] 0001103 I [3] [rom_table] 0001116 I [4] [rom_table] 0001128 I [5] [rom_table] 0001141 I CPU core #0: Cortex-M4 r0p1, v7.0-M architecture [cortex_m] 0001141 I Extensions: [DSP, FPU, FPU_V4, MPU] [cortex_m] 0001141 I FPU present: FPv4-SP-D16-M [cortex_m] 0001142 I Setting core #0 (Cortex-M4) default reset sequence to ResetSystem [pack_target] 0001145 I 4 hardware watchpoints [dwt] 0001153 I 6 hardware breakpoints, 4 literal comparators [fpb] 0001223 I 3 up channels and 3 down channels found [rtt_cmd] 0001223 I Reading from up channel 0 ("Terminal") [rtt_cmd] 0001227 I Writing to down channel 0 ("Terminal") [rttcmd] �0 msh >l�0li�0is�0st�0t�0_d�0de�0ev�0vi�0ic�0ce�0e�0 device type ref count


oled Character Device 0 uart2 Character Device 0 pin Miscellaneous Device 0 msh >a�0a

ddleed commented 5 months ago

pyocd rtt -t STM32F401RC