You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /Users/../Documents/Arduino/libraries/Sha/sha256.cpp:3:0:
/Users/../Documents/Arduino/libraries/Sha/sha256.cpp:6:20: error: variable 'sha256K' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint32_t sha256K[] PROGMEM = {
^
/Users/../Documents/Arduino/libraries/Sha/sha256.cpp:19:27: error: variable 'sha256InitState' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint8_t sha256InitState[] PROGMEM = {
^
Error compiling.
Read-only variables must be const as above suggestion.
Thanks!
The text was updated successfully, but these errors were encountered:
Just confirming that I had same issues: In Sha256.cpp need to change so it looks like (partial snippets of each) : -- simply added const keyword to each.
After changing these -- along with a changing the return value of write() method, it all compiled in the Arduino IDE against a nano board with atmeg328.
Thanks,
The compiling error message is shown below:
Arduino: 1.7.4 (Mac OS X), Board: "Arduino Uno"
In file included from /Users/../Documents/Arduino/libraries/Sha/sha256.cpp:3:0:
/Users/../Documents/Arduino/libraries/Sha/sha256.cpp:6:20: error: variable 'sha256K' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint32_t sha256K[] PROGMEM = {
^
/Users/../Documents/Arduino/libraries/Sha/sha256.cpp:19:27: error: variable 'sha256InitState' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint8_t sha256InitState[] PROGMEM = {
^
Error compiling.
Read-only variables must be const as above suggestion.
Thanks!
The text was updated successfully, but these errors were encountered: