I have been experimenting with introducing an extra ucos task and I have noticed something strange.
In essence I have taken the simple UDP read/write example from the examples I have got for the MOD54415 module. an it works really well.
Then I have introduced the following line of code:
Code: Select all
OSSimpleTaskCreate(ProcessLineData, MAIN_PRIO - 2 );
Code: Select all
void ProcessLineData(void * pd)
{
while (1)
	{
	if (g_bDataCaptured)
		{
		LED3.set(LED_ON);
		memcpy(g_ulPixelData, g_ulRawPixelData, sizeof(g_ulPixelData));
		LED1.set(LED_OFF);
		LED2.set(LED_OFF);
		LED3.set(LED_OFF);
		g_bDataCaptured = OFF;
		}
	}
}
When I compile and flash the code the serial port does not work any more. I can't send UDP packages I have typed.
If I change the task's priority to, for example, MAIN_PRIO + 1 the serial port works again but for some reason the new task appears not to be called.
Any ideas anyone as to what I am overlooking ?
