The following is a lengthy-ish explanation of a problem encountered with a
port to the MSP430F149. There seems to be a problem with an ISR calling
TaskYield() which causes other interrupts to be disabled. If anyone has
encountered something like this would appreciate any pointers.
Am attempting to port FreeRTOS onto the EasyWeb2 dev board from Olimex using
the demo MSP430 port (originally for the MSP430F449) as a base.
The EasyWeb2 has only one LED but does have a 16x2 LCD. Therefore, have
modded the demo apps so that the LED flashing routines will toggle a char
that is to be displayed (there is a new task that periodically redraws the
LCD every 50ms). The single main LED is used by the vErrorChecks() routine
to report on the status of the tasks.
So far so good and the program seems to work.
However there is a problem where vErrorChecks() will report that there is a
problem (the LED flashes faster) after the demo routine has been running for
a while. Poking around in the code reveals that the problem is with
What is happening is that after a while the Tx ISR stops working. That is,
characters are not being pulled from the xCharsForTx queue and then sent to
Further poking around reveals that the problem goes away if the call to
TaskYield() within the vRxISR() routine is commented out.
Am a bit of a loss to immediately see why this is a problem, so would
appreciate any pointers that people may have.
Thanks for your time,