/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / LCD Mirrored..

Username:     
Password:     
             

Forum

# 1   2009-02-16 20:38:59 LCD Mirrored..

repzak
Member
Registered: 2008-03-05
Posts: 170

LCD Mirrored..

Hej,

I just recently found my primer1 again, and loaded it with the V3.5 of circle os..

I have tried to change the delay to a 10x higher value in hex, but same result (if i did everything correctly)

Maybe someone have a working set of file i could try?

BR
Kasper

Offline

 

# 2   2009-02-23 20:07:38 LCD Mirrored..

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: LCD Mirrored..

Hello,

I found a solution:

In the LCD.C:

    static void LCD_7637_Controller( void )
        {
        extern void starting_delay ( long unsigned  );

        /** Apply hardware reset **/
        LCD_CtrlLinesWrite( GPIOx_CTRL_LCD, CtrlPin_RST, Bit_SET );    /* RST = 1  */
        LCD_CtrlLinesWrite( GPIOx_CTRL_LCD, CtrlPin_RST, Bit_RESET );  /* RST = 0  */
        starting_delay( 0x3000 ); // Changed from 0x500

        LCD_CtrlLinesWrite( GPIOx_CTRL_LCD, CtrlPin_RST, Bit_SET );    /* RST = 1  */
        starting_delay( 0x3000 ); // Changed from 0x500

Then it can run witout the delay in main:
    /* The LCD monitor is not always properly initialized:
    the starting delay allows to wait for a longer power up.                */
    #ifdef PRIMER2
    delayms(100);
    #else
    starting_delay( 100 ); // KJ - Changed from 0x10000
    #endif


Then my display in primer1 is not mirrored any more

Kasper

Offline

 

# 3   2009-02-23 22:25:25 LCD Mirrored..

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: LCD Mirrored..

Thanks for the information. This problem had been reported a few times, and we didn't know the answer (of course, it was not reproducible). Good to know the solution.

Offline

 

Board footer