Hello, I am evaluating the Keil tools and the STM32L476. I am attempting to use an USART and an I2C interface on the Discovery board.
In "Project->Manage->Pack Install" I have everything related to CMSIS, device, and Middleware installed.
In "Project->Manage->Run-Time Environment", other than for driver validation, there are no USART or I2C drivers.
In the code, extern ARM_DRIVER_USART Driver_USART2; static ARM_DRIVER_USART * USARTdrv = &Driver_USART2; extern ARM_DRIVER_I2C Driver_I2C0; static ARM_DRIVER_I2C * I2Cdrv = &Driver_I2C0;
errors as Driver_USART2 and Driver_I2C0 can not be found.
Please point me in the correct direction to use the USART and I2C driver on the STM32L4xx
Many thanks, Thomas
Hello Thomas,
at the moment, the STM32L4 Pack offers only basic device support. If you require drivers for the peripherals, you need to add the ones that come with the STM32CubeL4 software from STMicroelectronics: www.st.com/.../PF261908
Kind regards,
Christopher