For example, STM8S003 has 1 RAM, and the maximum 512 is used for stack by default.
Only 512 are left for users
The 512 is divided into idata xdata according to the understanding of 51, that is, @tiny @near
Without keyword restriction, the default is idata area (address less than 256).
char tttds[258];
If the idata area exceeds the range, it will prompt segment.ubsct size overflow (5)
Adding keywords defines the area as above 256 addresses.
@near char ttt[51];
If this definition exceeds the range, it will prompt segment .bss size overflow (1)
The two addresses cannot be continuous and mixed, that is, if an array exceeds 256, then there is only one way to make the stack smaller and put it in the near area. Modify the Linker item in the STVD project settings, drop down the RAM address bar of INPUT in the category, and change 0X1FF to a larger value. This can be achieved. Of course, you must pay attention to the stack not overflowing because it has become smaller.
I still have some doubts, FILE: line 178: Address 0x1019 is out of range and is ignored! In my program, it is impossible to use address 1019, and the program can run normally. I don’t know why this prompt appears during STVP. I have also seen the HEX file, and there is indeed data at address 1019, which is 0. How is it generated? Is it a COSMIC BUG?
Previous article:Use of STM8 internal EEPROM
Next article:STM8 can communication
Recommended ReadingLatest update time:2024-11-16 13:56
- Popular Resources
- Popular amplifiers
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
- Free review: HuaDa M4 core HC32F460 board, #all serial communication ports, GPIO can be freely mapped# Is it fresh?
- Playing with Zynq Serial 13 - Using GIT for project backup and version management 5
- IGBT drive circuit
- Comparison of 4G and 5G wireless technology details
- EEWORLD University Hall----MCU Peripheral Circuit_Lao Wu MCU Actual Combat
- Audio Circuit Debugging Tips
- [TI recommended course] #Industry's first professional RGB LED driver LP50xx demonstration #
- How to configure the background of Hikvision Ai equipment and thermal imaging equipment? What is the difference between them and ordinary network cameras? Please ask the experts! !
- How to get a multi-channel reference power supply
- TMS320F28335GPIO Example - Light up the LED