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.

RTOS/MSP432P401R: Program doesn't switch to Task after a bus transfer.

Part Number: MSP432P401R

Tool/software: TI-RTOS

Hello.

I'm having kind of a weird problem here, I'm using the MSP432 Launchpad and the TI-RTOS version 2.16.0.08.

I have modified a project in order to add some code, and now the program doesn't run after it calls a bus transaction, whether it is I2C or SPI. Right after the bus transfer function is called, the program stops running.

I tracked the point where the program freezes and it happens where it switches tasks at the TaskSupportProxy_swap call on the Task_schedule function on Task.c . I guess the problem happens when the program switches from the bus transfer to the task, instead of going from the task to the bus transfer, since the program gets to the bus functions before scheduling.

The weird part happens when I try to execute the original project, in which I knew it would work, and it still gets stuck on the same line. I tried switching MSPs and it still happens, so it isn't a hardware problem.

My question is, why does it happen even on the original project? How can this be solved? Since I had to route some files to CCS for the program to run by steps, could this be a file linking problem?

Thanks in advance

EDIT: As an additional note, this task swap takes place on the SemaphoreP_pend call on the bus transfer function.