====== Bootloader ====== ---- ===== Bootloader for a firmware update from an SD card ===== |< 100% >| || @red: | If you want to make your own Unicard, you must load bootloader into the Unicard for a firmware update from an SD card. The DFU file (a binary file for loading the bootloader for a firmware update from an SD card) is available along with the source codes of the firmware Unicard on sourceforge: [[https://sourceforge.net/projects/unicardmk3/files/DFU/Bootloader/|DFU binary file of the bootloader.]]\\ [[https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-stm32080.html|DFU downloader for OS Windows.]] ---- ===== Loading the DFU file ===== |< 100% >| || @red: | * needed software: * Windows XP or newer * the .dfu file * DFU downloader for OS Windows * needed hardware: * an assembled Unicard * a connecting cable USB-A/miniB * a PC with Windows and USB * 1 jumper * description of loading the bootloader into a Unicard: * install DFU downloader for Windows * on the card itself, connect the pins labeled "BOOT" with the jumper * connect the card to PC using a USB-A/miniB cable * Windows will offer a driver installation, let it install automatically. If the drivers do not install automatically, install them manually from the DFU downloader folder. * After the driver is installed, disconnect and reconnect the card to the USB * From the program selection, run program ... Program Files / STMicroelectronics / DfuSe / DfuSeDemo * After running the program, all you care about is the frame in the bottom right called "Upgrade or Verify Action" * Tick "Verify after download" * Click on the icon at the bottom called "Choose..." * Select the file with the bootloader (UNICARDmk3_IAP.dfu) and select open * Back in the program click on "Upgrade" at the bottom * If a message shows up with the message "Verify successful!" you are done * Disconnect the USB cable, remove the BOOT connection and you can put your card into a Sharp * After loading the bootloader you also have to load firmware into the Unicard \\ {{ :unicard:firmware:unicardmk3_iap.zip |Dfu bootloader}} \\ {{ :unicard:firmware:en.stsw-stm32080.zip |DfuSe Demo 3.0.6}} ---- ===== Guide with pictures for DfuSeDemo version 3.0.6 ===== |< 100% >| || @red: | * [{{unicard:firmware:unicardfw_dfu0.jpg|//Connect the JUMPER labelled BOOT.//}}] * [{{unicard:firmware:unicardfw_dfu1.jpg|//After installing the drivers "STM Device in DFU Mode" will appear in the device manager.//}}] * [{{unicard:firmware:unicardfw_dfu2.jpg|//In "Available DFU Devices" we pick "STM Device in DFU Mode" and tick "Verify after download".//}}] * [{{unicard:firmware:unicardfw_dfu3.jpg|//Using the button "Choose" (1.) we load a DFU file. "File correctly loaded." should appear in the information panel (2.).//}}] * [{{unicard:firmware:unicardfw_dfu4.jpg|//After selecting buttons "Upgrade" and then "Yes" on the confirmation dialogue, the DFU file will run.//}}] * [{{unicard:firmware:unicardfw_dfu5.jpg|//On the information panel you should be able to see the individual phases of the DFU file loading - "Erase Phase".//}}] * [{{unicard:firmware:unicardfw_dfu6.jpg|//On the information panel you should be able to see the individual phases of the DFU file loading - "Download Phase".//}}] * [{{unicard:firmware:unicardfw_dfu7.jpg|//After successfully loading the DFU file "Verify successful!" message should appear in the information panel.//}}] === Warning === //When updating firmware //** MZ_ID **//firmware is not checked (to still allow the option of changing the Unicard firmware from one type of computer to another). Incorrectly matching firmware with a computer, on which the Unicard update is being done can damage your device.// ---- *[[http://nobomi.cz/8bit|Information source - webpage of the author NOBOMI]]