【AT-START-F425 Review】Bootloader -USART&USB Operation Process
[Copy link]
【AT-START-F425 Review】Bootloader -USART&USB Operation Process
(Because I am also learning by searching, although I have some understanding of Bootloader theory, it is difficult to explain my understanding, so as to avoid misunderstanding or explanation errors and misleading everyone, so I will explain my operation process)
- USARTBootloader usage steps
- Bootloader Software
By looking at the user application file and main.c file, you can find the necessary drivers and applications for the Bootloader , including system_clock , board , usart , time , and flash read and write programs. The most important is the iap file. The Bootloader project file should minimize the size of the program as long as it meets the Bootloader program operation.
-
- APP Application Engineering
By looking at the user application file and main.c file, you can find the necessary drivers and applications for the Bootloader , including system_clock , board , usart , time , and flash read and write programs. The most important one is the iap file.
-
- USART-Bootloader Operation Process
The first step is to use ICP software to set the boot program storage area to AP mode
The second step is to use KEIL MDK to download the Bootloader program file
First compile the project file, select the built-in CMSIS-DAP in the downloader , search for the ID , and click download.
After the download is successful, LED2 lights up
- Dome gives two APP application files. Open an MDK project and compile it to generate a hex file.
- Find the software for upgrading in the file directory. The software RS232 is the serial port. The onboard downloader has its own serial port function. You can use it by directly checking the port.
After the download is successful, LED3 or LED4 will flash, and the operation is completed. In the future, you only need to develop the application program and use the IAP software to update the program. Very easy to use
- USB Bootloader Operation Steps
The operation is the same as USART , except that it uses the USB function to transfer programs.
2.1 、USB Bootloader
Usart Bootloader LED flashing is controlled by timer, USB uses delay function
The most important difference is that USBBootloader needs to use the USB function to use USB-otg
2.2 APP Engineering
2.3 Operation steps
Note: During the personal development process, I encountered a problem that the program download was not executed. For example, I downloaded the usart Bootloader first , then downloaded the usbBootloader and pressed the reset button, but the program did not run. When encountering this problem, I used the icp software to erase all the memory of the mcu , which was simple and violent.
-
- USART-Bootloader Operation Process
The first step is to use ICP software to set the boot program storage area to AP mode (you don’t need to perform this step after setting it)
The second step is to use KEIL MDK to download the Bootloader program file
First compile the project file, select the built-in CMSIS-DAP in the downloader , search for the ID , and click download.
After the download is successful, LED2 lights up
Step 3: Dome gives two APP application files. Open an MDK project and compile it to generate a hex file.
Step 4. Find the upgrade software in the file directory. First, use the USB cable to plug into CN5 (USB-OTG interface ) . Select USB in the IAP software and select the Hex file path to download .
After the download is successful, LED3 or LED4 will flash, and the operation is completed. In the future, you only need to develop the application program and use the IAP software to update the program. Very easy to use
|