棋子 · 2020年02月10日

Invalid state usage fault( INVSTATE ) for arm instruction

Hi,

We tried to execute a small assembly instruction function in .asm file for M7 core controller in GHS.

But it initiated a hard fault exception with INVSTATE (Invalid state usage fault) bit is set when code started to execute the first instruction of assembly function in arm file.

When this same assembly instruction function added as part of C file by using _asm assembler, this assembly routine executed well without any issues.

Why this happen?

Regards,

Anoop.MM

1 个回答 得票排序 · 时间排序
极术小姐姐 · 2020年02月10日

Check if the asm file is in Thumb mode not Arm mode.

你的回答
关注数
1
收藏数
0
浏览数
2428
极术小姐姐
极术微信服务号
关注极术微信号
实时接收点赞提醒和评论通知
安谋科技学堂公众号
关注安谋科技学堂
实时获取安谋科技及 Arm 教学资源
安谋科技招聘公众号
关注安谋科技招聘
实时获取安谋科技中国职位信息