Hi - Tried compiling with my modified Configuration.h (Pi4 image - for a Delta printer) and got the following error:
src/HAL/HAL_PANDAPI/HAL.cpp: In function ‘int freeMemory()’:
src/HAL/HAL_PANDAPI/HAL.cpp:69:14: error: cast from ‘void*’ to ‘int’ loses precision [-fper missive]
if ((int)__brkval == 0)
^~~~~~~~
src/HAL/HAL_PANDAPI/HAL.cpp:70:28: error: cast from ‘int*’ to ‘int’ loses precision [-fperm issive]
free_memory = ((int)&free_memory) - ((int)&__bss_end);
^~~~~~~~~~~
src/HAL/HAL_PANDAPI/HAL.cpp:70:50: error: cast from ‘char*’ to ‘int’ loses precision [-fper missive]
free_memory = ((int)&free_memory) - ((int)&__bss_end);
^~~~~~~~~
src/HAL/HAL_PANDAPI/HAL.cpp:72:28: error: cast from ‘int*’ to ‘int’ loses precision [-fperm issive]
free_memory = ((int)&free_memory) - ((int)__brkval);
^~~~~~~~~~~
src/HAL/HAL_PANDAPI/HAL.cpp:72:49: error: cast from ‘void*’ to ‘int’ loses precision [-fper missive]
free_memory = ((int)&free_memory) - ((int)__brkval);
^~~~~~~~
make: *** [Makefile:36: src/HAL/HAL_PANDAPI/HAL.o] Error 1
Any pointers appreciated as my initial making line-by-line config changes hasn't got me anywhere so far (still trying ...). Anybody got a Delta working ?
Ps. also a lot of "warning: "S_FMT" redefined" whatever I compile which I'm guessing is normal
Oops - quiet right. Didn't even notice I'd done that 😚. Thanks for the speedy response.
seems that you have dsiabled the SDSUPPORT in configure.h file. or for quick fix this error by disable the following freeMemory function in HAL.cpp,this fuction is just displaying the free ram in boot.
$ nano /home/pi/PandaPI/Marlin2.x/pandapi/src/HAL/HAL_PANDAPI/HAL.cpp
int freeMemory() { return 0; /* int free_memory; if ((int)__brkval == 0) free_memory = ((int)&free_memory) - ((int)&__bss_end); else free_memory = ((int)&free_memory) - ((int)__brkval); return free_memory; */ }