Error uploading mrlcomm.ino to arduino

433 views
Skip to first unread message

David Pattee

unread,
Nov 25, 2019, 2:19:14 PM11/25/19
to InMoov

Hi there,

Long time lurker, first time poster.

I'm getting to the stage wehere I can start using MyRobotLab and testing sections as they're built. Unfortunately I am getting compiling and upload errors both on a Mac and a Windows machine. This is the machine I will be using in the battery copartment: https://www.amazon.ca/gp/product/B07NNWXMN5/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1

This is the error message:

Arduino: 1.8.10 (Mac OS X), Board: "Arduino Uno"

In file included from sketch/LinkedList.h:72:0,
                 from sketch/MrlComm.cpp:10:
sketch/LinkedList.cpp: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = Device*]':
sketch/LinkedList.cpp:182:29:   required from 'T LinkedList<T>::get(int) [with T = Device*]'
sketch/MrlComm.cpp:228:38:   required from here
LinkedList.cpp:53:10: error: cannot convert 'bool' to 'ListNode<Device*>*' in return
   return false;

          ^~~~~
sketch/LinkedList.cpp: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = Pin*]':
sketch/LinkedList.cpp:170:29:   required from 'T LinkedList<T>::remove(int) [with T = Pin*]'
sketch/MrlComm.cpp:297:24:   required from here
LinkedList.cpp:53:10: error: cannot convert 'bool' to 'ListNode<Pin*>*' in return
Multiple libraries were found for "Wire.h"
 Used: /Users/davidpattee/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire
Multiple libraries were found for "Servo.h"
 Used: /Users/davidpattee/Documents/Arduino/libraries/Servo
 Not used: /Applications/Arduino.app/Contents/Java/libraries/Servo
exit status 1
cannot convert 'bool' to 'ListNode<Device*>*' in return

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

If anyone has encountered this before and can offer some help it would be appreciated.

Regards,

David

gael langevin

unread,
Nov 25, 2019, 3:01:26 PM11/25/19
to David Pattee, InMoov
Hello,
Try an older version of Arduino.exe.
This happens sometimes. I am using 1.8.4 and it works fine.

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov




--
You received this message because you are subscribed to the Google Groups "InMoov" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/879e0c0b-02ab-4cb8-8745-13f7ac5b1af5%40googlegroups.com.

David Pattee

unread,
Nov 25, 2019, 5:29:14 PM11/25/19
to InMoov
Hello Gael,

Thanks for replying.

I installed 1.8.4 on my Mac and PC and the error message is the same.

Regards,

David
To unsubscribe from this group and stop receiving emails from it, send an email to inm...@googlegroups.com.

gael langevin

unread,
Nov 26, 2019, 5:50:05 AM11/26/19
to David Pattee, InMoov
Mmmh...Strange.
Do you have real Arduino or some copy?
Did you configure the port and the arduino type in the arduino.exe before the upload?

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/d70c0d29-0854-4798-9086-0293a0bb0a65%40googlegroups.com.

David Pattee

unread,
Nov 26, 2019, 11:13:41 AM11/26/19
to InMoov
Hi Gael,

I have been using the Arduino IDE for about 6 years and the Arduinos are real Arduino Mega 2560's. The ports are configured are COM3 for left side and COM4 for the right as Megas. I was able to upload mrlcomm.ino from a DELL Venue 8 tablet but since then, no luck.

Regards,

David

gael langevin

unread,
Nov 26, 2019, 1:29:09 PM11/26/19
to David Pattee, InMoov
Hello,
So you have been able to load the same MRLComm.ino previously with another PC on the same Arduino.
I would try still another arduino.exe version.
I don't think it is related, but Manticore needs java 7 or 8, not higher to run MRL.
But you could make a post at myrobotlab.org, they might have another suggestion to propose.

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/e653d210-56da-4017-8800-af662f38cf89%40googlegroups.com.

gael langevin

unread,
Nov 26, 2019, 1:42:27 PM11/26/19
to David Pattee, InMoov
I am still wondering why would the arduino.exe state the error:
Arduino: 1.8.10 (Mac OS X), Board: "Arduino Uno"
if you have a Mega plugged in...




Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



David Pattee

unread,
Nov 28, 2019, 3:31:29 PM11/28/19
to InMoov
Hi Gael,

Sorry for the delay. Work got in the way.

The error log I pasted was from an old test to a UNO.

Here is the latest from my Mac:

Arduino: 1.8.10 (Mac OS X), Board: "Arduino Mega 2560, ATmega2560 (Mega 2560)"


In file included from sketch/LinkedList.h:72:0,
                 from sketch/MrlComm.cpp:10:
sketch/LinkedList.cpp: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = Device*]':
sketch/LinkedList.cpp:182:29:   required from 'T LinkedList<T>::get(int) [with T = Device*]'
sketch/MrlComm.cpp:228:38:   required from here
LinkedList.cpp:53:10: error: cannot convert 'bool' to 'ListNode<Device*>*' in return
   return false;

          ^~~~~
sketch/LinkedList.cpp: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = Pin*]':
sketch/LinkedList.cpp:170:29:   required from 'T LinkedList<T>::remove(int) [with T = Pin*]'
sketch/MrlComm.cpp:297:24:   required from here
LinkedList.cpp:53:10: error: cannot convert 'bool' to 'ListNode<Pin*>*' in return
Multiple libraries were found for "Wire.h"
 Used: /Users/davidpattee/Library/Arduino15/packages/arduino/hardware/avr/1.8.1/libraries/Wire
Multiple libraries were found for "Servo.h"
 Used: /Users/davidpattee/Documents/Arduino/libraries/Servo
 Not used: /Applications/Arduino.app/Contents/Java/libraries/Servo
exit status 1
cannot convert 'bool' to 'ListNode<Device*>*' in return

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

gael langevin

unread,
Nov 28, 2019, 3:43:15 PM11/28/19
to David Pattee, InMoov
I have made a post for you on MyRobotLab.org:
Some of the MRL Gurus will certainly have a suggestion.

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/057b0f40-0175-4e16-97fc-3fbc25bd3fdb%40googlegroups.com.

David Pattee

unread,
Nov 28, 2019, 7:52:56 PM11/28/19
to InMoov
Hey Gael,

I just tried all arduino exes down to 1.6.11 and get another error message:

Arduino: 1.6.11 (Mac OS X), Board: "Arduino Mega 2560, ATmega2560 (Mega 2560)"

failed MSpanList_Insert 0x310000 0xae1e286746ac 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.throw(0x2b050b)
    /usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbff0d0 sp=0x7ffeefbff0a0
runtime.MSpanList_Insert(0x2ce168, 0x310000)
    /usr/local/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbff0f8 sp=0x7ffeefbff0d0
MHeap_FreeSpanLocked(0x2cad60, 0x310000, 0x100)
    /usr/local/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbff138 sp=0x7ffeefbff0f8
MHeap_Grow(0x2cad60, 0x8, 0x0)
    /usr/local/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbff178 sp=0x7ffeefbff138
MHeap_AllocSpanLocked(0x2cad60, 0x1, 0x0)
    /usr/local/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbff1b8 sp=0x7ffeefbff178
mheap_alloc(0x2cad60, 0x1, 0x12, 0x0)
    /usr/local/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbff1e0 sp=0x7ffeefbff1b8
runtime.MHeap_Alloc(0x2cad60, 0x1, 0x10000000012, 0xf989)
    /usr/local/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbff218 sp=0x7ffeefbff1e0
MCentral_Grow(0x2d2ad8, 0x0)
    /usr/local/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbff280 sp=0x7ffeefbff218
runtime.MCentral_CacheSpan(0x2d2ad8, 0x0)
    /usr/local/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbff2b8 sp=0x7ffeefbff280
runtime.MCache_Refill(0x30c000, 0x12, 0x0)
    /usr/local/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbff2e0 sp=0x7ffeefbff2b8
runtime.mcacheRefill_m()
    /usr/local/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbff300 sp=0x7ffeefbff2e0
runtime.onM(0x226eb0)
    /usr/local/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbff308 sp=0x7ffeefbff300
runtime.mallocgc(0x120, 0x1c0720, 0x0, 0x0)
    /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff3b8 sp=0x7ffeefbff308
runtime.newobject(0x1c0720, 0x30c000)
    /usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff3e0 sp=0x7ffeefbff3b8
runtime.newG(0x276ba)
    /usr/local/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff3f8 sp=0x7ffeefbff3e0
allocg(0x2bd660)
    /usr/local/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff408 sp=0x7ffeefbff3f8
runtime.malg(0x8000, 0x2bd700)
    /usr/local/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff438 sp=0x7ffeefbff408
runtime.mpreinit(0x2bdac0)
    /usr/local/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff450 sp=0x7ffeefbff438
mcommoninit(0x2bdac0)
    /usr/local/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff478 sp=0x7ffeefbff450
runtime.schedinit()
    /usr/local/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff4a0 sp=0x7ffeefbff478
runtime.rt0_go(0x7ffeefbff4d0, 0x1a, 0x7ffeefbff4d0, 0x0, 0x1a, 0x7ffeefbff728, 0x7ffeefbff7c5, 0x7ffeefbff7d1, 0x7ffeefbff7e1, 0x7ffeefbff7eb, ...)
    /usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff4a8 sp=0x7ffeefbff4a0
/private/var/folders/_r/hvpl37jx28gdnr0qns1j65mm0000gn/T/AppTranslocation/CBA4F24A-21FA-4A10-BAC0-C1F7FA045FDB/d/Arduino 2.app/Contents/Java/arduino-builder returned 2

Error compiling for board Arduino Mega 2560.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

David Pattee

unread,
Nov 28, 2019, 7:55:28 PM11/28/19
to InMoov
Thank you Gael!

I got the .ino to upload finally. I added a 128GB SD card to my Mini PC and created a new mrl directory, started and installed all dependencies and it worked no problem.

I will follow up on MyRobotLab.org

Regards,

David

gael langevin

unread,
Nov 29, 2019, 3:07:33 AM11/29/19
to David Pattee, InMoov
Hello,
I am glad you worked it out somehow!
Now that it works, what do you think was the issue?
What is the relation between the Mini PC and the Mac error?

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/38230f1f-3be9-423c-ab45-d44d6ccf6c62%40googlegroups.com.

David Pattee

unread,
Dec 6, 2019, 9:13:50 AM12/6/19
to InMoov
Hello Gael,

I had it worked out but it has reverted back to the same error.

Grog made a comment that after adding the 128GB SD card and a fresh install of Manticore the issue resolved itself but it is back to the same error code.

I have a feeling that the Mini PC is not the way to go and I need to invest in an Intel NUC system.

Is there a minimum amount of HD space needed for a Manticore install?

Regards,

David

gael langevin

unread,
Dec 7, 2019, 12:10:53 PM12/7/19
to David Pattee, InMoov
Hello David,
Normally once the MRLComm.ino is uploaded to your arduino, you don't need to do it again, unless you would want to install another version of MRL.
Note that all the Manticore versions carry the same MRLComm.ino

Why would you get the error again if the MRLComm.ino is already uploaded to your board?
Your MINI PC doesn't have much memory and a small processor, but I doubt it is the one to incriminate for the error code during upload.

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/edd5cf2b-70f9-4710-89e9-3588d9201fe3%40googlegroups.com.

gael langevin

unread,
Dec 7, 2019, 12:19:52 PM12/7/19
to David Pattee, InMoov
Hello again,
Just thinking, maybe something is wrong somewhere during your process.
Note don't try to upload the MRLComm.ino via the Arduino tab inside Manticore.

-Make sure MRL is closed
-Open your Arduino.exe
-Navigate to open myrobotlab.1.0.2693/resources/Arduino/MRLComm/MRLComm.ino
-In arduino.exe, Select your Arduino and COM port.
-Upload the code

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



amr.sc...@versatel.nl

unread,
Feb 22, 2020, 1:23:07 AM2/22/20
to InMoov
arduino  when i navigate to myrobotlab.1.0.2693/resources/Arduino,.....i only see adafruitmotorshield,   mrl.comm.ino is not visible, 

Op zaterdag 7 december 2019 18:19:52 UTC+1 schreef gael langevin:

gael langevin

unread,
Feb 23, 2020, 4:33:42 AM2/23/20
to amr.sc...@versatel.nl, InMoov
Hello,
Maybe you need to activate the visibility of the extensions on your Windows system.
C:\Mrl\myrobotlab.1.0.2693\resource\Arduino\MrlComm/MrlComm.ino

Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/8e2dc7c8-1670-4216-9bdf-07095b9e69a6%40googlegroups.com.

amr.sc...@versatel.nl

unread,
Feb 23, 2020, 5:35:42 AM2/23/20
to InMoov
hey Gael,    thanks for the tip,.its worky now,after i made a change in line 53         from   linkedlist.cpp
[code]             return NULL;          the version of arduino is 1.8.13 hourly bird
}

[/code]


Op zondag 23 februari 2020 10:33:42 UTC+1 schreef gael langevin:

gael langevin

unread,
Feb 23, 2020, 7:23:06 AM2/23/20
to amr.sc...@versatel.nl, InMoov
Good!
Yes the more recent IDE arduino versions are more strict with our MrlComm.ino.
Therefore you need to modify the line 53 from linkedlist.cpp to
  return NULL
instead of:
  return False
C:\Mrl\myrobotlab.1.0.2693\resource\Arduino\MrlComm/linkedlist.cpp
FixMrlComm1.png
FixMrlComm2.png
Gael Langevin
Creator of InMoov
InMoov Robot
@inmoov



To unsubscribe from this group and stop receiving emails from it, send an email to inmoov+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inmoov/65ba0880-57af-47c8-bf3d-51e716fbebde%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages