pyocd / pyocd/pyOCD

Use arrays instead of lists for data

Open
#566 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently pyOCD uses lists of ints to hold pretty much all data it uses, from reading or writing memory and flash programming to CMSIS-DAP commands, and so on.

This needs to be changed so that bytearray and/or array.array are used instead. However, lists of ints must still be accepted for APIs parameters.

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

No files or tests are named. Start by mapping the repository-wide paths that store or pass lists of ints, then identify the relevant API tests; done means internal data uses bytearray or array.array while API parameters still accept lists of ints.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.