There was a problem with the gpio.c file before, so I added a new gpio.c in the root folder /inc /src, and then I wrote the serial port function in the stm8_board.c file. When compiling, an error Error[Li005]: no definition for"GPIO_Init" was reported
Meaning: I didn’t define this GPIO_Init() function? Impossible??? ...
I checked the header files, it is defined in gpio.c and declared in gpio.h, why does it say I haven't defined it and won't let me call it??????
After checking, I found that I did not make a Make when adding the c file
Found a #endif in the .c file and deleted that line (there is a problem with the .c file)
Compilation successful
Previous article:Writing of MCU time-related delay function
Next article:stm8 programming failed Failed to initialize communcation with hardware
Recommended ReadingLatest update time:2024-11-15 21:55
- 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
- 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
- C++ Multithreaded Programming Practice
- Can't MSP430FR2433 use 3 hardware SPIs at the same time?
- How to set up WiMi-net wireless gateway?
- 【Course Special】Let’s talk about millimeter wave radar technology
- I would like to ask about the problem of PWM control LED based on register configuration.
- Popular Science | IoT Architecture and Technical Protocols
- Buzzer drive circuit
- Electronics competition sharing: [D-Simple Circuit Characteristics Tester] Shanghai Division_D Question_80%_A school in Minhang District_Report and thoughts
- Snapdragon 845 CPU
- LIN communication, checksum error.