-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for "micro" board fails #123
Comments
Can you look to the issue #35 and read my comment platformio/platformio-core#35 (comment) |
Rename your |
Tried both, same error, its looking for |
Give me your |
Opssss.... Sorry. I see it. Give me a few minutes, I will re-upload new Arduino-Framework package. |
I should say that it compiles perfectly well if I switch the board to uno.
using main.* from the platformio blink example |
It's problem with "relative includes" in the Arduino source code. I've just added to my TODO and will fix it directly in PlatformIO builder later. As for now, I'm going to make a temporary fix for it. I will report here. |
Please update your packages: $ platformio update It should work now. |
Almost
Commenting out the ifndef bit turns it into this: http://pastie.org/pastes/9797825/text?key=mixsg5pawcxhobjpint5sw Is it wrong to have lines starting with a hash? Maybe the preprocessor gets confused |
Please share here your |
Thanks for looking into all my complains today, Merry christmas |
Marry Christmas to you too 🎄🎁⛄️ |
@yarekt Thanks a lot for this report. I fixed critical bug for Arduino USB boards. I'm going to release hot-fix 0.9.3 tomorrow. Please re-test the latest development branch: $ pip uninstall platformio
$ pip install https://github.com/ivankravets/platformio/archive/develop.zip |
Thanks, that looks like it fixes that, however, I can't seem to upload properly. It might be the avrdude options are wrong for the micro. Avrdude has a nasty habit of locking up my USB port. I'll try to dig up the options that worked for me before |
I see this issue. I know how to fix it. I will work on it tomorrow. Sorry, for the problems and delays :( |
No, no worries. I'm amazed how prolific you are at responding to all the issues. Thanks so much. (You should probably take some time off and enjoy the holidays) |
Thanks If you are interested in this problem please look into https://github.com/arduino/Arduino/blob/master/app/src/processing/app/debug/AvrdudeUploader.java#L82
Need to implement a specific "reset" logic for Leonardo & similar Arduino USB devices. |
I can see that you've already implemented the #!/usr/bin/python
# usage: reset_arduino <DEVICE>
# where <DEVICE> is typically some /dev/ttyfoobar
import sys
import serial
ser = serial.Serial()
ser.port=sys.argv[1]
ser.baudrate=1200
ser.open(); ser.close() Works pretty well as an executable script |
Yes, I added additional information to boards which communicate within Your hint isn't 100% solution and will not work in all cases. I will implement normal device reset with waiting logic. Thins is a main requirement - "waiting" while board will enter in upload mode. |
Ah thats true, however, avrdude seems to wait for the right port to be available anyway (for a timeout) |
I promise you that I will fix this issue tomorrow. Sorry for delay :( |
Don't worry mate, theres no rush |
Can you contact me by email? Because I don't see your email. Thanks :) |
It should be public somewhere yarekt@gmail.com |
Hey @yarekt , Can you try the latest dev version? |
Works perfectly. Thanks |
Hi, I was running the next commands: pio boards microduino | grep Microduino | grep USB
32u416m ATMEGA32U4 16MHz 28KB 2.50KB Microduino Core USB (ATmega32U4@16M,5V) init project: platformio init --board 32u416m error: pio run
Processing 32u416m (platform: atmelavr; board: 32u416m; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/32u416m.html
PLATFORM: Atmel AVR > Microduino Core USB (ATmega32U4@16M,5V)
HARDWARE: ATMEGA32U4 16MHz 2.50KB RAM (28KB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 24 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pioenvs/32u416m/src/main.cpp.o
Compiling .pioenvs/32u416m/FrameworkArduino/CDC.cpp.o
Compiling .pioenvs/32u416m/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pioenvs/32u416m/FrameworkArduino/HardwareSerial0.cpp.o
In file included from src/main.cpp:1:0:
/home/avp/.platformio/packages/framework-arduinoavr/cores/arduino/Arduino.h:257:26: fatal error: pins_arduino.h: No such file or directory dmesg input: Dec 2 12:29:34 zenbook kernel: [2042714.805178] usb 2-1: new full-speed USB device number 56 using xhci_hcd
Dec 2 12:29:34 zenbook kernel: [2042714.936045] usb 2-1: New USB device found, idVendor=2341, idProduct=8036
Dec 2 12:29:34 zenbook kernel: [2042714.936053] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 2 12:29:34 zenbook kernel: [2042714.936058] usb 2-1: Product: Arduino Leonardo
Dec 2 12:29:34 zenbook kernel: [2042714.936062] usb 2-1: Manufacturer: Arduino LLC
Dec 2 12:29:34 zenbook kernel: [2042714.936657] cdc_acm 2-1:1.0: ttyACM0: USB ACM device
Dec 2 12:29:34 zenbook kernel: [2042714.939580] input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.2/0003:2341:8036.0003/input/input158
Dec 2 12:29:34 zenbook kernel: [2042714.940024] hid-generic 0003:2341:8036.0003: input,hidraw0: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:14.0-1/input |
Please update you Atmel AVR dev/platform. The new 1.12.1 release is out! https://github.com/platformio/platform-atmelavr/releases/tag/v1.12.1 |
Trying to build the blink example for Micro board, Arduino Micro (atmega32u4) fails to compile.
Its trying to include a header file for the pins from a folder that wouldn't exist there.
I tried to debug it a little myself, i've put in leonardo's pin definitions into the file that its looking for but it spat out some more errors: http://pastie.org/pastes/9797760/text?key=yntqzqdbbyytpepq2gdrxg
The text was updated successfully, but these errors were encountered: