Love UECIDE? Why not consider supporting the development?

User registrations are now disabled on this site.

We have a new forum system

>> Click here to try it out. <<

problem compiling for Arduino Uno & Micro...

problem compiling for Arduino Uno & Micro...

Postby aramis » Sun Mar 13, 2016 5:10 am

Hi Matt,

I needed to switch gears and use some dusty old Arduino boards for another project, but am having problems compiling even the barebones example:
Code: Select all
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
 
}


With Board set to Arduino Mega2560 it compiles fine (no errors).

If I set Board to Arduino Micro, I get this:
Code: Select all
• Compiling sketch...
In file included from C:\Users\Tom\AppData\Local\UECIDE\cores\arduino\arduino/Arduino.h:239:0,
                 from C:\Users\Tom\AppData\Local\Temp\build-1eca785c-c8ea-4704-b3e5-1f1e6e54fcb7\BareMinimum.cpp:9:
• Error at line 25 in file pins_arduino.h:
‣ ../leonardo/pins_arduino.h: No such file or directory
 #include "../leonardo/pins_arduino.h"
                                      ^
compilation terminated.
Failed compiling sketch


...and with Board set to Arduino Uno, I get this:
Code: Select all
• Linking sketch...
c:/users/tom/appdata/local/uecide/compilers/avr-gcc/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: skipping incompatible C:\Users\Tom\AppData\Local\UECIDE\cache\arduino\arduino-uno\libCore_arduino.a when searching for -lCore_arduino
c:/users/tom/appdata/local/uecide/compilers/avr-gcc/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: cannot find -lCore_arduino
collect2.exe: error: ld returned 1 exit status
Failed linking sketch


This is with 0.8.8alpha22 in Win7 64-bit, I believe everything is up to date in the plugins manager (all 3 Arduino boards mentioned were just installed today after an Upgrade All from the Main repository). The Arduino Core is the 1.0.x one, Installed version 1.5.0.

Any thoughts? Thanks!
aramis
 
Posts: 35
Joined: Sat Jan 17, 2015 1:51 am
I use UECIDE on: Windows
 

Re: problem compiling for Arduino Uno & Micro...

Postby aramis » Sun Mar 13, 2016 5:14 pm

The Arduino Micro problem seemed like it might be easy to solve, so I monkeyed around a bit:
- installed the Arduino Leonardo board using the Plugin Manager
- in appdata\local\UECIDE\boards\Arduino\arduino-micro\pins_arduino.h, change:
Code: Select all
#include "../leonardo/pins_arduino.h"

to
Code: Select all
#include "../arduino-leonardo/pins_arduino.h"


If that's a proper fix, should installing the Arduino Micro board also automatically select/install the Leonardo board as well? Or should the contents of ../arduino-leonardo/pins_arduino.h be inserted into the Micro's pins_arduino.h so that it is "whole"?



And, I have no clue how to fix the Uno issue...is that just a typo somewhere where it's looking for "lCore_arduino" instead of "libCore_arduino"?

Thanks!
aramis
 
Posts: 35
Joined: Sat Jan 17, 2015 1:51 am
I use UECIDE on: Windows
 

Re: problem compiling for Arduino Uno & Micro...

Postby matt » Sun Mar 13, 2016 7:46 pm

Try purging the cache in the debug menu.

Sent from my SM-T555 using Tapatalk
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".
matt
Site Admin
 
Posts: 1318
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 

Re: problem compiling for Arduino Uno & Micro...

Postby aramis » Tue Mar 15, 2016 4:26 am

That did it, thank you! What did I miss? Perhaps I needed to restart UECIDE after installing the boards, and the generated error persisted in the cache?
aramis
 
Posts: 35
Joined: Sat Jan 17, 2015 1:51 am
I use UECIDE on: Windows
 

Re: problem compiling for Arduino Uno & Micro...

Postby matt » Tue Mar 15, 2016 11:46 am

The cache contains pre-compiled versions of libraries, core, etc. A change of compiler (upgrade) must have meant a change in library archive format. Purging the cache removed those old library files and caused them to be re-built afresh.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".
matt
Site Admin
 
Posts: 1318
Joined: Sun Jul 07, 2013 11:37 am
I use UECIDE on: Linux
 
 

Return to Arduino / AVR

Who is online

Users browsing this forum: No registered users and 2 guests

cron