This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Exceptions

Hi,

Are there any exceptions supported in FVP?

I have tried dirty things like a division by 0 and accessing to 0 address 

volatile int x = 0;
volatile int y = 1;
volatile int *p = 0;
y = y / x;
y = y / *p;
printf("%d \r\n", y);

and FVP goes thru this with no sound.

I am using a modified code from 

https://github.com/Arm-Examples/Hello_V2M-MPS3-SSE-300-FVP

  • The DIVBYZERO fault is configurable and by default off. You can enable it by setting the DIV_0_TRP bit, for example in your program like this:

      SCB->CCR |= SCB_CCR_DIV_0_TRP_Msk ;
    

    And if there valid and accessible memory at address 0x00000000, the access can also valid and does not generate a fault.