pyocd / pyocd/pyOCD

pyocd rtt, how to send data?

Open
#1,635 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
560
Avg merge
1h 41m
Merged PRs (30d)
3

Description

$ pyocd rtt -t hc32l072
0001312 I Target type is hc32l072 [board]
0001329 I DP IDR = 0x0bc11477 (v1 MINDP rev0) [dap]
0001395 I AHB-AP#0 IDR = 0x04770031 (AHB-AP var3 rev0) [discovery]
0001401 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=43b:Arm part=4c0) [rom_table]
0001406 I [0]<e000e000:SCS v6-M class=14 designer=43b:Arm part=008> [rom_table]
0001409 I [1]<e0001000:DWT v6-M class=14 designer=43b:Arm part=00a> [rom_table]
0001412 I [2]<e0002000:BPU v6-M class=14 designer=43b:Arm part=00b> [rom_table]
0001415 I CPU core #0: Cortex-M0+ r0p1, v6.0-M architecture [cortex_m]
0001420 I 2 hardware watchpoints [dwt]
0001422 I 4 hardware breakpoints, 0 literal comparators [fpb]
0001452 I 3 up channels and 3 down channels found [rtt_cmd]
0001452 I Reading from up channel 0 ("Terminal") [rtt_cmd]
0001455 I Writing to down channel 0 ("Terminal") [rtt_cmd]
Info: [modbus_rtu_slave] HEX_CMD_03
Info: [modbus_rtu_slave] HEX_CMD_03
Info: [modbus_rtu_slave] HEX_CMD_03

After executing the command, I can receive RTT log data, but I need to send the data. How can I achieve this? For example, sending the "bms" string.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pyocd rtt command and its reported up and down channel handling, especially down channel 0 ("Terminal"). Check the command's help and existing RTT documentation to determine whether sending input is supported; done means the issue has a documented or clearly scoped way to send bms to the target.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.