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

Telink-Flasher, changing bindkey, old bindkey is displayed after writing new bindkey #4

Closed
JsBergbau opened this issue May 27, 2021 · 3 comments

Comments

@JsBergbau
Copy link

After clicking "Set new Token & Bind keys" entered key reverts back to previous key. After clicking "Show all mi keys" current/correct key is shown.

KeyChange

@pvvx
Copy link
Owner

pvvx commented May 27, 2021

Most likely this is the work of cache flash. The new value is written to Flash, but the cache is not flushed.
When new keys are entered, the reboot flag is set. requires updating multiple variables in memory. This update only happens on cold initialization.
There is no procedure for resetting the Flash cache in the SDK and there is no answer to the question in the Telink forum "How to reset the Flash cache?".

pvvx added a commit to pvvx/ATC_MiThermometer that referenced this issue May 28, 2021
@pvvx
Copy link
Owner

pvvx commented May 28, 2021

Changed all memcpy() -> flash_read() for mi-keys...

@JsBergbau
Copy link
Author

Thanks for fixing so fast. Works now.
Can you also have a look at this Pullrequest? #3
If you need some changes, just tell.

FaBjE pushed a commit to FaBjE/ATC_MiThermometer that referenced this issue May 28, 2023
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