FreeRTOS Support Archive

The FreeRTOS support forum can be used for active support both from Amazon Web Services
and the community. In return for using our software for
free, we request you play fair and do your bit to help others! Sign up
to receive notifications of new support topics then help where you can.

This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.

Problems with Freescale - FreeRTOS HCS12X

Posted by *anonymous on December 7, 2011

Hello !

I'm new here. Sorry about my poor English - I'm German.
I have to startup very quickly in my new Job with FreeRTOS and the example doesn't work. I use Codewarrior and I use the MC9S12X512MLM. So I found here a special demo only for HCS12X ( A zip-File with OAF at the end). I noticed that the bug shown on the homepage was not programmed so I've added the 3 lines as described. In this demo are the LEDs and a serial bus. We have no serial communication in our application and therefore I can't use it. So I deleted only the task in this demo for the serial communication. When I compiling the demo all seems O.K. but the LEDs doesn't work. So I programmed an own function for the LEDs that I tested before. In the main.c of the demo you can vary the time of the frequency of the LEDs. When all it's fine then the LEDs should "blinking" with 1sec (1000) . If there is something going wrong then the LEDs should blink with 500ms (500).
I can change both time-values but nothing happens - no blinking - nothing. O.K. maybe when the program is working then maybe this values are also working. I have the Port (P) because in our Application we have this Port for LEDs. I configured the Port with ProcessorExpert. Then I thought I set a breakpoint in my function for the LEDs directly where I set the value. When I'm starting the program it seems that this breakpoint will never be reached and so the program stops ( I don't now why ).
I've read the instructions on the Homepage and I tried so many things but it seems hopeless.
Is there anybody who can give me a hand ?

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.

Regards Uli

Problems with Freescale - FreeRTOS HCS12X

Posted by *anonymous on December 12, 2011

Hello Richard !

Can you give me some Infos about my last reply ?

Regards Uli

Problems with Freescale - FreeRTOS HCS12X

Posted by *anonymous on December 19, 2011

Hello !

Cause we can't get started the demo HCS12_HCS12X_CodeWarrior_OAF.zip on MC9S12XF512MLM the Thread can be cancelled.