“So I found here a special demo only for HCS12X ( A zip-File with OAF at the end).”
Where did you find the demo?
“I noticed that the bug shown on the homepage was not programmed so I've added the 3 lines as described”
Which bug, and on which web page is it described?
Hello Richard !
“Where did you find the demo?”
. I found the program in http://forums.freescale.com/t5/16-Bit-Microcontrollers/FreeRTOS-and-HCS12X/m-p/75001#M9200
But I think this program is also here in the forum. The name is HCS12_HCS12X_CodeWarrior_OAF.zip
“Which bug, and on which web page is it described?”
Sorry, it is not a bug it is the Solution - I think. This is found here(please sroll down - red Comments):http://www.freertos.org/index.html?http://www.freertos.org/a00104.html
Cause I think my changes was to much and so the program isn't running anymore, I've started again:
I installed the normal demo from FreeRTOS Homepage from the following link:http://www.freertos.org/index.html?http://www.freertos.org/FreeRTOS-quick-start-guide.html
and then I copied the contents of HCS12_HCS12X_CodeWarrior_OAF.zip according to the Direcroty-structure in the normal demo. This ...OAF.zip has another Mikrocontroller so I changed it with the ProcessorExpert to the MC9S12XF512.
Cause the demo...OAF.zip uses another Port ( Port A) I changed it to PortP also with ProcessorExpert. In our Application we use Port P2-P5 for the LEDs.
Now I tried to compile the demo but the Null-Pointer was not declared - so I added #define NULL ((void *) 0)
in some header files.
The second Error was that the Timer TFLG1 was not found so I changed ECT_TCO to TCO in ProcessorExpert.
Now all seems O.K. and I have no Errors. Now I set a breakpoint in ParTest.c exact on Byte1_NegBit( uxLED );
But this breakpoint seems never to be reached. I can't use the serial bus, but i let it inside the program.