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

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

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

1,068 Views
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 Kudos
Reply
2 Replies

853 Views
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 Kudos
Reply

853 Views
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 Kudos
Reply