cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX with STemWin with QSPIFlash

wu ryan
Associate II
Posted on May 10, 2018 at 11:44

Can I use STemWin + QSPIFlash by STM32CubeMX?

or

STM32CubeMX

can only use

STemWin +

 FMC SDRAM ? 
9 REPLIES 9
Posted on May 10, 2018 at 14:46

Using QSPI as a Frame Buffer?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Nawres GHARBI
ST Employee
Posted on May 10, 2018 at 15:39

Hi

mnbvcxz80377

‌,

STemwin works only with RAM while QUADSPIFlash is a flash memory so it is not possible

Posted on May 11, 2018 at 02:59

Yes!  how can I do that?

Posted on May 11, 2018 at 03:06

Hi

GHARBI.Nawres

,

But the 'LCD-TFT display controller (LTDC) on STM32 MCUs' have aparagraph write:

LTDC autonomously fetches the graphical data from the framebuffer (can be internalmemories such as internal Flash, internal SRAM or external memories such asFMC_SDRAM or Quad-SPI) and drives it to the display

or I u

nderstands wrong...?

Thanks

Posted on May 11, 2018 at 03:08

ST says it can't. Even if it worked it would only be good for static images, so I don't really see the value.

You could presumably try on something like an STM32F746G-DISCO which has a QSPI on board.

Some of the L4+ series parts have more on-board RAM to support a frame buffer of some size.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 12, 2018 at 12:24

Using '

STemWin

' implies you want to interactively paint on the screen, draw lines, and text, etc.

This is not quite the same as funneling a stream of data via the LTDC.

The QSPI when mapped into memory might well be somewhat viable, it has the potential to be slower, and soak bus bandwitdh, and for the display to tear if you need to interact with the QSPI memory device outside the memory-mapped mode.

It might be viable to display a bitmap logo at startup, but the use cases are limited. Is your use case a static frame, or what exactly?

Can you not just quickly demonstrate functionality to yourself using one of the DISCO or EVAL boards?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
wu ryan
Associate II
Posted on May 14, 2018 at 04:45

Hi

Turvey.Clive.002

Thank you for answer my question!!!

I want to make a simple GUI and use touch panel,The GUI have some page and show some data,not too complicated and not have video。

So I want put the picture data to qspi , use STemwin to show the picture and control touch panel,but STM32CubeMX can't choose the STemWin without use SDRAM.....or I have wrong operation?

I have STM32F746GDISCOVERY & STM32F769IDISCOVERY ,I want to ues STemwin by STM32CubeMX to make a GUI.

My English is not very well,If have anything not clear please tell me.

Thank!

Posted on May 14, 2018 at 05:00

Modify one of the LCD examples to pull frame buffer from QSPI

STM32Cube_FW_F7_V1.11.0\Projects\STM32F769I-Discovery\Applications\Display\LCD_PicturesFromSDCard

STM32Cube_FW_F7_V1.11.0\Projects\STM32746G-Discovery\Applications\Display\LTDC_PicturesFromSDCard

STM32Cube_FW_F7_V1.11.0\Projects\STM32746G-Discovery\Applications\QSPI\QSPI_perfs

>>I want to use STemwin by STM32CubeMX to make a GUI.

So perhaps pretend you have a RAM based frame buffer, and then modify/add code to point that acesses a memory mapped QSPI image

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 14, 2018 at 11:01

Very thank for your 

answer!!  That is helpful !!

I find a papers 'Quad-SPI (QSPI) interface on STM32 microcontrollers' 

5.1.2 Displaying images directly from the QSPI memory 

Look like what I need ! 

I well try the 

LCD examples!  I hope I will succeed !

Very thank you !!