2. Open the stm32f10x_stdperiph_libSTM32F10x_StdPeriph_Lib_V3.3.0ProjectSTM32F10x_StdPeriph_Template folder and copy the EWARMv5 folder to your own project folder (this is the project template under IAR, and the RVMDK in it is the template under uVision).
3. Take the ADC routine as an example.
4.Copy the Libraries folder in stm32f10x_stdperiph_libSTM32F10x_StdPeriph_Lib_V3.3.0 to the project file. The two folders in it are the core files of CORTEX-M3 and the driver files of peripherals.
5. Open the project file in EWARMv5. Compile it first and you will find many errors, about 14.
6. Right-click the project file in the workspace and select options. Select Device in general options/Target and select the chip model; in c/c++compiler/preprocessor, additional include directories: Here are the paths of some main files, which must correspond to the project file path. The main ones are the inc path and CM3 path (as shown below), and other unused ones can be deleted.
$PROJ_DIR$..
$PROJ_DIR$..LibrariesCMSISCM3CoreSupport
$PROJ_DIR$..LibrariesCMSISCM3DeviceSupportSTSTM32F10x
$PROJ_DIR$..LibrariesSTM32F10x_StdPeriph_Driverinc
Where $PROJ_DIR$ indicates the IAR project file directory, and .. indicates the parent directory.
7. Select override default under linker/config and load a stm32f10x_flash.icf file (used to indicate the execution address of stm32 rom and ram, usually there is this file in the example). It has been configured here: $PROJ_DIR$stm32f10x_flash.icf.
8. Recompile the project file and find errors such as "peripheral files cannot be found" and "kernel files". Delete the peripheral files that cannot be found, and then add them back to the project file. Then compile again and it will be OK.
Previous article:STM32 serial communication USART
Next article:Choose ARM processor, ARM7 or Cortex-M3
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Sandia Labs develops battery failure early warning technology to detect battery failures faster
- Gesture recognition device based on FDC2214 sensor (MSP430)
- Quartus_II Official Tutorial-Chinese Version.pdf
- What were you doing the day before the college entrance examination? Do you regret choosing this major?
- Does stm32 have any models with 4 ADC cores?
- 2020 Luoyang in my eyes
- cc2640 to cc2640R2F
- Do you know where I can find a 5V to 1.5V power supply?
- Vote for reliable national chips - MCU: Test, test, test, which reliable national chips have the first-line forum friends detected?
- C6000 embedded assembly C and assembly comparison and function description
- [GD32L233C-START Review] 1. Receive the development board