AnsweredAssumed Answered

Exception Handler in CCES

Question asked by pfeifferc on Mar 30, 2016
Latest reply on Apr 15, 2016 by Kader.M

The documentation video&slides concerning the migration from SSL1.0 to SSL2.0 mentions

that exception handlers for HW_errors and exception could eliminated in SSL

But I get Exceptions(Data misalignments) in my code and want also handle other exceptions.

What is the correct way to handle this in SSL2.0

 

I use

 

adi_int_InstallHandler (ADI_EXC_DATA_MISALIGNED, ExceptionHandler,NULL,true);

to get the exception for DATA_misaligments - this works.

but how can I setup e.g. an ADI_EXC_INSTR_CPLB_MISS exception

to the same interrupt-handler ??

 

my handler is defined via

 

int ExceptionHandler(uint32_t iid, void* handlerArg)

 

{      int illegalMemAccess;

 

     unsigned short mask;

 

mask=sysreg_read(reg_SEQSTAT) & EX_BITS;

 

if(0x24==mask) illegalMemAcces=1;

 

while(1) {}

 

 

}

 

Outcomes