#include
int fputc(int ch, FILE *f)//STM8S105,printf function redirection
{
while (!(UART2->SR&0x80));
UART2->DR=ch;
return ch;
}
At the same time, you need to modify the Library item in IAR's Project->Options->General Options->Library Configuration from "Normal" to "Full".
Previous article:About the problem of incorrect printing of IAR for stm8 printf
Next article:Solution to abnormal data reading of STM8 ADC
Recommended ReadingLatest update time:2024-11-17 03:52
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- IAR fully supports the new industrial-grade PX5 real-time operating system
- Internet of Things Development Technology Based on C Language (Edited by Gao Song)
- STM8 C language programming (1) - basic program and startup code analysis
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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- Digital Signal Processing Implementation on FPGA.pdf
- Xianji official engineer's dry goods: Xianji HPM SDK development environment construction instructions on Linux system
- How does the Harry Potter interactive wand at Universal Studios work?
- [RVB2601 Creative Application Development] User Experience 06 -- NTP Timing
- Several necessary steps to learn MCU in depth
- Is the GD32 MCU also out of stock now?
- Op amp output square wave deformation
- 【ST NUCLEO-G071RB Review】——by donatello1996
- Types and Applications of Directional Couplers
- I want a DAC+op amp circuit that can output about 15-30V.