Development environment: Keil
Chip: STM32F103RE
Problem description:
1. Use the STM32Cube create the source code, use the LL libraries and HAL library;
2. Another IAR transplant code, covering the Crypto, because before the IAR. A file, Keil cannot compile, so download the latest official Crypto library ST, import the Keil projects, Keil shown in these official library file (., c., h..lib file is locked, can't edit);
3. Use the Keil after Rebuild, complains, as follows:
Ask: consult my own references of the ST in the macro definition and Crypto library macro definition in the reference libraries repeat, also cannot modify the Crypto libraries, if modify their own files, 1. A lot of work; 2. Position error may occur; Consult everybody so how should solve? Thank you very much, thank you!
Build started: Project: CDZ
* * * Using the Compiler 'V5.06 update 6 (build 750)', folder: 'C: \ Keil_v5 \ ARM \ ARMCC \ Bin'
The Build target 'CDZ'
compiling main.c...
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (133) : warning: # 47 - D: incompatible redefinition of macro "HSE_STARTUP_TIMEOUT
"# define HSE_STARTUP_TIMEOUT ((uint16_t) 0 x0500)/*! C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (135) : warning: # 47 - D: incompatible redefinition of macro "HSI_VALUE
"# define HSI_VALUE (8000000) (uint32_t)/*!
# define __MPU_PRESENT 0/*!
# define __NVIC_PRIO_BITS 4/*!
# define __Vendor_SysTickConfig 0/*!
NonMaskableInt_IRQn=- 14,/*! <2 Non Maskable Interrupt */
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (176) : error: # 101: "MemoryManagement_IRQn" has already had been declared in the current scope
MemoryManagement_IRQn=- 12,/*! <4 architecture (M3 Memory Management, Interrupt */
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (177) : error: # 101: "BusFault_IRQn" has already had been declared in the current scope
BusFault_IRQn=11,/*!
UsageFault_IRQn=10,/*! <6 architecture (M3 Usage Fault Interrupt */
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (179) : error: # 101: "SVCall_IRQn" has already had been declared in the current scope
SVCall_IRQn=5,/*!
DebugMonitor_IRQn=4,/*! <12 architecture (M3 Debug Monitor Interrupt */
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (181) : error: # 101: "PendSV_IRQn" has already had been declared in the current scope
PendSV_IRQn=2,/*! <14 architecture (M3 Pend SV Interrupt */
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (182) : error: # 101: "SysTick_IRQn" has already had been declared in the current scope
SysTick_IRQn=1,/*! <15 architecture (M3 System Tick Interrupt */
C: \ Users \ YC2 \ AppData/Local/Arm/Packs \ Keil \ STM32F1xx_DFP \ 2.3.0 \ Device \ Include \ stm32f10x h (185) : error: # 101: "WWDG_IRQn" has already had been declared in the current scope
WWDG_IRQn=0,/*!
PVD_IRQn=1,/*!