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

Add wakeup() in begin() to avoid flash not working anymore after reset/upload #48

Open
hallard opened this issue Sep 8, 2017 · 2 comments

Comments

@hallard
Copy link

hallard commented Sep 8, 2017

Hi Paul,

I spend some time to understand why my flash wasn't able to read/write data after uploading new sketch or even old working sketch, until I powered board off then on and get it back to life.

Then I understood, Oh, I changed main sketch to put flash into sleep mode with SerialFlash.sleep(); and seems it's not waked on reset so any further use fail.

Now I'm doing SerialFlash.wakeup(); after SerialFlash.begin(4);, it's fine but may be adding this call in begin() of library would make sense and would avoid this little pain to other first time ;-)

@dots123
Copy link

dots123 commented Aug 1, 2018

It helped me too! Thank you Hallard!

And thank you Paul for this great library!

@juanpabloderosas
Copy link

juanpabloderosas commented Mar 17, 2023

Thanks Hallard! I've spend three days trying to understand the problem. Your post solved it instantaneously my problem!

Also, thanks Paul for the library, its great!

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