Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Problems with Freescale - FreeRTOS HCS12X

Posted by Uli B. 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 ?

Thank you Uli

RE: Problems with Freescale - FreeRTOS HCS12X

Posted by Richard on December 7, 2011
“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?

Regards.

RE: Problems with Freescale - FreeRTOS HCS12X

Posted by Uli B. on December 8, 2011
Hello Richard !

Thank you.
“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.

Regards Uli

RE: Problems with Freescale - FreeRTOS HCS12X

Posted by Uli B. on December 12, 2011
Hello Richard !

Can you give me some Infos about my last reply ?

Regards Uli

RE: Problems with Freescale - FreeRTOS HCS12X

Posted by Uli B. 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.

Regards Uli


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists