Other Parts Discussed in Thread: TM4C1294NCPDT
Tool/software: TI C/C++ Compiler
Hello,
Following points not getting for Cortex M4
1>Not having information in Cortex M4 user guide regarding, how to handle Exception Handler/ Trap with Null pointer
2>In Configuration and Control Register (0xE000ED14) write value 0x10 so that it should hits the exception for divide by zero. I tried the following scenario but not getting exception
Take local variable having any positive value, divide that value with zero. to compile the code use ti-cgt-arm_5.2.5 compiler.
code generated In assembly language without SDIV or UDIV instruction. Generated code given below.
159 GucNullcheck = GucNullcheck/0;
$C$L9:
83f04474: 495C ldr r1, [pc, #0x170]
83f04476: 4A5C ldr r2, [pc, #0x170]
83f04478: 2000 movs r0, #0
83f0447a: 8809 ldrh r1, [r1]
83f0447c: 8010 strh r0, [r2]
Please help for getting exception for the above mentioned scenario.
Thanks,
Harshalkumar Shinde.