How to run gifs as animation using flash memory for BT815 ? #123
Replies: 2 comments
-
I have not really tried animations and I am not sure what I would want to use these for. Name : bicycle.anim.flash Tile Size : 6x6 Tile Size : not apply In this example I could just store the 13 frames in flash and use two buffers of 30.000 bytes each in RAM_G, copy one frame from flash while displaying the other.
57346 is 0xE002 which means "no header detected in sector 0 - is flash blank?" - so yes, the flash is probably empty.
Interesting, I see this in the programming guide but there really is no REG_FLASH_FULL register. My EVE_init_flash() function does the complete initialization though and reports back what happened trying to do so.
Yes and no, I have a "XMC4700 Relax Lite Kit" here with me but gave up on getting a licence for the Keil software. |
Beta Was this translation helpful? Give feedback.
-
I am playing half the day now with the EK-TM4C1294XL board and it feels like I am not getting anywhere. I managed to setup a project for the TM4C1294 in Arm Keil Studio in VSCode and it compiles. Setting up a new project in Code Composer Studio worked better and the project compiles - but I can not figure out how to even try to flash the software to the board - and this is not Keil anyways. Experience is 0/10 so far. |
Beta Was this translation helpful? Give feedback.
-
Hi Rudolph,
Long time no see.
I need some help from you regarding GIFs .
I want to add 2 gifs into my XMC project. I created a BLOB file that contains them.
I am using BT815 variant, so I cannot use inflate method like I did for bitmaps(PNG).
From what I read, I understand that I can use gifs in my project only if I use flash memory. Luckily, I have 64 Mb memory on my display.
Looking into some examples, I saw that I have to use some flash functions in order to load and run the GIFs as animations.
Until now, I tried only to initiate flash memory using this code( in order to see that my flash memory is responsive)
uint8_t EVE_init_flash(void)
{
uint8_t timeout = 0;
uint8_t status;
}
As a result for variables „result” and „status” I got values for result=57346 and status=0x02. What 57346 means? It is that value correct? It is the size of my flash memory? From what I know, I have a 64mb size.
I was expected perhaps to see status 0x03 after I call cmd_flashfast method, but the status remain the same. I don’t know why, I don’t know if I missed something important . Beside this, I don’t find REG_FLASH_FULL in the manual or in the code . Which is the value for this ?
I saw that functions like cmd_flashfast and cmd_flashupdate are also need it.
Also, EVE_CMD_ANIMFRAME must be used after the init flash is done, and the program is running.
Could you help me with this? It is not clear for me how I must use flash related methods, in order to make gifs work as animations.
An example it will be very helpful.
PS: Did you received your XMC board, and Keil license ?
Best regards!
Camil
Beta Was this translation helpful? Give feedback.
All reactions