stm8s_STVD generates interrupt_vector.c problem

Publisher:chenxiaohong68Latest update time:2020-02-21 Source: eefocusKeywords:stm8s  STVD  interrupt_vector Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When using STVD software to develop stm8sMCU, open the STVD software and the system automatically generates an interrupt vector file vector.c. The following code can be seen in it

Refer to the official document PM0044 program manual of stm8s mcu, we can know that mcu has 32 4-byte interrupt vector entries, where the opcode is 0x82, followed by a 24-bit address. The code in the figure above is the entry address of the interrupt vector and NonHandledInterrupt is exactly @far type (@far represents a 3-byte pointer).


I used the TIM4 overflow interrupt in the program. At first, I just replaced the NonHandledInterrupt in the /*irq23*/ line with the TIM4 interrupt function, and then an error: invalid pointer ... appeared. After checking, I found that the vector table could not recognize the TIM4 interrupt function name because the TIM4 interrupt function name was not declared in advance.

Keywords:stm8s  STVD  interrupt_vector Reference address:stm8s_STVD generates interrupt_vector.c problem

Previous article:STM8 usage summary --segment .ubsct size overflow
Next article:Summary of stm8s usage problems 1——segment.text size overflow

Recommended ReadingLatest update time:2024-11-16 13:04

Redmi 9A/9C released: MediaTek processor + 5000mAh battery
      This morning, Xiaomi officially launched its new Redmi 9A and Redmi 9C in Malaysia, equipped with a MediaTek processor and a built-in 5000mAh battery.      IT Home learned that Redmi 9A uses a 6.53-inch HD+ water drop screen, has a built-in 5000mAh battery, is equipped with MediaTek Helio G25, is equipped with
[Mobile phone portable]
C51 Manual Calculation Timer Interrupt Introduction
The following is calculated by software: 12M crystal oscillator, timer mode 16 bit, 12T, 1 millisecond time void Timer0Init(void) //1 millisecond@12.000MHz{ AUXR &= 0x7F; //Timer clock 12T mode TMOD &= 0xF0; //Set timer mode TMOD |= 0x01; //Set timer mode TL0 = 0x18; //Set the initial timing value TH0 = 0xFC;
[Microcontroller]
Analysis of performance characteristics of Fluke 170C series multimeter
The three Fluke 170C series digital multimeter models are rugged and durable digital multimeters that are fully suitable for industrial field applications. Harsh environment and high voltage can easily damage the multimeter, but it is trivial for the Fluke170C series digital multimeter. Fluke 170C series multimeter
[Test Measurement]
Improved noise suppression voice collection solution using LMV1090 amplifier and AT89C51 microcontroller
The airborne ultra-shortwave radio is responsible for communicating with the ground tower and friendly aircraft in the fighter aircraft. The quality of its communication directly affects the pilot's combat and training quality. Currently, old-fashioned analog voice radio stations are widely used on aircraft. Such radi
[Microcontroller]
Improved noise suppression voice collection solution using LMV1090 amplifier and AT89C51 microcontroller
C8051F software new project process (Silicon IDE)
Note: To create a Silicon IDE project, you must first install the Silicon IDE software. ·Silicon IDE installation:   Please go to the Silabs official website:  http://www.silabs.com/products/mcu/Pages/SoftwareDownloads.aspx?cm_sp=-_--_- to download and install. 1. As shown in the figure below, click "Project - New P
[Microcontroller]
C8051F software new project process (Silicon IDE)
Ambarella CV2FS/CV22FS obtains ASIL C chip functional safety certification, surpassing the level of similar chips in the market
Abstract: The CVflow® SoC series combines high-level automotive safety certification with industry-leading energy efficiency and is suitable for safety-critical automotive perception systems from ADAS to L4 autonomous driving. On June 7, 2022, in Santa Clara, California, USA, Ambarella (hereinafte
[Automotive Electronics]
Ambarella CV2FS/CV22FS obtains ASIL C chip functional safety certification, surpassing the level of similar chips in the market
Preliminary understanding of multiple .c files
The LCD scrolling program in the previous section has about 160 lines. As the use of our hardware modules increases and the program volume increases, we often have to write the program into multiple files to facilitate code writing, maintenance and transplantation. For example, for this LCD scrolling program, we can
[Microcontroller]
Intelligent Design of Multi-channel Data Acquisition System Based on ARM9 and μC/OSII
Introduction With the rapid development of IT technology, electronic technology, communication technology, and automatic control technology, high-speed real-time acquisition of industrial field data has become an inevitable link in the development of electronic products and industrial control technology. Aiming
[Microcontroller]
Intelligent Design of Multi-channel Data Acquisition System Based on ARM9 and μC/OSII
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号