/EVE3-BT81x-Flash

An Arduino example of using EVE3 & EVE4 BT81x attached flash including file transfer from SD card to flash.

Primary LanguageCMIT LicenseMIT

This code contains functions to perform the following operations:

  • Read a file off SD card and write it to EVE connected flash.
  • Parse EVE flash and store file offsets - flash addresses - of files.
  • An example of displaying bitmaps (ASTC format) directly out of flash.

To be used in conjuction with Eve Asset Builder software from Bridgetek.

EVE Asset Builder will take any number of files and pack them into a single file. This file will also contain the "blob" file provided by Bridgetek which allows the EVE BT81x to use fast mode (QSPI) in it's interactions with the onboard flash chip.

In order for this code to function, the location of the file list and offsets (output.map) must be known.
In order to place this offset table at a known address (offset 4096), the following procedure is provided:

EVE Asset Builder provides no method of ordering files within the "blob" so some dance must be performed.

  1. select your converted media files and run "Generate Flash".
  2. rename output.map as aaoutput.map
  3. Add the same files to "Generate Flash" as well as aaoutput.map and generate flash again. -- This includes the old map file at the first file location in flash - offset 4096 -- The included map file does not include itself and so all offsets are wrong.
  4. Delete aaoutput.map and rename output.map to aaoutput.map
  5. Include the same files again including aaoutput.map and generate flash a third time. -- Now, the file aaoutput.map will be found at 4096 and that file now includes itself with correct offsets.