Hi Mark
I ran your image on a fresh 3B+ and it only lasted until the first software update applied.
So I searched the web and found that there was a problem on the release that you used and the suggestion was to upgrade to Raspbian Buster where the problem was fixed.
So I did and got everyting else running but now have to install the Panda Pi stuff onto the 3B+
is it possible to apt-get the Panada Pi package or is there some convoluted method for installing it, as your documentation is still pretty light.
Thanks Greg.
Sorry Mark, Way past this error. Please see new thread I started.
Having the same issue. Uncommented #define E0_... and now have this:
In file included from src/core/../inc/../HAL/HAL.h:26,
from src/core/../inc/MarlinConfig.h:30,
from src/core/serial.h:24,
from src/core/serial.cpp:23:
src/core/../inc/../HAL/./HAL_PANDAPI/HAL.h:211:1: warning: multi-line comment [-Wcomment]
//#define HAL_STEP_TIMER_ISR() \
^
In file included from src/core/../inc/MarlinConfig.h:38,
from src/core/serial.h:24,
from src/core/serial.cpp:23:
src/core/../inc/SanityCheck.h:2121:23: error: ‘X_SLAVE_ADDRESS’ was not declared in this scope
INVALID_TMC_ADDRESS(X);
^
src/core/../inc/SanityCheck.h:2119:52: note: in definition of macro ‘INVALID_TMC_ADDRESS’
#define INVALID_TMC_ADDRESS(ST) static_assert(0 <= ST##_SLAVE_ADDRESS && ST##_SLAVE_ADDRESS <= 3, "TMC2209 slave address must be 0, 1, 2 or 3")
^~
src/core/../inc/SanityCheck.h:2121:23: note: suggested alternative: ‘I2C_ADDRESS’
INVALID_TMC_ADDRESS(X);
^
src/core/../inc/SanityCheck.h:2119:52: note: in definition of macro ‘INVALID_TMC_ADDRESS’
#define INVALID_TMC_ADDRESS(ST) static_assert(0 <= ST##_SLAVE_ADDRESS && ST##_SLAVE_ADDRESS <= 3, "TMC2209 slave address must be 0, 1, 2 or 3")
^~
src/core/../inc/SanityCheck.h:2121:23: error: ‘X_SLAVE_ADDRESS’ was not declared in this scope
INVALID_TMC_ADDRESS(X);
^
src/core/../inc/SanityCheck.h:2119:74: note: in definition of macro ‘INVALID_TMC_ADDRESS’
#define INVALID_TMC_ADDRESS(ST) static_assert(0 <= ST##_SLAVE_ADDRESS && ST##_SLAVE_ADDRESS <= 3, "TMC2209 slave address must be 0, 1, 2 or 3")
^~
src/core/../inc/SanityCheck.h:2121:23: note: suggested alternative: ‘I2C_ADDRESS’
INVALID_TMC_ADDRESS(X);
^
src/core/../inc/SanityCheck.h:2119:74: note: in definition of macro ‘INVALID_TMC_ADDRESS’
#define INVALID_TMC_ADDRESS(ST) static_assert(0 <= ST##_SLAVE_ADDRESS && ST##_SLAVE_ADDRESS <= 3, "TMC2209 slave address must be 0, 1, 2 or 3")
^~
In file included from src/core/serial.cpp:23:
src/core/serial.cpp: In function ‘void serial_echopair_PGM(const char*, const char*)’:
src/core/serial.cpp:48:95: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
void serial_echopair_PGM(PGM_P const s_P, const char *v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
^
src/core/serial.h:55:51: note: in definition of macro ‘SERIAL_OUT’
#define SERIAL_OUT(WHAT, V...) Serial_send_char(V) /*do{ \
^
src/core/serial.cpp:48:83: note: in expansion of macro ‘SERIAL_ECHO’
void serial_echopair_PGM(PGM_P const s_P, const char *v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
^~~~~~~~~~~
In file included from src/core/serial.cpp:26:
./src/HAL/HAL_PANDAPI/driver_api.h:81:31: note: initializing argument 1 of ‘char Serial_send_char(char)’
char Serial_send_char( char buf_data);
~~~~~~^~~~~~~~
make: *** [Makefile:36: src/core/serial.o] Error 1
Also, with dual Z, should Z2 also be uncommented in pins_panda_pi.h??
Thanks, Also still looking for invoice. Are you seeing my emails too? Afraid to send payment if it is going to get lost in the ether.
you enable the TMC for E0, and you need to enable the E0 serial in pins_PANDA_PI.h
change
//#define E0_HARDWARE_SERIAL customizedSerial1
to
#define E0_HARDWARE_SERIAL customizedSerial1
Thanks Mark got it from google and it fixed that problem bot now I have a new one it wont compile.
stderr:In file included from src/feature/../inc/MarlinConfig.h:38:0,
from src/feature/babystep.cpp:23:
src/feature/../inc/SanityCheck.h:2098:4: error: #error "TMC2208 or TMC2209 on E0 requires E0_HARDWARE_SERIAL or E0_SERIAL_(RX|TX)_PIN."
#error "TMC2208 or TMC2209 on E0 requires E0_HARDWARE_SERIAL or E0_SERIAL_(RX|TX)_PIN."
^~~~~
#arm-linux-gnueabihf-g++ -I./ -I./src/lcd/dogm -I/home/pi/src/CMSIS -I/home/pi/src/utility -ITMC2208Stepper -I/home/pi/src/CMSIS-W -I./lib/TMCStepper-master/src/source/-I./lib/TMCStepper-master/src/ -Wall -g0 -lm -O0 -c -std=c++11 -D PANDAPI -Wall -cpp src/feature/backlash.cpp Configuration.h Configuration_513_104.h Configuration_513_1121.h Configuration_adv.h Configuration_adv_513_104.h Configuration_adv_513_1121.h Version.h pins_PANDA_PI.h -o src/feature/backlash.o
Makefile:36: recipe for target 'src/core/serial.o' failed
stderr:make: *** [src/core/serial.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:36: recipe for target 'src/feature/babystep.o' failed
stderr:make: *** [src/feature/babystep.o] Error 1
stderr:In file included from src/core/utility.cpp:26:0:
src/core/../module/temperature.h: In static member function ‘static void Temperature::setTargetHotend(int16_t, uint8_t)’:
src/core/../module/temperature.h:660:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
stderr:src/core/../module/temperature.h: In static member function ‘static void Temperature::setTargetBed(int16_t)’:
src/core/../module/temperature.h:731:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
src/core/../module/temperature.h: In static member function ‘static void Temperature::updatePID()’:
src/core/../module/temperature.h:90:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
#define _PID_Kp(H) Temperature::temp_hotend[H].pid.Kp
^
src/core/../module/temperature.h:111:24: note: in expansion of macro ‘_PID_Kp’
#define PID_PARAM(F,H) _PID_##F(H)
^~~~~
src/core/../module/temperature.h:843:30: note: in expansion of macro ‘PID_PARAM’
sprintf(tmp_data,"K%.5f;",PID_PARAM(Kp, e));
^~~~~~~~~
In file included from src/core/utility.cpp:26:0:
src/core/../module/temperature.h:845:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
In file included from src/core/utility.cpp:26:0:
src/core/../module/temperature.h:91:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
#define _PID_Ki(H) Temperature::temp_hotend[H].pid.Ki
^
src/core/../module/temperature.h:111:24: note: in expansion of macro ‘_PID_Ki’
#define PID_PARAM(F,H) _PID_##F(H)
^~~~~
src/core/../module/temperature.h:859:30: note: in expansion of macro ‘PID_PARAM’
sprintf(tmp_data,"I%.5f;",PID_PARAM(Ki, e)/1000.0);
^~~~~~~~~
In file included from src/core/utility.cpp:26:0:
src/core/../module/temperature.h:861:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
In file included from src/core/utility.cpp:26:0:
src/core/../module/temperature.h:92:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
#define _PID_Kd(H) Temperature::temp_hotend[H].pid.Kd
^
src/core/../module/temperature.h:111:24: note: in expansion of macro ‘_PID_Kd’
#define PID_PARAM(F,H) _PID_##F(H)
^~~~~
src/core/../module/temperature.h:875:30: note: in expansion of macro ‘PID_PARAM’
sprintf(tmp_data,"D%.5f;",PID_PARAM(Kd, e));
^~~~~~~~~
In file included from src/core/utility.cpp:26:0:
src/core/../module/temperature.h:877:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
stderr:make: *** [src/core/utility.o] Error 1
Makefile:36: recipe for target 'src/core/utility.o' failed
#arm-linux-gnueabihf-g++ -I./ -I./src/lcd/dogm -I/home/pi/src/CMSIS -I/home/pi/src/utility -ITMC2208Stepper -I/home/pi/src/CMSIS-W -I./lib/TMCStepper-master/src/source/-I./lib/TMCStepper-master/src/ -Wall -g0 -lm -O0 -c -std=c++11 -D PANDAPI -Wall -cpp src/feature/baricuda.cpp Configuration.h Configuration_513_104.h Configuration_513_1121.h Configuration_adv.h Configuration_adv_513_104.h Configuration_adv_513_1121.h Version.h pins_PANDA_PI.h -o src/feature/baricuda.o
make: Leaving directory '/home/pi/PandaPI/Marlin2.x/pandapi'
compile failed !stdclose:2compile failed !
it's too big more than 1G. and you can download it from google drive too. https://drive.google.com/drive/folders/1xlkQJ8b27y8HGENpcFRK6kwLv7XOTpJY?usp=sharing
Can You post a working 3B+ image on Github that would be great for all of us as I have noticed others having problems with Mega-Mess
The megazip site wont work properly I got everything from your GitHub page.
Hi Greg,
the web page is old. did you download this one PandaPi3_20200405.zip ?
the web page should like this, and marlin code should in /home/pi/PandaPI/Marlin2.x/
Hi Mark
I just reloaded your Image and put pandapi directory into /home/pi
But now i get a new problem.
Hi Greg, it's a good advice. and now I have not do this install with apt -get and will add this later. apart from the Pandapi package that needs to be copied into /home/pi,the kernel image needs to be updated to RT kernel too