S32K函数入口地址获取问题

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K函数入口地址获取问题

跳至解决方案
1,916 次查看
zhengjianfei1
Contributor III

Hi ,

   最近在获取函数入口地址的时候,发现一个问题:获取的函数入口地址和实际的函数入口地址不一致(获取的地址比实际地址大1),但根据获取的这个地址跳转如函数,功能是正常的。想咨询下是什么原因会导致这个现象。具体如下图:

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

1 解答
1,764 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi zhengjianfei@zlgmcu.com,

This is expected as the Cortex M4/M0+ core support Thumb instruction set only.

Please refer to ARM®v7-M Architecture Reference Manual (if you are using S32K14x).
https://static.docs.arm.com/ddi0403/eb/DDI0403E_B_armv7m_arm.pdf

A4.1 About the instruction set
A4.1.1 ARMv7-M and interworking support

“… therefore the value of address bit[0] must be 1 in interworking instructions.”

BR, Daniel

在原帖中查看解决方案

2 回复数
1,765 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi zhengjianfei@zlgmcu.com,

This is expected as the Cortex M4/M0+ core support Thumb instruction set only.

Please refer to ARM®v7-M Architecture Reference Manual (if you are using S32K14x).
https://static.docs.arm.com/ddi0403/eb/DDI0403E_B_armv7m_arm.pdf

A4.1 About the instruction set
A4.1.1 ARMv7-M and interworking support

“… therefore the value of address bit[0] must be 1 in interworking instructions.”

BR, Daniel

1,764 次查看
zhengjianfei1
Contributor III

Hi Daniel,

   Thanks Very much!

0 项奖励
回复