Exception handling

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Exception handling

2,145件の閲覧回数
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,
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

616件の閲覧回数
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 件の賞賛
返信

616件の閲覧回数
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 件の賞賛
返信