This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32L476 USART and I2C drivers

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

Parents Reply Children
No data