pmoyle111 wrote on Friday, May 03, 2013:
I started to work with FR a while back before being preempted to work on other bugs. When I left it I had LED’s working via the tasks created and all the other stuff in main commented out. I have since gotten back to it and now want to get interrupts working. I have commented most of the other stuff out as below:
xLCDQueue = xQueueCreate( mainLCD_QUEUE_SIZE, sizeof( xLCDMessage ) );
/* Start the standard demo tasks. */
//3 vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
//2 vCreateBlockTimeTasks();
// vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );
//4 vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
//1 vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );
vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );
vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );
First here is what it does:
The xmit endlessly transmits a sequence of upper case letters (as it should). But when I send a char to the RX I get the interrupt but never get into the portTASK_FUNCTION( vComRxTask, pvParameters ) function. For the time being I have commented out the TX half.
I read a long blog on priorities and it looked as if the demo had it backwards with the idle @ 0 and others at 191 andd 255 when you say that for ST the max is 15.
I changed all these to go in reverse order but when I did, then nothing worked and i got stopped at HardFaultException.
Can you take a look and comment on this?
pmoyle