General Category > Discussion - EVE
Modularly load ASTC images
HEYYA:
May I know if this issue is resolved?
I want to update a few images(size of image is same as screen size) in the flash. My CMD_FLASHUPDATE is not working.
BRT Community:
Hi,
Could you post an example of your flash update routine and we can help to check it,
In general, you would write your data to RAM_G (must be 4-byte aligned). You always write multiples of 4096 and so note that you may wish to clear the full block of multiple 4096 within RAM_G and then write your content to RAM_G if the content is not a multiple of 4096 bytes. The flash address must also be 4096 bytes aligned,
Then call the flashupdate command and await completion.
void cmd_flashupdate ( uint32_t dest, uint32_t src, uint32_t num );
Best Regards, BRT Community
HEYYA:
Ft_Gpu_CoCmd_FlashRead(phost, ram_addr, flash addr, size);/* 480x272 */
Ft_Gpu_CoCmd_FlashUpdate(phost, flash addr, ram addr, size);
The flash read command works properly and I am able to display the image through setbitmap function. But when I write code for flash update, the program crashes.
BRT Community:
Hi,
Could you please also advise example values used in your function calls, for your parameters,
Best Regards, BRT Community
HEYYA:
Hi,
ram addr = 526336
flash addr = 526336 is what I have written in the functions
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version