When debug MPC5748G,an exception occurs after calling rand ()

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

When debug MPC5748G,an exception occurs after calling rand ()

1,057件の閲覧回数
chunchuncc
Contributor I

Using compiler powerpc-eabivle_4.9.2, test two times,
The first test calls rand () OK, and the second test adds code based on the first code, adding RAM and ROM, but an exception occurs when the second test calls rand ()

For the first test, the map files generated with code are as follows

pastedImage_1.png

For the second test, the map files generated with code are as follows

pastedImage_2.png

The two tests debugged the same Disassembly, but after the second test executed <e_lwz R7, -16124 (R9) >, R7 became -1, and then the <e_or2i r632557> was executed, and the exception <exception_IVOR1> was thrown

pastedImage_4.png

0 件の賞賛
返信
2 返答(返信)

842件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please share your project? I need to check this on my side. Which version of S32 Design Studio you use?

Regards,

Martin

0 件の賞賛
返信

842件の閲覧回数
chunchuncc
Contributor I

Thank you for your reply,the version of S32 Design Studio is V1.1,I'm sorry, the project is too big to share. But I found that in the second test, e_lwz, R7, -16124 (R9), -16124 is an incorrect value. How does this value come from?

0 件の賞賛
返信