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