S32K函数入口地址获取问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K函数入口地址获取问题

Jump to solution
1,416 Views
zhengjianfei1
Contributor III

Hi ,

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

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

1 Solution
1,264 Views
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

View solution in original post

2 Replies
1,265 Views
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,264 Views
zhengjianfei1
Contributor III

Hi Daniel,

   Thanks Very much!

0 Kudos