-
Notifications
You must be signed in to change notification settings - Fork 478
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
Control block not found when using rtt with pyocd 0.35.0 #1553
Comments
@yannroth Do you have a sample executable that you could attach? I built the Zephyr threads sample for microbit v2 (with some devicetree hacks) with the console configured to RTT, and pyocd was able to find the control block.
|
I was trying to generate a binary but I couldn't reproduce the issue today. I guess it's an Heisenbug... I'll open a new issue If I encounter it again and manage to generate a binary that reproduce it. |
I'm facing similar issue with STM32F746G-DISCO board, 'control block is not found' with pyocd 0.35.1 when searched in a valid range and works fine with older version of pyocd, 0.34.3
|
@tdasika Can you make the code you're using available? Or just the ELF and linker map file might be sufficient. It'll be hard to debug without being able to reproduce it. I don't have a Disco-F746, but I can at least take a look at the memory image. |
I debugged it further and found that pyocd is always searching for control_block_id with 16 bytes string (when the block id is less than 16 bytes, it is padding with ‘\0’) |
I runs into exactly the same problem. Version 0.34.3 works as expected, while 0.35.1 fails. |
Rasied a PR to only search for the length of the control block ID provided during the rtt setup, |
This issue doesn't appear to be fixed for an nRF52840 with the RPI debugger. I upgraded to
It only seems to work if I provide the exact address Downgrading to Should I open a new issue? |
I also have the same issue with nrf52840. |
The issue still exists on 0.36.0 . RTT block cannot be found on 0.36.0 (latest version from pip) but works on 0.34.3. |
After upgrading to pyocd 0.35.0, rtt is not running anymore. I am testing on custom board with an nrf52832. Here is
When running on pyocd 0.34.3, there is no issue:
The text was updated successfully, but these errors were encountered: