Arduino_STM32/usb_bootloader/STM32F1
rogerclarkmelbourne 10861ba517 Updated Bootloader 2.0 to remove RAM upload option. RAM upload now returns DFU error errWRITE ( 0x03) and displays the initial message 'Bootloader 2.0 ERROR. Upload to RAM is not supported'. Ram upload code has been commented out, definitions have been added for DFU alt strings to make them easier to change, not javascript util has been added at the bottom usb_description.c which can be used to generate modified DFU ALT ID descriptor text if needed 2015-05-02 14:56:52 +10:00
..
binaries Updated Bootloader 2.0 to remove RAM upload option. RAM upload now returns DFU error errWRITE ( 0x03) and displays the initial message 'Bootloader 2.0 ERROR. Upload to RAM is not supported'. Ram upload code has been commented out, definitions have been added for DFU alt strings to make them easier to change, not javascript util has been added at the bottom usb_description.c which can be used to generate modified DFU ALT ID descriptor text if needed 2015-05-02 14:56:52 +10:00
flash Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
stm32_lib Changed bootloader linker settings, so match the space allocated in Flash by the sketch (offset to 0x8002000) 2015-04-26 11:29:41 +10:00
usb_lib Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
.gitignore Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
CREDITS Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
Makefile Updated Bootloader 2.0 to remove RAM upload option. RAM upload now returns DFU error errWRITE ( 0x03) and displays the initial message 'Bootloader 2.0 ERROR. Upload to RAM is not supported'. Ram upload code has been commented out, definitions have been added for DFU alt strings to make them easier to change, not javascript util has been added at the bottom usb_description.c which can be used to generate modified DFU ALT ID descriptor text if needed 2015-05-02 14:56:52 +10:00
README Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
common.h Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
config.h Bootloader and also boards.txt, so that its backwards compatible with the original bootloader. The new bootloader now has an additional altID for the new upload type (ID2) which is set in boards.txt for the maple mini on the Bootloader version menu. Note there was also a bug in the old version of boards.txt where the upload size params were not being set by the Bootloader version menu. Binaries folder has also been updated with the revised bootloader 2015-04-26 16:31:32 +10:00
dfu.c Updated Bootloader 2.0 to remove RAM upload option. RAM upload now returns DFU error errWRITE ( 0x03) and displays the initial message 'Bootloader 2.0 ERROR. Upload to RAM is not supported'. Ram upload code has been commented out, definitions have been added for DFU alt strings to make them easier to change, not javascript util has been added at the bottom usb_description.c which can be used to generate modified DFU ALT ID descriptor text if needed 2015-05-02 14:56:52 +10:00
dfu.h Bootloader and also boards.txt, so that its backwards compatible with the original bootloader. The new bootloader now has an additional altID for the new upload type (ID2) which is set in boards.txt for the maple mini on the Bootloader version menu. Note there was also a bug in the old version of boards.txt where the upload size params were not being set by the Bootloader version menu. Binaries folder has also been updated with the revised bootloader 2015-04-26 16:31:32 +10:00
hardware.c Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
hardware.h Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
main.c Updated Bootloader 2.0 to remove RAM upload option. RAM upload now returns DFU error errWRITE ( 0x03) and displays the initial message 'Bootloader 2.0 ERROR. Upload to RAM is not supported'. Ram upload code has been commented out, definitions have been added for DFU alt strings to make them easier to change, not javascript util has been added at the bottom usb_description.c which can be used to generate modified DFU ALT ID descriptor text if needed 2015-05-02 14:56:52 +10:00
usb.c Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
usb.h Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
usb_callbacks.c Added usb_bootloader, taken from the latest files of https://github.com/jonatanolofsson/maple-bootloader commit id 5f09352278faf1b31b9e1bbef7c00f1469fb63b8, then checked out the maple mini (mini-boot) branch, as that branch seems to contain the most fixes and updates. 2015-04-25 16:44:17 +10:00
usb_descriptor.c Updated Bootloader 2.0 to remove RAM upload option. RAM upload now returns DFU error errWRITE ( 0x03) and displays the initial message 'Bootloader 2.0 ERROR. Upload to RAM is not supported'. Ram upload code has been commented out, definitions have been added for DFU alt strings to make them easier to change, not javascript util has been added at the bottom usb_description.c which can be used to generate modified DFU ALT ID descriptor text if needed 2015-05-02 14:56:52 +10:00
usb_descriptor.h Bootloader and also boards.txt, so that its backwards compatible with the original bootloader. The new bootloader now has an additional altID for the new upload type (ID2) which is set in boards.txt for the maple mini on the Bootloader version menu. Note there was also a bug in the old version of boards.txt where the upload size params were not being set by the Bootloader version menu. Binaries folder has also been updated with the revised bootloader 2015-04-26 16:31:32 +10:00

README

FILES -------------------------------------------------------------------------

stm32lib/*
  - all the (possibly consolidated) stm32 lib and usb example code

usb.c 
  - USB-specific hardware setup. Interrupts, clocks, etc. handling USB when 
    not "Attached". some low-level callbacks (low power mode, init, reset, 
    resume, etc).

usb_callbacks.c 
  - aka endpoints: handling data transfer when "Configured". calls out to 
    application specific callbacks (i.e. DFU).

usb_descriptor.c 
  - aka application descriptor; big static struct and callbacks for sending
    the descriptor. 

main.c
  - main loop and calling any hardware init stuff. timing hacks for EEPROM 
    writes not to block usb interrupts. logic to handle 2 second timeout then
    jump to user code. 

hardware.c
  - init routines to setup clocks, interrupts, also destructor functions.
    does not include USB stuff. EEPROM read/write functions.

dfu.c
  - mostly the giant FSM case switch, also some USB endpoint callbacks

TODO --------------------------------------------------------------------------

 * pack the structs
 * use sizeof() for usb application descriptor once structs are packed