RoganDawes / LOGITacker

Enumerate and test Logitech wireless input devices for vulnerabilities with a nRF52840 radio dongle.
GNU General Public License v3.0
635 stars 112 forks source link

Nordic nRF52840 Dongle (pca10059) - Unable to store settings/scripts #17

Closed johnc2k closed 4 years ago

johnc2k commented 4 years ago

My nRF52840 no longer wants to store any settings/scripts. I have tried the last 3 firmwares releases and I encounter the same problem each time:

LOGITacker (discover) $ options store <warning> LOGITACKER_OPTIONS: failed to find Flash Data Storage record for global options: 2 <error> LOGITACKER_OPTIONS: failed to write global options to Flash Data Storage <info> LOGITACKER_OPTIONS: global options stored to Flash Data Storage

LOGITacker (discover) $ script store test <error> LOGITACKER_SCRIPT_ENGINE: failed to write first task for script storage <info> app: Storing script failed

Do you have any suggestions on what the problem could be?

Thanks

John

mame82 commented 4 years ago

Sounds like flash layout is corrupted. Maybe you forgot to run the erase_flash command

johnc2k commented 4 years ago

Yep that fixed it, many thanks.

John

grymoire commented 1 year ago

I have the same problem, however, I don't see how to erase the flash memory. I'm using nRFconnect programmer v3.0.6 on Linux, and the "erase all" is disabled. According to the Nordic DevZone, this is done on purpose.

Updated: Now I understand. However, the documentation does not mention the erase_flash command. It would be nice if there was a comment "help" which listed all of the main commands.