If you have an outdated ESP32 core, you will probably see the message like this while compiling the code:
ResolveLibrary(sha/sha_parallel_engine.h)
-> candidates: []ESP32_Code:59:85: fatal error: sha/sha_parallel_engine.h: No such file or directory
#include "sha/sha_parallel_engine.h" // Include hardware accelerated hashing library
^
compilation terminated.
To solve that, you can either:
Update your ESP32 core (recommended for the future)
Open Arduino IDE > File > Preferences > In the Additional boards URL field put:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
After doing that, update your ESP32 core: Arduino IDE > Tools > Board > Boards Manager > Type esp32 > Install version 2.0.1
You should now be able to compile the code without any problems.
Or use the older library version
Go to line 59 of the ESP32_Code.ino that says
#include "sha/sha_parallel_engine.h" // Include hardware accelerated hashing library
Comment it:
//#include "sha/sha_parallel_engine.h" // Include hardware accelerated hashing library
And enable the old library (uncomment line 58):
#include "hwcrypto/sha.h"
You should now be able to compile the code. Keep in mind using the old library will yield to worse performance.
If you have an outdated ESP32 core, you will probably see the message like this while compiling the code:
To solve that, you can either:
Update your ESP32 core (recommended for the future)
Open Arduino IDE > File > Preferences > In the
Additional boards URLfield put:https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.jsonAfter doing that, update your ESP32 core: Arduino IDE > Tools > Board > Boards Manager > Type
esp32> Install version2.0.1You should now be able to compile the code without any problems.
Or use the older library version
Go to line
59of theESP32_Code.inothat saysComment it:
//#include "sha/sha_parallel_engine.h" // Include hardware accelerated hashing libraryAnd enable the old library (uncomment line 58):
You should now be able to compile the code. Keep in mind using the old library will yield to worse performance.