TheNuclearDart / bringup

STM32F7 discovery board bringup
GNU Affero General Public License v3.0
0 stars 0 forks source link

Get SPI flash working #29

Open TheNuclearDart opened 5 months ago

TheNuclearDart commented 5 months ago

When trying to build LVGL demos, we can no longer support two images at once in the existing 1MB flash. Just adding the benchmark demo brings us to 0x90000 in size for one image, which we can't support at all.

The discovery board has a 128Mbit SPI flash on it, in order to support larger images. We need to start saving our redundant images there, leaving the bootloader (and maybe a recovery image someday) alone in the onboard flash.

Two things will need to happen:

  1. The bootloader will need to bring up the interface and read from the SPI flash, loading an image as it does now (if it exists)
  2. The main application will need to write to this SPI flash instead of internal flash now. Theoretically it should have been brought up in the bootloader, so all the application will need to do is write to the flash.

More to come