Home > other >  [for] urgent urgent! Crypto transplantation in stm32 bring the macro definition conflict in the libr
[for] urgent urgent! Crypto transplantation in stm32 bring the macro definition conflict in the libr

Time:11-16

To help everyone, encountered a problem:

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)/*!
  • Related