element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
STM32F4DISCOVERY Expansion Boards
  • Products
  • Dev Tools
  • STM32F4DISCOVERY Expansion Boards
  • More
  • Cancel
STM32F4DISCOVERY Expansion Boards
Forum Problem with "official" LCD software example on STM32F4 Discovery Expansion Board
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join STM32F4DISCOVERY Expansion Boards to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 15 replies
  • Subscribers 8 subscribers
  • Views 3718 views
  • Users 0 members are here
  • discovery
  • stm32f4-lcd
  • stm32
  • stm32f4dis-bb
  • stm32f4dis_software_examples
  • stm32f4discovery
Related

Problem with "official" LCD software example on STM32F4 Discovery Expansion Board

Former Member
Former Member over 12 years ago

Hi,

 

I've just started to use my STM32F4 discovery expansion board (discovery board, base board, LCD and camera) and as a first shot I want to try out the software examples found here:

 

http://www.element14.com/community/docs/DOC-51670/l/stm32f4dis-bb-discover-more-software-examples

 

I've tried to run the LCD example called "LCD_35T" located in the folder "STM32F4xx_LCD_Example" but ran into some problems...

 

I'm using IAR Embedded Workbench for ARM as my IDE and have performed the following steps:

 

  • Open the project file located in "LCD_35T/EWARM" folder
  • Rebuild all --> Results in a successful build without errors/warnings
  • Download and debug --> Code is flashed and debugger started (using ST-LINK)
  • Running program (Go) --> Expecting LCD to show color bars according to the example but the screen is just white...


Does anyone have an idea what I'm doing wrong?

 

Thanks in advance for all response!

  • Sign in to reply
  • Cancel

Top Replies

  • Kilohercas
    Kilohercas over 12 years ago +1
    do you have LCD with same controller/pinout ? Right code with wrong init ( set registers for refresh rate, color type, bus type and so on) will produce white screen Check if RESET is high. Disable opt…
  • Kilohercas
    Kilohercas over 12 years ago in reply to Former Member +1
    IF LCD reset Line is LOW, you never get LCD working. some one mentioned bad contacts, also make RESET High after power up at if not by default code, than yourself. #define LCD_RST_PIN (GPIO_Pin_3) #define…
  • ChuckMcM
    ChuckMcM over 12 years ago +1
    So I too was having issues with the code provided by Embest so I wrote some of my own. You can pull a copy from Github here: https://github.com/ChuckM/bb-lcd This puts up a simple display on the LCD with…
Parents
  • Kilohercas
    0 Kilohercas over 12 years ago

    do you have LCD with same controller/pinout ?
    Right code with wrong init ( set registers for refresh rate, color type, bus type and so on) will produce white screen

    Check if RESET is high.
    Disable optimization

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Kilohercas

    Hi,

     

    First of all, thanks for your reply, Linas!

     

    I have the STM32F4DIS-LCD which I believe is the one considered for this project so i don't think it should be any problems with the controller/pinout.

    I checked that RESET is not high and turned off all optimization but I still have the same behavior from the LCD.

     

    Let me know if you have any additional thoughts to this problem.

     

    Thanks again!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Kilohercas
    0 Kilohercas over 12 years ago in reply to Former Member

    IF LCD reset Line is LOW, you never get LCD working. some one mentioned bad contacts, also make RESET High after power up at if not by default code, than yourself.

    #define LCD_RST_PIN                     (GPIO_Pin_3)

    #define LCD_RST_PORT                 (GPIOD)


    (and you can't use that for your one usage, just for lcd )

     

    Set this pin yourself high before init, and delete same code from lcd init, i don't know why it's not High, it must be. , where is no point to look any further if you have lcd in reset at all time.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Kilohercas

    Hi again,

     

    Never mind, I also had bad contact! Reconnected everything after you mentioned that, and now it all works just fine image

     

    Sorry for taking your time with such a silly problem, but I really appreciate your help!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 12 years ago in reply to Kilohercas

    Hi again,

     

    Never mind, I also had bad contact! Reconnected everything after you mentioned that, and now it all works just fine image

     

    Sorry for taking your time with such a silly problem, but I really appreciate your help!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube