Skip to content

rp2350 pc_EraseAll is wrong in target_rp2.py on develop #1762

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

Open
rgrr opened this issue Feb 25, 2025 · 2 comments
Open

rp2350 pc_EraseAll is wrong in target_rp2.py on develop #1762

rgrr opened this issue Feb 25, 2025 · 2 comments

Comments

@rgrr
Copy link
Contributor

rgrr commented Feb 25, 2025

Is this just a typo or really wrong?:

https://github.com/pyocd/pyOCD/blob/develop/pyocd/target/family/target_rp2.py#L65

@rgrr
Copy link
Contributor Author

rgrr commented Feb 25, 2025

perhaps @konkers knows best?

@hagibr
Copy link

hagibr commented May 27, 2025

A workaround could be to comment the line with pc_eraseAll for now. pyOCD will call the function at pc_erase_sector multiple times instead. I had to do this for my self generated builtin for EFR32BG24, because the algorithm from CMSIS-Pack was implemented wrong. Internally, EraseChip() was calling EraseSector() multiple times but starting at address 0x0, where it should be starting at address 0x08000000. Another way they could accomplish this was to actually execute the mass erase routine, but I think they were lazy or incompetent.

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

2 participants