共2条
1/1 1 跳转至页
real,view,FIQ 请大侠帮忙解决real view中FIQ中断的问题。
问
用keil的RV编译程序无法进入FIQ中断,我看RV_cc上说用__irq标注FIQ函数可实现FIQ中断可是我用__irq还是不能正确进入FIQ,那位大侠能指点下或者各个示例看看,小弟不胜感谢
答 1:
看看keil的帮助:The following C code implements an empty FIQ_Handler:
__irq void FIQ_Handler (void) {
;
}
In the Startup Code the following modification is required to call this FIQ_Handler:
Vectors LDR PC, Reset_Addr
:
LDR PC, FIQ_Addr ; Instruction at FIQ Vector location
:
PRESERVE8 ; tell linker: stack alignment is 8-byte
IMPORT FIQ_Handler ; use external FIQ_Handler
FIQ_Addr DCD FIQ_Handler ; FIQ Entry point
答 2: 谢谢computer00谢谢computer00,我一直以为改为RV后我没有用正确的函数头标示,也没往启动文件考虑。原来Keil的RV启动文件根本没考虑FIQ的功能,让俺好找呀!严重鄙视一下keil.
__irq void FIQ_Handler (void) {
;
}
In the Startup Code the following modification is required to call this FIQ_Handler:
Vectors LDR PC, Reset_Addr
:
LDR PC, FIQ_Addr ; Instruction at FIQ Vector location
:
PRESERVE8 ; tell linker: stack alignment is 8-byte
IMPORT FIQ_Handler ; use external FIQ_Handler
FIQ_Addr DCD FIQ_Handler ; FIQ Entry point
答 2: 谢谢computer00谢谢computer00,我一直以为改为RV后我没有用正确的函数头标示,也没往启动文件考虑。原来Keil的RV启动文件根本没考虑FIQ的功能,让俺好找呀!严重鄙视一下keil.
共2条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 基于MCP23S17的输入输出功能模块控制被打赏¥20元 | |
| 【S32K3XX】SPD 软件包使用Link文件修改被打赏¥22元 | |
| Switch-Case局部变量定义问题被打赏¥23元 | |
| 基于米尔TIAM62L开发板的串口通信及应用被打赏¥20元 | |
| PCF8574功能模块及其使用被打赏¥20元 | |
| 传感器LSM6DSO及LIS3MDL的功能检测被打赏¥18元 | |
| LPS25HB气压传感器及其检测被打赏¥18元 | |
| HTS221温湿度传感器及其检测被打赏¥18元 | |
| 【S32K3XX】HSE FW 版本更新被打赏¥21元 | |
| 基于ArduinoUNO开发板的AT24C02读写测试被打赏¥16元 | |
我要赚赏金
