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.

BIOS6 Exception handling in-depth discussion

Other Parts Discussed in Thread: SYSBIOS

Hi,

I encountered some problems while upgrade “Exception handler module” from BIOS 5 to

BIOS6, the following is a detailed description:

In BIOS 5, I use the statement below:(ccs3.3,Device:C6487)

bios.HWI.instance("HWI_NMI").fxn=prog.extern("EXC_dispatch_mod")

when an exception happened,it can go to the exception isr “EXC_dispatch_mod” successfully.

That seems confict of the first sentence description in the post below:

http://e2e.ti.com/support/embedded/f/355/p/89509/309979.aspx#309979

 

Then in BIOS 6(ccs4.2,device:C66XX), Refer to the previous posts,when I enable the Exception module in bios,the

Exception work successfully.you can see the post below:

http://e2e.ti.com/support/embedded/f/355/p/144337/524561.aspx#524561

 

Now,my question is:

1.in BIOS6,can I hook the exception isr use HWI module like in bios5? We do not want to use “Exception Module” for saving resources.

2. What is the difference of the useage of NMI between bios5 and bios6?

Regards,

Jimmy

  • Hi Jimmy --

    I don't think I understand your question completely, but I'll try to answer ...

    zhimin hu said:

    1.in BIOS6,can I hook the exception isr use HWI module like in bios5? We do not want to use “Exception Module” for saving resources.

    If you do not want to use the BIOS exception handler you can disable it and plug your own handler.   The BIOS Hwi module enables the BIOS Exception module by default.

    var Hwi = xdc.useModule('ti.sysbios.family.c64p.Hwi');
    Hwi.enableException = false;

    Then you can plug your own exception handler using Hwi.create().

    zhimin hu said:

     

    2. What is the difference of the useage of NMI between bios5 and bios6?

    The BIOS 5 and BIOS 6 handling of NMI and exceptions are very similar.  The BIOS 6.x code taken directly from the BIOS 5.x code.   As you know, exceptions are routed to NMI, and the exception module determines if the source of the interrupt was an NMI, or software exception or a hardware exception.   We provide source code for the exception manager in ti/sybios/family/c64p/Exception.c if you want to review it.

     

    -Karl-