Hi ,
最近在获取函数入口地址的时候,发现一个问题:获取的函数入口地址和实际的函数入口地址不一致(获取的地址比实际地址大1),但根据获取的这个地址跳转如函数,功能是正常的。想咨询下是什么原因会导致这个现象。具体如下图:
解決済! 解決策の投稿を見る。
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
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
Hi Daniel,
Thanks Very much!