Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
XIVN1987 opened this issue Jan 24, 2025 · 0 comments

Comments

@XIVN1987
Copy link

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant