Posts by Haia_Boosa

    Hello everyone
    I have created a simple GUI by means of GUIBUILDER app. It consists a window and one button.
    A matrix keyboard is used and the keys data are passing to Emwin by executing WM_StoreKeyMsg(KeyValue,1) and WM_StoreKeyMsg(KeyValue,0) in interrupt routine, when the keys are pressing and releasing.
    The problem is that both WM_NOTIFICATION_CLICKED and WM_NOTIFICATION_RELEASED callback routines are fired when just pressing and holding the button (executing WM_StoreKeyMsg(KeyValue,1)).
    Where is the problem?

    Best regards
    Haia_Boosa

    Hello Sven, Thank you for replying.
    According to your estimation 155 KB memory is needed for 320×240. My MCU has 192 KB of RAM, but it is splitted into two region(128 KB RAM and 64 KB CCMRAM) that aren't continues in the memory map:
    CCMRAM ORIGIN: 0X10000000 LEBGTH = 64KB
    RAM ORIGIN: 0X20000000 LENGTH = 128KB

    Is there anyway to use this kind of memory for Emwin?

    Hello everyone

    I created simple GUI with GUIBUILDER app (window with background color and two buttons).
    Keyboard events is passed to emwin by GUI_StoreKeyMsg() function(inside the keyboard external interrupt routine) and all of program is in the super loop that execute every 30 mili second.
    By pressing TAB Key buttons is respectively get focused but this cause screen to flicker.

    I use STM32F407 with internal RAM (120 KB of RAM is dedicated to emwin) and ili9341 LCD Controller.

    Can anyone help me to find problem?

    Thanks in advance
    Haia_Boosa

    Hello
    How Can I overwrite GUIBuilder window creation callback. I want to draw a window with gradient background color.

    I tried the following modification on GUIBuilder output, but i did not work.

    (Compiler warning is included at the bottom of code)

    Thanks in advance

    I did not call WM_DeleteWindow() twice on the same window. Based on user interaction a custom message box (framwin) is created and deleted by pressing OK button on the message box. It works well in first creation and deletion, but doing same action i.e, pressing OK button (deleting the window) will cause Hardfault.

    Best Regards,

    Haia Boosa

    Hi Sven
    Thanks for replying
    The configuration is as follows:

    Target is STM32F407 and LCD driver is ILI9341.
    SRAM settings is verified by writing and reading back from 8,16 and 32 bit defined variable in the SRAM address range.

    Best regard.

    Hello everyone
    where can I find more detail about aMemory array ( the following code):

    C: GUIConfig.c
    GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);

    Detail about how and where the screen pixels information located in the aMemory array.

    I have some problem when I use external SRAM as GUI memroy in STM32F407. It's look like that the image within LCD has been shifting upward in the SRAM mode.

    Thanks in advance

    Hello everyone
    I'm working on STemWin532 library on STM32F103ZET6 bord in STM32CudeIDE. I could successfully configured LCD interface (The Controller is HX8325B and GUI runs on internal RAM) and insert some text on the screen (image 1)

    But when i use external SRAM as GUI memory result is very strange and interesting :). The text is driven out of the screen. The picture 2 shows the situation.

    While the code is the same code that works correctly in the internal RAM of MCU. The only command that i changed is the following variable definition for GUI memory allocation:

    C: GUIConf.c
    #include "GUI.h"
    #define GUI_NUMBYTES       1024*50
    U32 static aMemory[GUI_NUMBYTES/4];   // This is for internal RAM
    U32 static aMemory[GUI_NUMBYTES/4]__attribute__((section(".GUI_0x68000000")));  // This is for extenal SRAM
    void GUI_X_Config(void) {
      GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
    }


    The section .GUI_0x68000000 is defined within linker command file as follows:


    Build Analyzer output of CudeIDE shows the memory usage as image 3.

    There is no hard fault in execution procedure and while(1) loop is executing as normal:. (image 4)

    Any help will highly appreciated.
    Best Regards
    H.Boosa

    Hi everyone
    I'm using STM32F103ZET to run STemWin532 GUI. In the first step i configured everything for running from internal RAM and program worked fine and GUI displayed components like progress bar and ...., but when i changed linker command file to map GUI memory to external SRAM GUI did not work. I checked connection with SRAM and it was OK. I checked 8,16,32 bit memory accessing integrity by following code:

    We can write to External SRAM and read it back successfully.

    I attached the STM32CubeIDE Build Analyzer Tool output for memory usage.

    In this case (External SRAM) program runs GUI_Init() function successfully and memory allocation and LCD initialization are done, (The LCD is turn to black after GUI_Init() Execution just like when i use the internal RAM as GUI memory) but nothing else happens. Program then execute the following codes in the while(1) loop and screen remains black.

    I placed break point inside the while(1) to making sure that program is running.(Second attached file)

    Thanks
    Haia.B