PandaPi icon indicating copy to clipboard operation
PandaPi copied to clipboard

Error when clicking run

Open Klinenator opened this issue 5 years ago • 10 comments

Im getting this error after click verify then run

cp: cannot stat '/media/usb/pandapi//pi_marlin': No such file or directory

Klinenator avatar Jan 18 '20 18:01 Klinenator

I believe the issue is that when it goes to make the file pi_marlin there is an error which is causing the error above

Klinenator avatar Jan 18 '20 18:01 Klinenator

after click verify it will compile the source and make the pi_marlin. did you see some error log after you click the verify?

markniu avatar Jan 18 '20 23:01 markniu

stderr:temperature.h: In static member function ‘static void Temperature::updatePID()’: temperature.h:581:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare] for(int i=0;i<strlen(tmp_data);i++) ~^~~~~~~~~~~~~~~~~ stderr:temperature.h:597:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare] for(int i=0;i<strlen(tmp_data);i++) ~^~~~~~~~~~~~~~~~~ stderr:temperature.h:613:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare] for(int i=0;i<strlen(tmp_data);i++) ~^~~~~~~~~~~~~~~~~ stderr:temperature.h:577:9: warning: unused variable ‘e’ [-Wunused-variable] char e=0; ^ stderr:Marlin_main.cpp: In function ‘void setup()’: Marlin_main.cpp:14693:35: error: too many arguments to function ‘void step_motor_init(void ()())’ step_motor_init(stepper.isr,48); //mark ^ stderr:In file included from Marlin_main.cpp:288: /home/pi/src/CMSIS/driver_api.h:74:6: note: declared here void step_motor_init(void(step_isr)(void)); ^~~~~~~~~~~~~~~ Marlin_main.cpp:14695:34: error: too many arguments to function ‘void step_motor_init(void ()())’ step_motor_init(stepper.isr,12); //mark ^ In file included from Marlin_main.cpp:288: /home/pi/src/CMSIS/driver_api.h:74:6: note: declared here void step_motor_init(void(step_isr)(void)); ^~~~~~~~~~~~~~~ Marlin_main.cpp:14697:33: error: too many arguments to function ‘void step_motor_init(void ()())’ step_motor_init(stepper.isr,8); //mark ^ In file included from Marlin_main.cpp:288: /home/pi/src/CMSIS/driver_api.h:74:6: note: declared here void step_motor_init(void(step_isr)(void)); ^~~~~~~~~~~~~~~ stderr:Marlin_main.cpp: In function ‘int test(int, char*)’: Marlin_main.cpp:15038:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] GetCurrentPath(buf,"Config_panda.ini"); ^ stderr:Marlin_main.cpp:15044:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] iCatAge = GetIniKeyInt("CAT","age","/media/usb/Config_panda.ini"); ^ Marlin_main.cpp:15044:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Marlin_main.cpp:15044:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Marlin_main.cpp:15045:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] char a = GetIniKeyString("CAT4","name",g_szConfigPath); ^ Marlin_main.cpp:15045:58: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] stderr:Marlin_main.cpp:15042:9: warning: unused variable ‘szCatName’ [-Wunused-variable] char szCatName[32]; ^~~~~~~~~ Marlin_main.cpp:15056:6: warning: unused variable ‘cn’ [-Wunused-variable] int cn=0; ^~ stderr:Marlin_main.cpp: At global scope: Marlin_main.cpp:15001:16: warning: ‘i2cMode’ defined but not used [-Wunused-variable] static uint8_t i2cMode = 0; ^~~~~~~ stderr:Marlin_main.cpp:14974:1: warning: ‘int GPIOWrite(int, int)’ defined but not used [-Wunused-function] GPIOWrite(int pin, int value) ^~~~~~~~~ Marlin_main.cpp:14949:1: warning: ‘int GPIORead(int)’ defined but not used [-Wunused-function] GPIORead(int pin) ^~~~~~~~ stderr:Marlin_main.cpp:14924:1: warning: ‘int GPIODirection(int, int)’ defined but not used [-Wunused-function] GPIODirection(int pin, int dir) ^~~~~~~~~~~~~ Marlin_main.cpp:14905:1: warning: ‘int GPIOUnexport(int)’ defined but not used [-Wunused-function] GPIOUnexport(int pin) ^~~~~~~~~~~~ Marlin_main.cpp:14885:1: warning: ‘int GPIOExport(int)’ defined but not used [-Wunused-function] GPIOExport(int pin) ^~~~~~~~~~ stderr:make: *** [Makefile:24: Marlin_main.o] Error 1 make: Leaving directory '/media/usb/pandapi' stdclose:2

Klinenator avatar Jan 19 '20 17:01 Klinenator

Thats what i get when i try to make in that directory manually

Klinenator avatar Jan 19 '20 17:01 Klinenator

it seems that some of the file not update, "Marlin_main.cpp:14695:34: error: too many arguments to function ‘void step_motor_init(void ()())’", check or download again the pandapi folder, which pi do you used pi3+or pi4? and which img file did you download?

markniu avatar Jan 20 '20 00:01 markniu

Pi4 and the pi4 img

On Jan 19, 2020, at 7:16 PM, Mark [email protected] wrote:

 it seems that some of the file not update, "Marlin_main.cpp:14695:34: error: too many arguments to function ‘void step_motor_init(void ()())’", check or download again the pandapi folder, which pi do you used pi3+or pi4? and which img file did you download?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Klinenator avatar Jan 20 '20 00:01 Klinenator

I will check it later today

markniu avatar Jan 20 '20 00:01 markniu

sorry for the out of update source for pi4, and now you can update the new github pandapi foler.

markniu avatar Jan 20 '20 15:01 markniu

Ok the update worked

Now i get this error when changing to TMC2130

error: #error "Y_CS_PIN is required for TMC2130. Define Y_CS_PIN in Configuration_adv.h." #error "Y_CS_PIN is required for TMC2130. Define Y_CS_PIN in Configuration_adv.h."

Klinenator avatar Jan 22 '20 01:01 Klinenator

you can run as a4988 or tmc2208 model with TMC2130 first. niujl123 Email:[email protected] Signature is customized by Netease Mail Master On 01/22/2020 09:33, Klinenator wrote: Ok the update worked Now i get this error when changing to TMC2130 error: #error "Y_CS_PIN is required for TMC2130. Define Y_CS_PIN in Configuration_adv.h." #error "Y_CS_PIN is required for TMC2130. Define Y_CS_PIN in Configuration_adv.h." — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

markniu avatar Jan 22 '20 09:01 markniu