I have trouble compile ECG_Acquisition.c using Ride7 (7.20.09.0139) How can I fix them? Are they related to new STM32F10xxx firmware library (FWLib) V2.0 compatibility issues?
Building C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c Running: GCC \"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -D_STM32F103RBT6_ -D_STM3x_ -D_STM32x_ -mthumb -mcpu=cortex-m3 "C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c" -o "C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\objdebug\ECG_Acquisition.o" -I "." -I "C:\Program Files\Raisonance\Ride\Lib\ARM\include" -I "C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\Include" -I "C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\USBLIB" -c -fsigned-char -g -Os -ffunction-sections -mlittle-endian C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c: In function 'InitTIM1': C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:50: error: 'TIM1_TimeBaseInitTypeDef' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:50: error: (Each undeclared identifier is reported only once C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:50: error: for each function it appears in.) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:50: error: expected ';' before 'TIM1_TimeBaseStructure' C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:51: error: 'TIM1_OCInitTypeDef' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:51: error: expected ';' before 'TIM1_OCInitStructure' C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c: In function 'InitDMA1': C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:128: error: 'DMA_Channel1' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:129: error: 'DMA' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:133: warning: passing argument 2 of '(u32 (*)(u32, u32))(*ptrCircle_API)[185]' makes integer from pointer without a cast C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c: In function 'ResetDMA1': C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:173: error: 'DMA_Channel1' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:174: error: 'DMA' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:177: warning: passing argument 2 of '(u32 (*)(u32, u32))(*ptrCircle_API)[185]' makes integer from pointer without a cast C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c: In function 'ECG_NVIC_Configuration': C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:277: error: 'DMAChannel1_IRQChannel' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:283: error: 'SCB_TypeDef' has no member named 'AIRC' C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:293: error: 'NVIC_TypeDef' has no member named 'Priority' C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:299: error: 'NVIC_TypeDef' has no member named 'Priority' C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:302: error: 'NVIC_TypeDef' has no member named 'Enable' C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c: In function 'DMA1_Interrupts_Stop': C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:324: error: 'DMAChannel1_IRQChannel' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c: In function 'DMA1_ISR': C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:336: error: 'DMA' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:336: error: 'DMA_FLAG_HT1' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:341: error: 'DMA_FLAG_TC1' undeclared (first use in this function) C:\Documents and Settings\Jingxi\My Documents\My Projects\STM32Primer\Projects\STM32ECG\src\ECG_Acquisition.c:347: error: 'DMA_FLAG_GL1' undeclared (first use in this function)
How do I do to compile right? where is the 1.1 version of ECG primer? do I have to replace the lib folder with older st libraries? where do I get it from? pls answer this question because the most loaded project just don't work! thanks a lot!
The new ST libraries are not 100% compatible with previous versions. We adapted all the project posted by Raisonance (and most of the projects that do not require any hardware), but some projects (such as ECG) that require a specific hardware extension have not been modified.