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

Flashing memory does not work #166

Closed
dbrgn opened this issue Apr 2, 2015 · 5 comments
Closed

Flashing memory does not work #166

dbrgn opened this issue Apr 2, 2015 · 5 comments

Comments

@dbrgn
Copy link
Contributor

dbrgn commented Apr 2, 2015

Flashing the 1-wire memory does not seem to work...

I created this script: https://github.com/dbrgn/crazyflie-clients-python/blob/flash-example/examples/flash-memory.py

It first updates the attributes of the memory instance. Then it sends a write command using mem.write_data(data_written).

If I inspect the memory instance from within the data_written callback, the attributes correspond to the new values. But when I disconnect and reconnect, the old values are present again.

What could be the problem here?

@dbrgn
Copy link
Contributor Author

dbrgn commented Apr 17, 2015

Any news on this? :)

@ataffanel
Copy link
Member

The one-wire memories are written by the nRF51 and it is hard to implement writing the memories while having the bluetooth enabled so the nRF51 can only write the one wire memories when the bluetooth stack is disabled.

You can flash an nRF51 firmware without bluetooth by running:

crazyflie2-nrf-firmware$ make BLE=0
...
crazyflie2-nrf-firmware$ make BLE=0 cload
...

Then flashing the one wire memory should work.

@dbrgn
Copy link
Contributor Author

dbrgn commented Apr 17, 2015

Thanks, I'll try that!

@evoggy
Copy link
Member

evoggy commented Jun 26, 2015

I'm closing this one since it's not a client issue and referring to bitcraze/crazyflie2-nrf-firmware#3 for the real issue.

@evoggy evoggy closed this as completed Jun 26, 2015
dbrgn added a commit to dbrgn/crazyflie-clients-python that referenced this issue Aug 14, 2015
@dbrgn
Copy link
Contributor Author

dbrgn commented Aug 18, 2015

Just for the record, this worked :)

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

3 participants