Skip to main content
Visitor II
September 17, 2022
Solved

STM32L0538-DISCO Demo program

  • September 17, 2022
  • 11 replies
  • 5348 views

I recently bought the STM32L0538-DISCO board. I have seen the following video in youtube where you can see the functions of this board in full. Where can I find the source code for STM32Cube?

On the info page of the board I have not found one that works for STM32Cube.

Thank you very much

    This topic has been closed for replies.
    Best answer by JCard.3

    I finally got the demo program running on a RevB03 board. :rocket:

    Sharing this for my future self or for others in the same situation:

    1. Clone the repo linked by @Walid ZRELLI​ : https://github.com/STMicroelectronics/STM32CubeL0.git
    2. From the root of that repo: cp -r ./Drivers/BSP/Components/gdem0213b74 ./Projects/32L0538DISCOVERY/Demonstrations/SW4STM32/STM32L0538-Discovery/Drivers/BSP
    3. From STM32CubeIDE, open project ./Projects/32L0538DISCOVERY/Demonstrations/SW4STM32/STM32L0538-Discovery
    4. Right click project -> Properties -> C/C++ Build -> Settings -> GCC Compiler -> Preprocessor Change USE_STM32L0538_DISCO to USE_STM32L0538_DISCO_REV_B03

    0693W00000Y7ZceQAF.png 5. Build and flash

    The dimensions of this display must be different from the original, because the GUI looks truncated but otherwise it works as documented in the readme.txt

    0693W00000Y7ZXLQA3.jpg 

    11 replies

    Visitor II
    March 20, 2023

    I ran the BSP example for the revB03 board using stm32cudeide and got the display working by creating a new project, choosing the board from the Example Selector and choosing the BSP example..., as suggested above change the preprocessor setting and adding the gdem0213b74 folder (from git repo mentioned above) to the Drivers/Components project folder.