gdb server command failing with "no attribute '_pack_file'"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 560
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 3
Description
When trying to launch the command
pyocd gdbserver --target=ATSAMC21J18A --pack=C:\\Users\\Username\\.mchp_packs\\Microchip\\SAMC21_DFP\\3.9.248
it fails with the error
C Error: 'CmsisPack' object has no attribute '_pack_file'
It works when I pass a path to the .pack file instead of the unzipped directory. However, looking at CmsisPack in .\target\pack\cmsis_pack.py it should work with the unzipped directory as well.
Link to the pack I used:
https://packs.download.microchip.com/Microchip.SAMC21_DFP.3.9.248.atpack
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in target/pack/cmsis_pack.py and reproduce the failure with the unzipped Microchip.SAMC21_DFP.3.9.248 directory passed to the pyocd gdbserver command. Compare that behavior with passing the .pack file and verify that the command works with the directory without the '_pack_file' attribute error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100