Hello, introduces the new features MDK-ARM 5 and indeed Cortex processors from ST. If I let the IDE generate a project with STM32F103C6 by ticking the support of RTX and GPIO. Then using User Code Template I generate CMSIS-RTOS 'main' funcion to which you add # include "stm32f10x.h" This skeleton project goes smoothly compile. But if, for example, will add support for I2C Driver, it requires DMA driver by RTE Drivers for STM32F1 Serie compilation of the skeleton has 12 finishes errors. For example C:\Keil\ARM\PACK\Keil\STM32F1xx_DFP\1.0.2\RTE_Driver\DMA_STM32F10x.c(92): error: #20: identifier "RCC_AHBENR_DMA2EN" is undefined RCC->AHBENR |= RCC_AHBENR_DMA2EN; RTE wants to use for the transmission of the I2C DMA2 and RCC_AHBENR_DMA2EN to turn on the clock for DMA2, unfortunately somehow lacks definition. What I'm doing bad?
Are the examples using the RTE, CMSI Driver concept for STM32F family?
I just add #if defined (STM32F10X_HD) || defined (STM32F10X_CL) || defined (STM32F10X_HD_VL) || defined (STM32F10X_XL) #define RCC_AHBENR_DMA2EN ((uint16_t)0x0002) /*!< DMA2 clock enable */ #endif
to stm32f10x.h AND it solve my problem almost! MCU:stm32f10x_LX /STM32F101RFT6