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

mc9s12c32 , nubie help needed

Posted by Nobody/Anonymous on April 17, 2007
I am trying to get the RTOS working on an mc9s12c32 micro.
Reading the documentation it said it should compile as is with no errors.
If I open the "HCS12_CodeWarrior_small" demo application it compiles with tons of errors. It was over 100 but I've got it down to 26 with 138 warnings. This can't be right.
Is there a simple app with only the bare minimum of files.
This is very frustrating :0(

Cheers
Rob

RE: mc9s12c32 , nubie help needed

Posted by Nobody/Anonymous on April 17, 2007
Update :

I have now built a new project using only tasks.c , queue.c and list.c.
After including all the header files required (quite a few) I now get the error:
ERROR :C2450 : Expected: ;
portable.h line 208.

Line 208 does have a semi colon , so I am assuming the error is actually above this somewhere. This file has not been modified in any way.

There are also 37 "Undefined macro" warnings in the same file. Any ideas?

RE: mc9s12c32 , nubie help needed

Posted by Richard on April 17, 2007
The port was created a little while ago and I suspect you are seeing something to do with a compiler version mismatch. Which version are you using? From the looks of it I have CW12 V3.1.

What were the original warnings/errors you got?

Do you have HCS12_CODE_WARRIOR defined in your project?

Regards.

RE: mc9s12c32 , nubie help needed

Posted by Nobody/Anonymous on April 17, 2007
Hi there.
I am using CW12 V4.5

Where do you define "HCS12_CODE_WARRIOR "

I managed to get it to compile if I did not use the "processor expert" when I first opened the project.(it askes if you want to enable procesor expert) If I then try and add a processor with processor expert I get all sorts of memory errors
in the processor bean :0(

RE: mc9s12c32 , nubie help needed

Posted by Richard on April 17, 2007
If it is compiling now then you must have it set. For reference, if you go into the project settings (maybe Softec settings depending on the project you are using), select the Compiler For HC12 option, then look at the command line options being used you should see -DHCS12_CODE_WARRIOR as one of the options.

As I recall, if you open up the processor expert, it overwrites some of the setup files (interrupt vectors in particular) in exactly the way that you don't want it to.

Regards.

RE: mc9s12c32 , nubie help needed

Posted by Nobody/Anonymous on April 17, 2007
You need to keep the processor expert files read only otherwise opening the expert will really screw you up.

RE: mc9s12c32 , nubie help needed

Posted by Nobody/Anonymous on April 17, 2007
Ok , I'm new to this so forgive my ignorance.
If I can't use the processor expert , how am I going to "add" a processor to my application. At the moment I can get it
to compile(still with over 100 warnings however) , but cant do anything with it , except run the simulator.

RE: mc9s12c32 , nubie help needed

Posted by Nobody/Anonymous on April 17, 2007
Ok , I've got it to compile by removing any processor expert cpu's.
I'm still getting these warning messages:
Only showing 2 , there are more the same.


Warning : C4443: Undefined Macro '__GNUC__' is taken as 0
portable.h line 187

Warning : C4443: Undefined Macro '__AVR32_UC3A0256__' is taken as 0
portable.h line 187

I have a P&E micro usb multilink interface. How do I get to use this and not the Softec target?
Do the files that are included in the project have all the code needed to get the processor up and running?
Where do I set up the Pll?

Cheers
Rob


[ 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