AnsweredAssumed Answered

Virtual Screen API on STM32F469I-DISCO

Question asked by Harald Beck on Mar 13, 2018
Latest reply on Mar 15, 2018 by Harald Beck

Hi,

 

I want to use the virtual screen API of STemWin on this board (using STM32Cube_FW_F4_V1.21.0).

 

There is no special folder in the 'Projects'-Folder for the 'F'-board. Just 'STM32469I-Discovery'.

 

Nevertheless, the sample
STM32Cube_FW_F4_V1.21.0\Projects\STM32469I-Discovery\Applications\STemWin\STemWin_HelloWorld
compiles, links, debugs and runs without problem.

 

- Changes in LCDConf_stm32469i_discovery.c:
--------------------------------------------------------------

 

#define NUM_BUFFERS      1 /* Number of multiple buffers to be used */
#define NUM_VSCREENS     2 /* Number of virtual screens to be used */

 


- Changes in BASIC_HelloWorld.c:
---------------------------------------------
#define DISP_X    800
#define DISP_Y    480

 

volatile int hx;

 

void MainTask(void) {
  GUI_Clear();
  GUI_SetFont(&GUI_Font20_1);
  GUI_DispStringAt("Virtual screen 1.4", DISP_X - 140, DISP_Y - 40);
  GUI_DispStringAt("Virtual screen 2.3", 20, DISP_Y + 20);
  GUI_SetOrg(0, DISP_Y);
  while(1) {
     hx++;
  }
}

 

Compiles, links, debugs without problem, but: The first screen keeps displayed!?

 

Any suggestions?

 

Harry

Outcomes