Notifications
Clear all

Issues Trying to get past IDE compile errors I'm seeing in the Elegoo V4 .ino code

80 Posts
9 Users
8 Reactions
11.6 K Views
(@eliza)
Member
Joined: 2 years ago
Posts: 81
 

@zander The error message says, "Too big for the board" so you have to load it into a Mega.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@eliza The supplied board says UNO

Screen Shot 2022 08 29 at 19.09.44

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@eliza)
Member
Joined: 2 years ago
Posts: 81
 

@zander I'm only commenting on the error message. I just uploaded a program yesterday that showed a message stating that there were only a few hundred bytes of memory available for local variables after the upload so I switched to a mega.

I also got into the discussion about this issue late. Is this a purchased kit? That is to say you got parts and source code and it "should" work with the supplied parts?


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@eliza Yes, this is the 2nd at least newbie who can't get the kit to work. It is obvious from the errors they get they are not following the instructions. I just did it tonight to see the real problem. The code is from about 2019 and uses a very old version of the IDE so I suspect code sizes that were margina then have now got too big. HOWEVER this and the other complainant did NOT follow instructions as their errors were different. The OP will need to contact Elegoo for a solution.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@eliza)
Member
Joined: 2 years ago
Posts: 81
 

Hi Zander,

Changes to the IDE (& underlying compiler) could easily change the size of the final binary/executable. (The AVR dude or something like that is deep in the heart of the IDE.) Perhaps the company selling this product is just "selling away" and they don't have anyone that actually builds the project with today's IDE.

If a "newbie" buys a kit then they would naturally expect it to work with the received gear. I have a pile of nanos, unos and megas, but that's not to be expected of everyone, especially someone getting started. You have to have that first success before you dive further into the Arduino hobby.

You are not the person with the problem? You are helping like I am?

But you have this kit and you could make it work following the instructions?

Any further to go with this issue?

Thanks.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@eliza I am trying to help. I do NOT have the kit. The person with the kit will have to contact Elegoo to get a fix. 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@eliza)
Member
Joined: 2 years ago
Posts: 81
 

Thanks. That clears it up. I'm always available if I can make a contribution. Don't need a reply.


   
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@eliza

Posted by: @eliza

@zander I'm only commenting on the error message. I just uploaded a program yesterday that showed a message stating that there were only a few hundred bytes of memory available for local variables after the upload so I switched to a mega.

I also got into the discussion about this issue late. Is this a purchased kit? That is to say you got parts and source code and it "should" work with the supplied parts?

FWIW, I just downloaded and tried it (please see screenshot attached).  First attempt to compile and upload failed, due to as noted by @robotbuilder with the error message that FastLED.h was missing, so I then installed the first library from the library manager list (V3.4?), then recompiled (and uploaded) successfully first time:

Egloo

Screenshot shows that there was still 2% remaining space (Windows10 btw).

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@frogandtoad FYI @eliza I was initially puzzled why we get 2 different results until I noticed in the dir where the main sketch is there is a dir called addLibrary and there are several zips. One of them is FastLed-master.zip. I have a current FastLed previously installed but I bet this FastLed is a bit smaller. In that same dir is also 3 other libraries. See pic. My installed FastLed is Ver 3.5 while the Elegoo ver is 3.2.10 from July 2019.

I can now deduce with a fair certainty that all 4 of those folders in the addLibrary folder need to be added to the users Library. Once the robot is uploaded I would delete or update those 4 libraries so they don't interfere with any future work UNLESS you only intend on making this robot and nothing else.

Screen Shot 2022 08 30 at 06.54.08

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
frogandtoad reacted
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad FYI @eliza I was initially puzzled why we get 2 different results until I noticed in the dir where the main sketch is there is a dir called addLibrary and there are several zips. One of them is FastLed-master.zip. I have a current FastLed previously installed but I bet this FastLed is a bit smaller. In that same dir is also 3 other libraries. See pic. My installed FastLed is Ver 3.5 while the Elegoo ver is 3.2.10 from July 2019.

I can now deduce with a fair certainty that all 4 of those folders in the addLibrary folder need to be added to the users Library. Once the robot is uploaded I would delete or update those 4 libraries so they don't interfere with any future work UNLESS you only intend on making this robot and nothing else.

Screen Shot 2022 08 30 at 06.54.08

 

Hi Ron, thanks for the input.

I was just trying to show that like @eliza, I was able to compile and upload with a little (very little room to spare), once I installed the FastLED library, which appears to be at the core of the issue, at least from the error messages I have seen and both experienced.  Now, this doesn't solve the discrepancies that you're alluding to, and that may be due to the version(s) I downloaded as opposed to you.

I would love to experience the same error you did, and that was what I was hoping for so I could try to determine what the heck was going on, so in that vane... please provide the full link to the library you actually used, and any other library, and I am willing to download the same to help try to solve this problem - I can only do that if we are working with like for like libraries 😉

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@frogandtoad I did not download any libraries, I just downloaded the 'software pack' from Elegoo. http://69.195.111.207/tutorial-download/?t=RobotCarV4.0

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad I did not download any libraries, I just downloaded the 'software pack' from Elegoo. http://69.195.111.207/tutorial-download/?t=RobotCarV4.0

Ok, but is that the right one the OP was having trouble with?

I'll download it and see what happens - It might explode 😉

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@frogandtoad Well that could be the problem, he didn't really say and he is so newbie he may not even know what questions to ask. His errors were very much different from mine involving directories like appdata for instance. I strongly suspect that folder called addLibrary needs to be used to install those specific versions of library. The problem of course is the IDE will want to upgrade them very soon so he will have to forever never click on the update library prompt unless you know another way. I think I remember that the OP (not this current victim) got in touch with Elegoo and got a resolution.

I have never tried it, but can a library like FastLed have a local copy that overrides the library version? Perhaps in the same folder as the primary sketch?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@frogandtoad I thought you already did download it and got the fastled error. Confused am I once again!

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@zander

Posted by: @zander

@frogandtoad Well that could be the problem, he didn't really say and he is so newbie he may not even know what questions to ask. His errors were very much different from mine involving directories like appdata for instance. I strongly suspect that folder called addLibrary needs to be used to install those specific versions of library. The problem of course is the IDE will want to upgrade them very soon so he will have to forever never click on the update library prompt unless you know another way. I think I remember that the OP (not this current victim) got in touch with Elegoo and got a resolution.

I have never tried it, but can a library like FastLed have a local copy that overrides the library version? Perhaps in the same folder as the primary sketch?

I have downloaded it now, but unless I know which part of this library is being used/installed, it's not easy to solve.  To the OP... please provide the full link, library name, etc... any information you can to help us to help you solve "YOUR PROBLEM", and I will try my best to help solve it.

I need to get some sleep now... I'll give it a looksie tomorrow 😉

Night!


   
ReplyQuote
Page 5 / 6