Implement bootloader in spi_flash

Source: Internet
Author: User

I was very attracted by the practicality of bootloader. I wanted to use the FAT file system to store binfiles, but the hardware device size was not enough, so I had to streaking.

Binary files are burned through the serial port. There is no difficulty here, that is, the serial port is used to interrupt the reception of files. However, when storing data, pay attention to the Flash allocation format, the size of the w25q16 memory on each page is 256 bytes, with a total storage space of 2 MB. Therefore, to ensure continuous storage, you must store data in segments. Each time bytes are received, the data is stored at the next address. For example, if the initial address selected for the first time is 0x00, the address selected for the second time is 0x100, and the length is 0 x each time.

Shows the storage format.

Implement bootloader in spi_flash

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.