1.8k views
in Embedded Wizard Studio by

I was successful in connecting the Newhaven 320 x 240 TFT display. I used the ColorFormats example for the STM32F746 DISCO board. Of course it cuts some of the screen off because of the resolution difference, but it works. And looks quite good. 

But when I create a new application using the STM32F746 Discovery template and build and upload the program to the board, the diplay is blank. BTW, I am using the default ew_bsp_display.c intialization code. Oh, backlight boost convertor on the DISCO board produces 36 volts. I only need 19 volts for the Newhaven display, so I connected an external power supply to the backlight LEDs. 

Any thoughts as to why the new application won't work?

 

1 Answer

0 votes
by

Hello,

great to see that your own display is running.

When you create a new project by using the STM32F746 Discovery template, make sure to adapt the ScreenSize according to your display.

Furthermore, when your display is still empty, please check the output within the console window. Are there any error messages?

Best regards,

Manfred.

by
When I change the example project ColorFormats ScreenSize from 480, 272 to 320, 240 and build and upload it, I get a blank screen. When I change the ScreenSize back to 480, 272 the screen is displayed again, albeit in 320, 240 resolution. I tried changing the ScreenSize in a newly created STM32F746 template project to 320, 240 and get I the same thing, blank screen. And I have tried keeping the ScreenSize at 480, 272 in a template project and keep the bounds of the rectangle to 320, 240. This doesn't work either.

Here are the 24 bit timings of the Newhaven display;

RGB_DISPLAY_RESOLUTION_QVGA

Values specific to QVGA LCD display

DispWidth = 320;

DispHeight = 240;

DispHCycle =  408;

DispHOffset = 70;

DispHSync0 = 0;

DispHSync1 = 10;

DispVCycle = 263;

DispVOffset = 13;

DispVSync0 = 0;

DispVSync1 = 2;

DispPCLK = 8;

DispSwizzle = 2;

DispPCLKPol = 0;

DispCSpread = 1;

DispDither = 1;

 Any help would be appreciated.
by
Please make sure to adjust also the Framebuffer Size within the file ewconfig.h.

Are there any error messages in the console window?
by
No, there are no error messages.
by
So I should change the frame buffer to 240.4 K bytes?
by

The framebuffer defines

#define FRAME_BUFFER_WIDTH              480
#define FRAME_BUFFER_HEIGHT             272

should be adapted to the size of your display

#define FRAME_BUFFER_WIDTH              320
#define FRAME_BUFFER_HEIGHT             240

so that it matches with the ScreenSize of your GUI project.

by
Ok, thanks, I bet this is it!
by
I am feeling dumb, I did not check the console output. I was confusing the DOS screen that you upload the program from with the output console. I would have seen the resolution. My bad. I will do this later.
by

After changing the two defines, it worked. But I did have to download a later build environment for this board. Thanks again!

by
Congratulations!!!
by
Yes, I am pleased!

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...