AnsweredAssumed Answered

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

Question asked by chunchun cc on Sep 5, 2017
Latest reply on Sep 6, 2017 by chunchun cc

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

 

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

 

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

 

 

Outcomes