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
Atmega32u4 Mass Storage Bootloader for Pro Micro #148
Comments
Upd Managed to build it with
Just got USB drive popped on a Pro Micro (OMG!). Now I test user firmware. Upd apparently hex need to be converted to bin as described here.
Video: https://youtu.be/S4cgjP2mC5c Upd. Hex won't convert, tried that:
Tried to drag it (22Kb file) onto the USB Drive but it says There's not enough space on LUFA BOOT. You need an additional 16.0 KB to copy these files. Space free: 6.00 KB, Total Size: 40.0 KB. Upd. Figures out Windows is too stupid to overwrite files in place, you have to delete them first. Deleted old FLASH.BIN, wrote the new one, rebooted and it worked! To pop up USB Drive again, hold RESET on power on. Everything seems to be in order. Closing for now. |
Reopened, question of the day: why it doesn't want to overwrite old FLASH.BIN without manual deleting? Is it possible to make it work without deleting old FLASH.BIN first? STM32F103T8U6 bootloader (64K flash, 20K RAM) allows to overwrite just fine. |
The bootloader only presents just enough FAT sectors to fit the application in - this is because the sectors are backed by the literal internal FLASH memory. Other MSC bootloaders generally buffer the data into RAM so that they can handle renames, long file names and other FAT features, but the AVR8 devices lack the memory to do so. Deleting the file frees up the sectors of the filesystem such that a new image can be written. |
First of all, I can't even build it now, atmega32u4/32/4 configuration never bulds even with BOARD=NONE. Maybe in 2013 it worked somehow. I'm using standard gcc toolchain on WSL (debian).
My conf is:
It only builds for
BOOT_SECTION_SIZE_KB = 6
, 4 or 5 doesn't work.Also I can't use prebuilt Leonardo images from here http://fourwalledcubicle.com/blog/2013/03/magic/comment-page-1/ because IO13 (PC7) is not even broken out on Pro Micro. Could you please remap it to double reset or something as does Adafruit? There are very few pins broken out (just 18 gpios) and using a dedicated pin to invoke usb drive is pretty wasteful. Thanks for the great bootloader, but making it work on Pro Micros would be even greater, considering mass adoption of those boards.
The text was updated successfully, but these errors were encountered: