Arm Keil MDK v6 Essential and Professional editions are now available to buy as monthly or annual subscriptions from our Developer Tools store. Visit the store to get access to the tools suite today!

  1. Packs
  2. STM32L4R9I-DISCO_BSP

STM32L4R9I-DISCO_BSP

The STMicroelectronics STM32L4R9I-DISCO Board Support Pack (BSP):

Content in csolution format

Provided API Interface Description
CMSIS_MCI CMSIS-Driver MCI connected to microSD slot (CN6)
CMSIS_USART CMSIS-Driver USART connected to STMOD+ pins PMOD#2..PMOD#3 (CN1)
CMSIS_USB_Device CMSIS-Driver USB Device connected to User USB connector (CN9)
CMSIS_VIO CMSIS-Driver VIO connected to LEDs (LD2) and Joystick select (B2)
STDIN, STDOUT, STDERR Standard I/O connected to Virtual COM port on ST-LINK connector (CN13)
ARDUINO_UNO_D2..D10, D14..D19 CMSIS-Driver GPIO connected to Arduino digital I/O pins D2..D10 and D14..D19
ARDUINO_UNO_I2C CMSIS-Driver I2C connected to Arduino I2C pins D20..D21
ARDUINO_UNO_SPI CMSIS-Driver SPI connected to Arduino SPI pins D11..D13
ARDUINO_UNO_UART CMSIS-Driver USART connected to Arduino UART pins D0..D1

Using GCC Compiler

By default the Board Layers are configured for the Arm Compiler 6 (AC6). Using STM32CubeMX it can be reconfigured for a different compiler. To configure it for the GCC compiler execute these steps:

  • In the <solution_name>.csolution.yml project file select compiler: GCC.
  • Launch the STM32CubeMX generator with this CMSIS-Toolbox command: csolution <solution_name>.csolution.yml run -g CubeMX -c <context>
  • In STM32CubeMX:
  • Open from the menu Project Manager - Project - Toolchain/IDE:
  • Select STM32CubeIDE and disable Generate Under Root.
  • Click GENERATE CODE to recreate the CubeMX generated files for the GCC compiler.

  • In the Board.clayer.yml file, update linker: node configuration to reference appropriate GCC linker script. The GCC linker script is typically generated in the STM32CubeMX/STM32CubeIDE folder. Customize the GCC linker script file to your project's requirements.

  • Rebuild the project using the CMSIS-Toolbox command cbuild <solution_name>.csolution.yml.