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
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
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?