CCS v5.40
ControlSuite v3.21
Compiler version TI 6.1.3
SYSBIOS v6.35.3.47
XDCTools v3.25.2.70
Device : TMS320F28069
Attempting to create a HWI targeting one of the User-Defined Traps. In particular, I am targeting USER1 which has a vector ID = 20. The SYSBIOS configuration tool gives me the following error when attempting to do this.
Error (2 items)
intNum = 20 can't be assigned to the dispatcher
Vector ID = 20 is not a valid vector ID
The reason I want to create a HWI for this user-defined trap is to use a methodology described in this app note for creating a hybrid system. I have a need (my customer) for a very low latency interrupt processing, but yet still utilize the scheduler and other services of SYSBIOS.
I plan to plug a hardware interrupt service routine directly, using Hwi_plug(), for the low latency processing. Within this hardware ISR, it will then determine communication is required to the rest of the SYSBIOS system. Since SYSBIOS calls can not be made via hardware ISRs using Hwi_plug(), my intention was to signal a user-defined trap. The intention was for this user-defined trap to utilize the HWI dispatcher and therefore can post a semaphore to a task for continued processing.
However, it appears the XCONF will not allow me to target a vector ID 16 < x <31. I see the code in the Hwi.xs that performs this check.
I would like to not cannibalize a PIE vector for this purpose, however, if this is the only work-around, I will.