Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

RTT control block search code malfunction #1661

Open
elfmimi opened this issue Jan 14, 2024 · 0 comments
Open

RTT control block search code malfunction #1661

elfmimi opened this issue Jan 14, 2024 · 0 comments

Comments

@elfmimi
Copy link

elfmimi commented Jan 14, 2024

RTT control block search code functions incorrectly in certain cases.

A typical case is when the control block ID string is located across a 32-byte boundary.

error message for rtt subcommand:

0001919 C Control block not found [main]

error message for gdbserver subcommand, shown in gdb side:

Error: Control block not found

workaround:

try changing the base address by offset of 16 bytes. that is, one out of the following two should succeed.
pyocd rtt --target cortex_m -a 0x20000000 -s 0x10000
pyocd rtt --target cortex_m -a 0x20000010 -s 0x10000

or force 16-byte alignment for RTT control block.

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

No branches or pull requests

1 participant