"Requires BMP file in root directory of QSPI Flash"

Hello there,

Could someone explain me what does it mean: "Requires BMP file in root directory of QSPI Flash", and how to move .bmp or .jpg image from SD card to Flash. Since my image is only 10kb, I would like to put it on Flash. (Only using SD card to copy image, then I want to remove it)

I saw at least one person complaining that they could not get the SD library and the Adafruit_SPIFlash library to work at the same time in the same sketch. Maybe there is no way to transfer files from SD directly to SPIFlash.

A workaround might be to convert each file into a large byte array and then write a sketch to create a file on the SPIFlash and fill it from the byte array.

1 Like

I am more likely struggle to find a way to put a file (only if the file is a text file) to the flash. I can successfully run this code, and get info of both Sd card and QSPI. I can put .bmp to RAM from SD card. Is it possible to put .bmp from RAM to flash?

https://github.com/adafruit/Adafruit_SPIFlash/blob/master/examples/SdFat_Flash_and_SDcard/SdFat_Flash_and_SDcard.ino

I would copy the file one byte at a time. Open an SD file to read and a FLASH file to write. Read a byte from the read file and write the byte to the write file until there are no more bytes.

I was fully disregared every part where CircuitPython was mentioned. Even though this is the key how to upload image to Flash.

Thank you John for trying to help me out!

https://learn.adafruit.com/pyportal-animated-gif-display/loading-gifs

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.