This article does not describe the installation of IAR for STM8 software, you can just search it on Baidu; this article mainly describes the project establishment.
1. Create a new project folder and name it A. A contains three folders: FWlib, Project, and USER.
(1) The FWlib folder mainly stores official library functions and header files, namely the "inc folder" and the "src folder". You can also directly use the downloaded "STM8S_StdPeriph_Driver folder";
(2) The Project folder is mainly used to store project files and .hex files generated by compilation;
(3) The USER folder mainly stores main.c, stm8s_conf.h, and user-written function files, namely .c and .h files;
2. Create a new Workspace and a new Project:
(1) File -> New Workspace
(2) Project -> Create New Project, save to project folder A;
(3) Right-click the project name -> Add -> Add File…/Group… (File means adding a single file, Group means adding a folder) to add related files to the project:
Before adding:
After adding:
3. Set the project Option, right-click the project name -> Options, and set as follows:
(1) General Options -> Device, set the corresponding STM8 microcontroller model;
(2) Add the compilation path: C/C++ Compiler -> Preprocessor, and set the path to a relative path, that is, the folder can be compiled anywhere;
Set relative path:
(3) Set to .hex file output;
At this point, all setup steps are completed and the new project is finished.
Previous article:Summary of problems in using STLINK to download programs to STM8S103
Next article:STM8S103 compilation error bad struct/union operand
Recommended ReadingLatest update time:2024-11-16 11:27
- Popular Resources
- Popular amplifiers
- IAR fully supports the new industrial-grade PX5 real-time operating system
- STM8 C language programming (1) - basic program and startup code analysis
- Description of the BLDC back-EMF sampling method based on the STM8 official library
- ARM Cortex-M4+Wi-Fi MCU Application Guide (Embedded Technology and Application Series) (Guo Shujun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- 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
- How can a 37-year-old programmer still "dominate the workplace"?
- 【AT-START-F403A Review】+OLED screen driver and application
- Inverting adder schematic and circuit diagram
- EEWORLD University - TI gate drivers for every FET
- Please help analyze the role of this voltage regulator diode in the circuit!
- MEMS pressure sensors solve new pain points in human-machine interface
- 2021 Electronic Competition Topic--Nanjing University of Information Science and Technology On-campus Selection Competition Topic
- [Learning Resources] Current Sense Amplifiers from Beginner to Advanced
- About transfer function
- MSP430F5438A serial port