Closed tr4nt0r closed 6 years ago
I managed to fix this by moving some files and folders around so it seems the include paths are not set correctly. Also i get the error invalid library found in Arduino IDE
Ungültige Bibliothek C:\Users\dem40095\Documents\Arduino\libraries\avr in C:\Users\dem40095\Documents\Arduino\libraries\avr gefunden
A fresh Arduino 1.8.5 and the Elektor Uno R4 installed through Boards manager works perfectly fine for me. I can compile IDE-included examples for any board I like.
Your problem seems to be the file crtatmega328p.o that somehow has gone missing. There is a copy in packages\Elektor-Uno-R4-for-Arduino-1.8.x\hardware\avr\1.0.0\ that you can put in packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\lib\avr5\
Please note that the Elektor Uno R4 Boards package has not been tested with Visual Micro for Visual Studio.
P.S. You did use the latest version of the Boards package, right? https://github.com/ElektorLabs/Arduino/releases/download/v1.0.1/package_elektor_uno_r4_1_8_x_index.json
If you keep having problems you might try with a double Arduino installation, one for the Elektor Uno R4 and the other for other boards. This is also possible with only one installation and two "portable" folders, ie "portable Uno R4" and "portable other" and renaming the folder you want to use to "portable".
I have tried with a fresh Arduino IDE installation, but still have errors. This time when flashing the bootloader, the placeholder {build.path} isn't replaced with the path:
Arduino: 1.8.5 (Windows 10), Board: "Elektor Uno R4 @ 16 MHz"
C:\Users\dem40095\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/bin/avrdude -CC:\Users\dem40095\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/etc/avrdude.conf -l {build.path}/avrdude.log -v -patmega328p -F -cstk500v1 -PCOM9 -e -Ulock:w:0x3f:m -Uefuse:w:0x05:m -Uhfuse:w:0xde:m -Ulfuse:w:0xff:m
Cannot create logfile "{build.path}/avrdude.log": No such file or directory
Fehler beim Brennen des Bootloaders.
But nevertheless I am at least able to compile my sketch, except for the Adafruit GFX Library, but I will open another issue for this.
I installed the package for the UNO R4 and as soon as it gets installed I cannot compile anything, even though I'm compiling for another Platform.
I am using Visual Micro for Visual Studio, but in Arduino IDE I'm getting the same error: