#1 2015-12-19 15:16:23

pdpw
Member
From: Cumbria, UK
Registered: 2015-12-19
Posts: 4

Firmware installation

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 assignment

  This 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

#2 2015-12-21 02:05:42

Guvalif
Moderator
From: Osaka / Japan
Registered: 2015-08-31
Posts: 135
Website

Re: Firmware installation

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

#3 2015-12-21 06:49:11

pdpw
Member
From: Cumbria, UK
Registered: 2015-12-19
Posts: 4

Re: Firmware installation

Using Arduino 1.6.5 I get the same error message

plen2_uploaderror.jpg

Last edited by pdpw (2015-12-21 06:50:15)

Offline

#4 2015-12-22 06:23:02

Guvalif
Moderator
From: Osaka / Japan
Registered: 2015-08-31
Posts: 135
Website

Re: Firmware installation

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

#5 2015-12-22 06:43:49

pdpw
Member
From: Cumbria, UK
Registered: 2015-12-19
Posts: 4

Re: Firmware installation

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

#6 2017-09-22 14:49:44

BobbyccW
Member
Registered: 2017-09-22
Posts: 2

Re: Firmware installation

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

#7 2017-09-23 11:28:14

Guvalif
Moderator
From: Osaka / Japan
Registered: 2015-08-31
Posts: 135
Website

Re: Firmware installation

Hi BobbyccW,

It seems you have a mistake on the board choosing:
x Arduino: 1.8.0 (Windows 10), Board: "Arduino/Genuino Uno"
o Arduino: 1.8.0 (Windows 10), Board: "Arduino/Genuino Micro"

Offline

#8 2017-09-23 16:55:24

BobbyccW
Member
Registered: 2017-09-22
Posts: 2

Re: Firmware installation

Silly me!

Indeed I did not select the correct board.

Thank you so much Guvalif.

Offline

Board footer

Powered by FluxBB