pyocd / pyocd/pyOCD

when used as Cortex-Debug gdbserver, program cannot stop at breakpoint if there isn't FlashRegion in memory map definition.

Open
#1,756 0 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

the memory map definition in CoreSightTarget is:

return MemoryMap(
                RamRegion(name="Code",          start=0x00000000, length=0x20000000, access='rwx'),
                RamRegion(name="SRAM",          start=0x20000000, length=0x20000000, access='rwx'),

after start debugging in vscode + Cortex-Debug, the program don't stop at entry of main.

but after changing memory map definition to:

return MemoryMap(
                FlashRegion(name="Code",        start=0x00000000, length=0x20000000, blocksize=0x800, access='rwx'),
                RamRegion(name="SRAM",          start=0x20000000, length=0x20000000, access='rwx'),

after start debugging in vscode + Cortex-Debug, the program stop at entry of main.

So is this a problem?

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 CoreSightTarget memory map definition and compare the behavior of Code as a RamRegion versus a FlashRegion. Reproduce the session through VS Code and Cortex-Debug, then inspect the GDB-server breakpoint flow; done means determining whether the region classification causes the failure and documenting or correcting the behavior with a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, vscode
Domain
devtools, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.