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.

Create and configure HWI on SYS/BIOS

Other Parts Discussed in Thread: AM3359, SYSBIOS

Hey,

I have an TMDXICE3359 with  AM3359 µC. I want to build an application with SYS/BIOS and use some HWI for events like ADConversion or a PRU event.

I am new to a topic like this and have no experience with an RTOS.

1. Where is the difference between the Event ID and the Interrupt number for HWI?

2. I create the HWI statically with the GUI, but where should the source code to be written?

3. The Interrupts are enabeld with SYS/BIOS, but I must even set the config bit in the interrupt register, right?

Tjanks for your help.

I am using SYSBIOS 6.33.3.33, CCS5.1.1.031

  • Michael,

    I'm not familiar with your device but I'll try to answer your questions:

    1.  "Event ID" is something unique to the C6000 devices so you don't have to worry about it.  You do need to know the "interrupt number" for creating the Hwi.  Basically each interrupt source is given a unique interrupt line for interrupting the CPU...this is the interrupt number.

    2.  Not quite understanding the question.  When you created the Hwi, whether static or at runtime, you provided a ISR function that is to be executed when that particular interrupt is triggered.  The ISR function is something that you need to provide in a *.c source file which knows what do to for a particular interrupt.

    3.  Typically if created at static time, the interrupt will be enabled.  In your program execution, once BIOS_start() is called, it will enable global interrupts and so as soon as the interrupt is triggered, your ISR should run.  I'm not sure what you mean by "config bit in the interrupt register".  You should not have to set any bits here.

    Hope that helps answer some of your questions.

    Judah

  • Hey Judah,

    the first and the second question is answered, thanks. 

    3. I wanted to know:

    If I have a no- OS Application I must configure the interrups in the interrupt config register of the Controller, but if I use SYSBIOS, must I even do it?

    You say, I must not. I will try it.

    Thanks for your help

  • Michael,

    Typically BIOS will configure/enable or have an option to configure/enable whatever is necessary for the interrupt to be enabled.

    Judah