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
Hi,
The firmware compilation using arduino IDE and/or platformio fails (fedora 35 / gcc g++ 11.2.1):
(here with platformio)
src/iceprog.cpp: In function 'void loop()':
src/iceprog.cpp:120:15: error: 'loopProg' was not declared in this scope
if (isProg) loopProg();
(...)
src/iceprog.cpp:121:8: error: 'loopBridge' was not declared in this scope
else loopBridge();
proposed solution : add the following declarations in iceprog.cpp (and/or iceprog.ino) after void readpage(uint16_t adr); (L87)
void loopProg(void);
void loopBridge(void);
The text was updated successfully, but these errors were encountered:
Sorry! I was pretty sure that I had the same problem with both "tracks" but the problem seems to affect only platformio.
I've done it again on another machine with arduino 1.6.9 + SPI 2.2.0 added + the original iceprog.ino loaded and the compilation is ok without the fix.
Mea culpa!
The compilation error with platformio is only linked to the code of iceprog.ino (through the src/iceprog.cpp link)
Except for loopBridge() and loopProg() the other important functions are correctly declared at the top of the file (from secerase to readpage). The platformio compiler complains because these 2 only appear below their parent function loop() with no previous declaration.
By the way, iceprog/iceprog.cpp seems to be a broken link file (git thinks it a normal file with a path inside).
Hi,
The firmware compilation using arduino IDE and/or platformio fails (fedora 35 / gcc g++ 11.2.1):
(here with platformio)
proposed solution : add the following declarations in
iceprog.cpp
(and/oriceprog.ino
) aftervoid readpage(uint16_t adr);
(L87)The text was updated successfully, but these errors were encountered: