You are not logged in.
Pages: 1
Hi, I've built up PLEN2 and i'm now ready to install the firmware. How do I do this? I've downloaded the latest Arduino IDE 1.6.7 and the latest firmware, I plugged in PLEN2 clicked upload and it failed to upload. Any ideas what i'm doing wrong?
Error message I receive when I try to upload firmware
Arduino: 1.6.7 (Windows 10), Board: "Arduino/Genuino Micro"
sketch\JointController.cpp: In member function 'void PLEN2::JointController::loadSettings()':
JointController.cpp:150: error: lvalue required as left operand of assignment
TCCR1B =
^
exit status 1
lvalue required as left operand of assignmentThis report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Last edited by pdpw (2015-12-19 19:29:29)
Offline
Hi, pdpw
I have tested same environment, but I have got no errors...
You could get Arduino IDE ver.1.6.5 from following link.
-> https://www.arduino.cc/en/Main/OldSoftw … s#previous
Would you tell me that the problem is happening even if to install the firmware in the enviroment?
Offline
Using Arduino 1.6.5 I get the same error message
Last edited by pdpw (2015-12-21 06:50:15)
Offline
For confirmation, have you edit the firmware?
I found a mistake that end of your line 148 is pipe(= |) but it is not semi-colon(= ;).
-> https://github.com/plenproject/PLEN2/bl … r.cpp#L148
Offline
Yes, I downloaded the firmware again, this time it worked :) but still got a few problems lol. I switched him on and because the motors aren't set the arms and legs flew off in different directions and broke a couple of parts (knee joint for servo horn, and servo bracket, also where the servo horn goes) I will have to try and print out some stronger parts.
Offline
I've down loaded the Firmware 1.4.2 and straight away tried uploading to the control board. However, I can't get it through. The Arduino error message shown below: -
======================================
Arduino: 1.8.0 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from c:\program files (x86)\arduino 1_8_0\hardware\tools\avr\avr\include\avr\io.h:99:0,
from c:\program files (x86)\arduino 1_8_0\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
from sketch\JointController.cpp:13:
sketch\JointController.cpp: In member function 'void PLEN2::JointController::loadSettings()':
JointController.cpp:152: error: 'COM1C1' was not declared in this scope
_BV(COM1C1) | _BV(COM1C0); // Set OC1C to HIGH when compare matched.
^
JointController.cpp:152: error: 'COM1C0' was not declared in this scope
_BV(COM1C1) | _BV(COM1C0); // Set OC1C to HIGH when compare matched.
^
JointController.cpp:158: error: 'OCF1C' was not declared in this scope
TIFR1 = _BV(OCF1A) | _BV(OCF1B) | _BV(OCF1C) | _BV(TOV1); // Clearing interruption flag.
^
sketch\JointController.cpp: In function 'void __vector_13()':
JointController.cpp:37: error: 'OCR1C' was not declared in this scope
#define PLEN2_JOINTCONTROLLER_PWM_OUT_00_07_REGISTER OCR1C
^
sketch\JointController.cpp:557:5: note: in expansion of macro 'PLEN2_JOINTCONTROLLER_PWM_OUT_00_07_REGISTER'
PLEN2_JOINTCONTROLLER_PWM_OUT_00_07_REGISTER = JointController::m_pwms[
^
exit status 1
'COM1C1' was not declared in this scope
======================================
I have also tried Arduino 1.6.5 and 1.8.0 to compile PLEN2 Firmware version 1.4.1 and 1.4.2. All of them yielded the same error message.
I have no clue on which way to come around this problem.
Anyone, please help
Offline
Silly me!
Indeed I did not select the correct board.
Thank you so much Guvalif.
Offline
Pages: 1