Exception handling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exception handling

1,928 Views
pass
Contributor I
Hi,
i am working on mcf5282, and i am tring to implement the exception for NULL pointer assignment using chip select module,
 
can anybody suggest me what is the other way to implement it,
 
thanx,
Labels (1)
0 Kudos
2 Replies

399 Views
mvincent
Contributor I
I think you can also program the BDM to trap an access to a specific memory location, but this might interfere with BDM debugging.
0 Kudos

399 Views
mvincent
Contributor I
You could move your ram and flash (internal and external) and IO's out of the bottom of the memory space and then assign an unused chip select to zero, with write protect (read-only). You could also do it with an unused ACRx (cache controller). Null-pointer assigment would result in an access error exception (interrupt vector 2) in both cases. If you also want to trap null pointer de-referencing, don't assign any chip select to the zero range.
0 Kudos