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.

TMS320F28335: (eZDSP tms320f28335) Unplugged interrupt flagged: intr# 37

Part Number: TMS320F28335
Other Parts Discussed in Thread: SYSBIOS

Hi,

I've worked with the tms320f28335 before and had it functional on another development board from TI. I recently got hold of a eZDSP board, switched the needed the configuration, and gutted what I believed to be all the unnecessary initializations, functions, and code in general. The device flashes properly but within a few ms of running I get the following error:

Stepping through the code in Code Composer I am able to get through iterations of the ADC output registers being populated with a value (incorrect value, but an issue for another forum). I am unable to pinpoint where the code suddenly breaks. I get this issue when I press play and let the program execute by itself without me stepping through. I've been stuck for quite some time now so any help would be appreciated.

Thanks,

Marty

  • Marty,

    Which version of SYSBIOS are you using?

    If this is a CCS project, can you share it?

    If not, can you share the .cfg file you're using?

    Is interrupt 37 one of the interrupts your app is using?

    In your main() function, are you calling BIOS_start()?

    Alan

  • 1) I'm not quite sure which version of SYSBIOS I am using. I have gone forward with the standard setup for SYSBIOS and CCS. However, this project I am working on was exported from a previous version of CCS and potentialy SYSBIOS. How would I go about finding the version ?


    2) It is a CCS project and I am attaching the entire zipped folder.  

    3) I have separately also attached the .cfg file. 

    4) To my knowledge I do not think interrupt 37 is one of the interrupts I am using. 

    5) My main function, under user_testezDSP.c, is calling BIOS_start() in line 245.

    Any input and advice would be appreciated. Thanks.

    Entire Project Attachment:

    ezDSPF28335.zip

    Config File Only:

    testezDSP.cfg

  • According to trhe 28335 data sheet, interrupt #37 is associated with the ADC:

    But I don't see a Hwi.create for interrupt 37 in the .cfg file.

    So, I'm thinking the ADC interrupt has been enabled but the vector for interrupt #37 has not been plugged, leading to the unplugged interrupt error.

    Alan

  • Hi Alan,

    How would you recommend fixing this issue ? What would be a good starting point or reference that could lead me in the right direction ? Thanks again for looking into this. 

    - Marty

  • Marty,

    I'm not familiar at all with the ADC in this device so I'm not sure what the ADC ISR should be doing.

    However, since the application appears to be enabling the ADC interrupt, a corresponding Hwi must be added to service the ADC interrupt.

    Add something like this to your project's "testezDSP.cfg" file:

     var adcHwiParams = new Hwi.Params();

     Hwi.create(37, "&ADC_IntHandler", adcHwiParams);

    And you'll have to add the "ADC_IntHandler" ISR function to your C code accordingly and have it do whatever is required to service the ADC interrupt.

    Alan