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.

RM46L852: Calculated value using FPU was corrupted, the root cause seems to be ISR

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Hi there,

I keep debugging my code for RM46L852 to drive inverter circuit.

Compiler is CCS version: 10.2.0.00009 and io code generator is HALCoGen version :04.07.01.

I use RTOS generated by HALCoGen.

My code has 2 tasks, task A and task B, for convenience I called.

Sometimes a calculated value with FPU was corrupted in task A, I was aware of.

I was not sure what happened, so I put a calculation code (assisted by FPU) between task B interrupt disable and enable.

It seems to be resoled, no corruption occurred.

task A : schedule by RTI , every 10ms (vTaskDelay)

task B: schedule by etpwm , every 100us (whole code to work is deferred using binary semaphore)
Data exchange between task A and task B is done by queue (RTOS).

I think, I do not set correct parameter. But I have not found which parameter should be changed, yet.

Does somebody have any suggestion or advice ?

Thanks.

Yamai