cancel
Showing results for 
Search instead for 
Did you mean: 

Some problems about using dynamic bitmap on STM32N6570-DK

Z-YF
Associate III

I am using TouchGFX to design GUI, and I want to use a dynamic bitmap to show an image captured by the camera. The camera is about 600*480 size. But I set the CacheAddress as following, and It turns out that the GUI cannot run properly. Is there any problem with it? 

uint16_t* const cacheStartAddr = (uint16_t *)0xC0008000;
const uint32_t cacheSize_own = 0x100000; //1 MB, as example
Bitmap::setCache(cacheStartAddr, cacheSize_own, 1);

5 REPLIES 5
GaetanGodart
ST Employee

Hello @Z-YF ,

 

Are you able to make your project work without the dynamic bitmap first?

What is the exact format of the camera's output?

What do you mean by "the GUI cannot run properly", what is happening exactly?

Please read this article to use dynamic bitmap : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/dynamic-bitmaps

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

You know, my main concern is where I can allocate the bitmap cache. Because there is no SDRAM on the N6-DK board.

The STM32N6570-dk has 4.2 Mbytes of contiguous SRAM, could you place the bitmap cache there?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

I tried, but it failed. I set the start address as 0x34000000, the touchgfx can actually run, but it just cannot show the dynamic bitmap. And if I set a new screen to display this bitmap, I cannot skip to the bitmap screen, but I can show the main screen and the starting one.

Hello @Z-YF ,

 

It seems that the chip can indeed have SDRAM at 0xC000 0000 but the DK board itself doesn't have SDRAM connected at that address.
Instead, you should use the PSRAM on XPSI1 located at 0x9000 0000.

GaetanGodart_0-1751454927834.png

 

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)