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

[Bug]: Erase fw v3 for rak4631 does not work on SoftDevice S140 6.1.1 #5650

Open
recrof opened this issue Dec 22, 2024 · 5 comments
Open

[Bug]: Erase fw v3 for rak4631 does not work on SoftDevice S140 6.1.1 #5650

recrof opened this issue Dec 22, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@recrof
Copy link

recrof commented Dec 22, 2024

Category

Other

Hardware

Rak4631

Firmware Version

2.5.x

Description

Meshtastic_nRF52_factory_erase_v3_S140_6.1.0.uf2 that's bundled in every nrf52840 github release from version 2.5.0, does not erase flash fs on rak4631 - SoftDevice S140 6.1.1 when using meshtastic-cli with --noproto flag.
Serial connects but hangs without any output - not erasing the flash. Erase firmware v2 that downloaded from flasher.meshtastic.org (nrf_erase2.uf2) works with guide in docs

Relevant log output

No response

@recrof recrof added the bug Something isn't working label Dec 22, 2024
@recrof recrof changed the title [Bug]: Erase fw v3 for rak4631 in does not work on SoftDevice S140 6.1.1 [Bug]: Erase fw v3 for rak4631 does not work on SoftDevice S140 6.1.1 Dec 22, 2024
@fifieldt
Copy link
Contributor

Thanks for that. I believe we upgraded the NRF devices to SoftDevice 7 at some point, so Meshtastic_nRF52_factory_erase_v3_S140_7.3.0.uf2 would be the one to use now. It looks like that's also part of the bundle?

@caveman99
Copy link
Member

the 4631 stays on 6.1.1 - but the file should just work if you follow the instrustions. i just confirmed with a 4631 on my desk.

@recrof
Copy link
Author

recrof commented Dec 23, 2024

the 4631 stays on 6.1.1 - but the file should just work if you follow the instrustions. i just confirmed with a 4631 on my desk.

I believe that the instructions are pretty easy to follow. might be flash corruption(the reason I tried to wipe the device) reason to not work?

@fifieldt
Copy link
Contributor

@markbirss - ideas?

@markbirss
Copy link
Contributor

the 4631 stays on 6.1.1 - but the file should just work if you follow the instrustions. i just confirmed with a 4631 on my desk.

I believe that the instructions are pretty easy to follow. might be flash corruption(the reason I tried to wipe the device) reason to not work?

To confirm bad flash a full nrf52 erase with swdio using pyocd or openocd is required

pyocd is not as good at reporting flash error but openocd does as example below
image

Discord Link (using picoprobe and pyocd) notes
https://discord.com/channels/867578229534359593/871540140382761020/1252622025269448714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants