Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
1 year, 6 months ago.
Unable to render picture on RA8875 display when picture stored in the flash file system of LPC1768
I am trying to save 2 pictures in the in flash file system of my LPC1768 board, to then display these pictures on my RA8875 screen. In order to save the pictures on the flash memory, I followed the explanation given on https://os.mbed.com/users/AdamGreen/code/FlashFileSystem/:
1. I have downloaded the "fsbld" utility
2. In the folder containing "fsbld.exe", I have created a folder named "flash" where I have copied the two pictures "Test1.jpg" and "Test2.jpg" (these pictures don't exceed the size of my screen so that's ok)
3. I have got back to the folder containing "fsbld.exe", and I have created the system image binary by typing that code on the terminal: fsbld flash flash.bin (this has just created a flash.bin file but no header file ==> not sure if it's normal)
4. I have saved my mbed compiled code "mbedTest.bin" into the folder containing "fsbld.exe" and I have used the following command to join both binaries: copy /b mbedTest.bin + flash.bin mbedTestfl.bin
5. I have saved "mbedTestfl.bin" in my mbed LPC1768 device
My mbed code is in attachment:
The compilation was done with success, but no picture is displayed on my screen. I know that the hardware and wires connection are ok because I have already display these pictures using another code, with the pictures stored in localfilesystem. Could anybody help me and tell me where I made mistakes? I am quite a beginner to work with displays and I have never used the flash file system of my mbed to store things, so I am very sorry if the mistakes I made are obvious.
Thank you in advance for your help,
Question relating to:
1 year, 6 months ago.
I use Adam's FlashFileSystem often, to host the images for the RA8875 projects. So, exactly why it isn't working is a mystery.
I might suggest -
- create a simple sample (small image), and see if that is working.
- check both the (x,y) and the image (width,height). I don't know if the library will handle screen clipping correctly (x or y < 0, or x+width or y+height > screen size).
- try different image files. When I was creating the BMP support, I handled many of the formats, but possibly not all of them. For the jpeg, I leveraged code from others and didn't have to spend much time untangling it.
Why it would work from local file system, but not from the flash file system, is also a mystery, and would suggest that the RA8875 library is ok, but the interface to the flash file system (or the coding of the jpg files) is the issue.
- find the point in the code where it is reading the byte-stream from the file system and print it as a hex stream to the debug port - compare that to the bytestream in the flash file.
I hope this is helpful.