共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 跳转至页
回复
有奖活动 | |
---|---|
“我踩过的那些坑”主题活动——第002期 | |
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |