LCD_FillRec crashes

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • LCD_FillRec crashes

    Hi,
    I'm currently working on my first segger app. so bear with me, probably doing something stupid.
    I have cut the code down to the bare min.
    STM32F103ZF, Keil, NT7534 Controller (4 line serial), GUIDRV_SPage.
    I have written the interface function which work. All compiles OK.
    When I run throught the code, it goes into GUI_Init, then GUI_X_Config, LCD_X_Config and initialises the LCD fine with LCD_X_DisplayDriver.
    As it exits it runs some code until it get to LCD_FillRec and branches to a bad address (0x00) halfway through.
    Can anyone help?
    Stefan
    Files
    • SRC.zip

      (14.19 kB, downloaded 550 times, last: )
  • Hello,

    Unfortunately I was not able to reproduce exactly the problem you described, but I see that the virtual size of the screen is not set in LCDConf.c. Please try to add the following line to the function LCD_X_Config():

    C Source Code

    1. LCD_SetVSizeEx(0, YSIZE_PHYS, XSIZE_PHYS);


    Best regards,
    Adrian