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.

HWI context lost : C28x

Other Parts Discussed in Thread: TMS320F28069

Hi,

I have a HWI context problem for which a modified ' Resource Explorer' project is attached.

Execution 6428.pie_TMS320F28069.zip transfers to HWI ISR properly. But after exiting ISR , execution branches off randomly.

target: Custom board with F28069. (Board works perfectly with DSP/BIOS5).

CCS6 : 6.1.0.201502111100 , XDC tools:3.31.1.33 , TI-RTOS: 2.12.1.33

I am wondering whether DSP BIOS5 to TI-RTOS switch is really worth the pain?

There are  myriads of issues which need a fix. This switch should be easy, not a fight. 

Thanks

AAH

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/4401.vars.ini

  • Hi AAH,

    I am working on setting up your example in my CCS. Meanwhile I have a couple of questions:

    Does the default example work on your board?

    Comparing the Hwi create in the default example cfg with your example cfg, I find the following parameters were set in the default example. Have you tried setting these values for the Hwi in your example?

    hwiParams.enableAck = true;
    hwiParams.maskSetting = Hwi.MaskingOption_BITMASK;
    hwiParams.disableMask = 0x0;
    hwiParams.restoreMask = 0x0;

    Vikram
  • Hello Vikram,

    You are right. Above lines were missing.

    Here's a brief anatomy of the problem:
    1. Going to GCONF - HWI instance settings, a new HWI is added.
    2. You see : Enable at startup ----- checked
    Automatically acknowledges PIE interrupts ---- checked
    3. Assuming that these are the desired settings you leave them untouched.( To your own folly as you discover later.) :)
    4. When file is saved, these settings are not reflected in the cfg script.
    5. One has to uncheck and check these boxes again for the cfg script to be updated.
    6. Same thing goes for masking options. Select the option you don't want first and then select the option you want.
    7. Now HWI works.

    That's why you guys always talk in cfg script lines. :)

    Thanks for your quick reply.
    regards

    AAH