This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2432: Generate divide by 0 fault

Part Number: AM2432

Hello, 

Is there a compiler setting that I could enable to generate a divide by 0 abort exception?  

I don't see an exception is generated by default with the following code. 


uint32_t x = 1000;
uint32_t y = 0;
uint32_t z = 0;
z = x / y;

Thanks,

Hong