I’m using a new MegaPi (with a Nema17 stepper motor on port1) and am trying to write scripts with MBlock.
Whenever I try to upload using the Stepper motor block, this error is returned (see below), and the upload fails with an “error compiling” message.
It seems to focus on “undefined reference to `megaPi_slots’”
Any help would be greatly appreciated, Thank you!
Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeStepper.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeStepperOnBoard.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeTemperature.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeTouchSensor.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeUltrasonicSensor.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeUSBHost.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeVoice.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeWifi.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\utility\avr\Servo.cpp.o
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp/core.a -LC:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp -lm
C:\Users\richa\AppData\Local\Temp\build3725806112167345696.tmp\MakeBlockDrive\MeStepperOnBoard.cpp.o:
In function `MeStepperOnBoard::MeStepperOnBoard(int)’:
C:\Program Files (x86)\mBlock\Arduino\portable\sketchbook\libraries\makeblock\src/MeStepperOnBoard.cpp:97: undefined reference to `megaPi_slots’
C:\Program Files (x86)\mBlock\Arduino\portable\sketchbook\libraries\makeblock\src/MeStepperOnBoard.cpp:97: undefined reference to `megaPi_slots’
collect2.exe: error: ld returned 1 exit status
Error compiling.