Another point - How many other tasks do you have? The reason I ask is to determine the possibility of the task calling CAN1test
getting interrupted at a point where it should not have been. An easy way to determine can be to raise main_CSP_task
priority.
Thanks.