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

nvs_open fails #23

Open
jeffsauer opened this issue Nov 10, 2017 · 1 comment
Open

nvs_open fails #23

jeffsauer opened this issue Nov 10, 2017 · 1 comment

Comments

@jeffsauer
Copy link

When compiling using the esp-idf v2.1, I was getting an error saying that nvs_open() failed. Looks like one needs to first initialize NVS now, apparently in previous version the WiFi init did that, but no longer. So, I edited main.c and added the following include:

#include "nvs_flash.h"

and then inside of initialise_wifi() I added:

nvs_flash_init();

just before the call to tcpip_adapter_init();

@Nicholas3388
Copy link
Owner

@jeffsauer Hi, before open nvs, you need to call nvs_flash_init() first.

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