Closed IrregularShed closed 6 years ago
Well, boot_16u2 target is a bit misleading since bootloader currently doesn't work with Arduino Mega and Arduino Uno. I should have mentioned this in the wiki. That error is weird though - I'm not getting it anywhere (WSL/Windows, Ubuntu/VM, macOS). Maybe try cloning entire repository again? Anyways if your goal is to use Mega/Uno with standard OpenDeck firmware, just flash fw_16u2 on ATmega16u2 and fw_mega/fw_uno on main MCU.
EDIT: by error, I meant compilation error. Error while flashing occurs because the flash script expects fw_16u2.bin file which it can't find (you were trying to compile boot_16u2).
EDIT2: verification error isn't really an error... annoyingly, different avrdude versions read fuses differently. On AVR MCUs, some fuse bits cannot be programmed and therefore those bits always have value 1. 0x3F is same as 0xFF if you ignore upper two bits which can't be programmed. avrdude should read that back as 0xFF but it doesn't. Which version of avrdude are you using?
Just tried building fw_16u2 - everything worked (although the configurator is a bit hit-and-miss connecting to it). I'll close this now, and have a play!
(btw I've got avrdude 6.3 in a Windows PowerShell, 6.0.1 in WSL.)
OK great - yeah configurator is sometimes weird when opening a connection.
Regarding the avrdude - I'm using v6.3 in WSL (Ubuntu 18.04). Works without throwing that verification error.
You should also reflash the firmware using latest commit since I've fixed some stuff this morning (incorrect button order, indicator LEDs etc.)
:+1: will do!
Quick question, is it possible to add midi ports to Mega? I've got a USB-to-midi interface that doesn't run with any modern version of Windows and I was thinking about pulling it all apart to hack. (I know I should put this in a new issue...)
It's not possible at the moment, but I was planning on adding it soon. Can you please open new feature request for that?
Hello. I have a problem with 16u2, the computer detects it as OPENDECK 16u2 Dfu. my system is windows 10. please help. Thank you
Hi!
I've been trying to build and flash the bootloader for an Arduino Mega. I'm using the Windows Subsystem for Linux and have built the firmware for a Pro Micro already, which works perfectly. I've also built and flashed the
fw_mega
firmware, manually from a Windows PowerShell prompt and with thearduino_flash.sh
script, both with my Arduino Uno as ISP and with my Bus Pirate. All that works as I would expect.I've had problems with the bootloader for the 16u2 though, and the Arduino is completely unreachable from any computer when I plug it in now. (My Linux machine doesn't even show a system event when I plug it in!) I tried updating the code on my machine to build from master but it's still not working. I get different errors depending on what I try:
... so something is missing when building with
make
.... so verification is failing there (ignoring the issue with the firmware file missing).
Any help will be appreciated!