Skip to main content
Visitor II
May 1, 2024
Solved

STM32F769NI - Discovery, Issue Displaying Pictures on LCD Saved on SD Card

  • May 1, 2024
  • 3 replies
  • 2408 views

I recently purchased a STM32F769NI MCU Discovery Kit. The kit is brand new, and I was looking to run the example display application "LCD_PicturesFromSDCard" from the most recent version of STM32CubeF7 software package. I downloaded the most recent version of STM32CubeF7 (1.17.0) as well as the most recent patch (1.17.1). I compiled the "LCD_PicturesFromSDCard" project in Keil uVision5 changing the optimization level to 0 and changed the defined processor symbol from "USE_STM32F769I_DISCO" to "USE_STM32F769I_DISCO_REVB03".

 

As instructed via the readme.txt for this specific example application, I created a "Media" directory under the empty micro SD card root, and copied the 5 .bmp images provided in the sample application to the micro SD. I then connected the micro SD to the STM32F769NI MCU Discovery Kit and tried to run the application to display the photos with no success. The error of no bitmap files is consistently debug outputted to the display. I repeated the process using a micro SD from a different manufacturer, still with no success.

 

I tried altering the name of the media file, putting the files directly at the root, changing the example from the cub to look in different folders/places/the root of the SD card, but kept running into the same issue. I also noticed that the SD card never seems to mount correctly, it never identifies any files or folders when loaded using the example when inspecting via debug.

 

Does anyone have any insight into this issue/has anyone had to fix this before? Is this a common issue? Looking to gauge if similar issues have been observed in the past, or if I am missing something during set up. Thank you.

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @amattes ,

    Are you able to run any LCD example STM32CubeF7/Projects/STM32F769I-Discovery/Examples/LCD_DSI at master · STMicroelectronics/STM32CubeF7 · GitHub?

    Please make sure that you used "USE_STM32F769I_DISCO_REVB03" in defined symbols.

    KDJEM1_0-1718210143429.png

    I'm using  IAR EW for Arm 9.20.4 toolchain.

    Could you please try to download the LCD_PicturesFromSDCard example using STM32CubeProgrammer and .hex file in the attachment.

    KDJEM1_1-1718211345608.png

    I hope this help you.

    Kaouthar

     

     

    3 replies

    Technical Moderator
    May 3, 2024

    Hello @amattes and welcome to the Community :),

    Which Keil version are you using for compilation?

    I made some tests for LCD_PicturesFromSDCard project using:

    - Keil 5.38.0: I noted a build error, which I reported internally.

    -STM32CubeIDE 1.15.0 and IAR: the project works correctly without any issues.

    Could you please try with STM32CubeIDE or IAR toolchain and let me know if the issue is solved or not?

    Internal ticket number: 180613 (This is an internal tracking number and is not accessible or usable by customers).

    Thank you.

    Kaouthar

    pro-msUwvtRg.jpeg

    amattesAuthor
    Visitor II
    May 14, 2024

    Hello Kaouthar,

     

    I was originally using Keil V5.24.2.0.

     

    I attempted to build the LCD_PicturesFromSDCard project in IAR EW for Arm 9.30.1, and STM32CubeIDE 1.15.1, and successfully built in both IAR EW and STM32CubeIDE.

     

    Upon connecting to the STM32F769NI MCU Discovery Kit and running the application with both IAR EW and STM32CubeIDE, I was met with static displayed on the screen (please see attached image).

     

    Have you seen a similar error in past troubleshooting? What was the build error you observed in Keil 5.38.0? What version of the STM32CubeF7 software package were you running to successfully display an image?

     

    Thank you.

    ScreenStatic.png

    Graduate II
    May 14, 2024

    Image looks to be random frame buffer.

    Make sure SDRAM is started and cleared.

    Check .BMP files supports (resolution / colour depth) by the application

    KDJEM.1Answer
    Technical Moderator
    June 12, 2024

    Hello @amattes ,

    Are you able to run any LCD example STM32CubeF7/Projects/STM32F769I-Discovery/Examples/LCD_DSI at master · STMicroelectronics/STM32CubeF7 · GitHub?

    Please make sure that you used "USE_STM32F769I_DISCO_REVB03" in defined symbols.

    KDJEM1_0-1718210143429.png

    I'm using  IAR EW for Arm 9.20.4 toolchain.

    Could you please try to download the LCD_PicturesFromSDCard example using STM32CubeProgrammer and .hex file in the attachment.

    KDJEM1_1-1718211345608.png

    I hope this help you.

    Kaouthar

     

     

    Technical Moderator
    June 26, 2024

    Hello @amattes ,

     

    Any update about the issue? Did you try the suggestions mentioned in the previous reply?

    Please let me know if the issue is solved or not?

    If the problem is solved, please click on Accept as Solution on the reply which solved your issue.

    Thank you.

    Kaouthar