Uploading a program using the USB bootloader
IronLink USB DFU Bootloader
The default bootloader that is provided with the IronLink boards to allow uploading of firmware via the USB port without the need of a debugger.
Entering Bootloader Mode
The IronLink bootloader can be entered through a jump in software or by connecting GPIO1 to GND. If GPIO1 is connected to GND while the device is powering on it will enter bootloader mode and a DFU device will become available via USB.
The IronLink default bootloader will flash and run applications from the address 0x08008000 which gives the developer 96Kb of application flash for their projects. When the application jumps to the users application in flash all 16Kb of system RAM is available.
|User App Flash Address||0x08008000|
|Total Available Flash||128Kb|
|Bootloader Flash Size||32Kb|
|Application Flash Size||96Kb|
Uploading Firmware using the Bootloader
Your application must be in DFU format in order to upload it to the IronLink. In the examples directory of this repository you will find a number of example programs in the DFU format that can be used to test the IronLink.
Download and install the ST DfuSe software which will be used to flash programs onto the IronLink. https://www.st.com/en/development-tools/stsw-stm32080.html
Open the application DfuSeDemo. If the IronLink is connected correctly you will see a device called "STM Device in DFU Mode" with 64 sectors of memory.
- Next click "Choose..." and select the DFU files that you wish to upload onto the IronLink
- Finally click on upgrade and the DFU firmware file should be uploaded to the board. Reboot the board and the new firmware should now execute on the board.
DFU Example Programs
|usb serial systick.dfu||Prints the current value of the systick over the USB serial.|