Part Number: TMS320C6457
Tool/software: Code Composer Studio
Hello to all developer,
I have an issue with my application which runs on a TMS320C6457 with DSPBIOS 5.33.06 and compiler v. 6.1.20. It seems that the scheduler of task, swi and hwi sometimes is not doing the right thing.
Probably I'm missing something and doing something wrong even if I vae checked the constraints an limitations about calls of SWI_post of HWI_disable() HWI_restore() and so on...
I have seen (tracing with log messages) in some cases that if I post an SWI from a HWI service routine then, instead of having the SWI running after the HWI completion, it starts before it is completed.
Just to explain what I'm observing is:
HWI start --> SWI_post --> SWI starts ---> SWI ends --> HWI resuming --> HWI ends
instead of what I expected:
HWI start --> SWI_post --> HWI ends --> SWI starts ---> SWI ends
This behaviour comes out after application is running while executing a repetitive test. When it starts to fail then I can observe it in many HWI-SWI post cases...
I know that these few informations are not so much to have some answer... anyway perhaps someone has experienced similar problems... I can say that I have inspected my code to see if I was doing some illegal
call (for example any SWI_post when interrupts are disabled or any HWI_disable not followed by HWI_restore(oldcsr)) but I can't find anything wrong.
Can you help me?