2020-10-08 11:02 PM
I'm trying to use the CMSIS-Driver Interface to access Microcontroller Peripherals.
As a starting point, i tried setting up an application with a simple goal: Transmit a byte using the USART Peripheral via CMSIS-Driver interface, which i can then use on several microcontrollers.
I'm working with IAR Embedded Workbench and the included CMSIS-Manager to import and configure the components of the CMSIS-Pack starting with the STM32F100 which worked perfectly fine, since it's using the "RTE_Device.h" for configuration. Trying to use any other STM32 Controller, which uses STM32CubeMX (So far i tried the STM32F303 and the STM32L152) seems to not work well within this environment.
I'm working with IAR Embedded Workbench and the included CMSIS-Manager to import and configure the components of the CMSIS-Pack starting with the STM32F100 which worked perfectly fine, since it's using the "RTE_Device.h" for configuration. Trying to use any other STM32 Controller, which uses STM32CubeMX (So far i tried the STM32F303 and the STM32L152) seems to not work well within this environment.
Step-by-Step guide on what I'm doing:
Now i get the error "Run STM32CubeMX and generate device configuration files described by FrameworkCubeMX.gpdsc" and none of the just generated configurations (like the MX_Device.h) is included in the project. I tried messing around inside the STM32CubeMX Options (Verifying the use of the template files "FrameworkCubeMX_gpdsc.ftl" and "MX_Device.h_ftl", moving the template files, moving the generated files, etc.). But nothing seems to work.
It could well be, that i'm just missing some crucial steps and i'd love to be redirected to a source which explains how to do this correctly. But i don't know if the problem lies within IAR Embedded Workbench, the CMSIS Pack or in the STM32CubeMX Software.