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?
You are right, have it bad. Either I have incredible luck or the entire code hastily stitched. A significant part of the code is to be concluded in #if defined (STM32F10X_XD) || ... #endif
Where to report similar errors?
Look at the Copyright/Licence notices in the file - they will tell you who "owns" the file...
This is part of CMSIS Peripheral Driver Interfaces and have license of ARM
/* ---------------------------------------------------------------------- * Copyright (C) 2013 ARM Limited. All rights reserved. * * $Date: 27. August 2013 * $Revision: V1.00 * * Project: DMA Driver for ST STM32F10x * -------------------------------------------------------------------- */
Hi. Does anybody know if this has been fixed? I'm facing the same error and I'm stuck. Thank you!
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