Wednesday, February 21st 2018, 8:33am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Date of registration: Sep 19th 2009

Posts: 2

1

Wednesday, November 21st 2012, 2:37pm

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
axterminator has attached the following file:
  • SRC.zip (14.19 kB - 311 times downloaded - Last download: Feb 19th 2018, 2:19am)

Date of registration: May 26th 2009

Posts: 1,022

2

Wednesday, November 28th 2012, 9:59am

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/C++ Source code

1
LCD_SetVSizeEx(0, YSIZE_PHYS, XSIZE_PHYS);


Best regards,
Adrian

eamonning

Beginner

Date of registration: Aug 19th 2013

Posts: 8

3

Wednesday, August 21st 2013, 9:28am

I have the same question. do you have solve the problem?

Date of registration: May 26th 2009

Posts: 1,022

4

Wednesday, August 21st 2013, 10:44am

Hello,

Yes, please call the function LCD_SetVSizeEx() in LCD_X_Config().

Best regards,
Adrian