Codewarrior version

"CodeWarrior™ Development Studio for HC(S)12 Release 3.1".Is this the metrowerks version you are using? If not what is the version you are using

Codewarrior version

According to help->about I am using: "CodeWarrior Development Studio for Motorola HC12 3.1, build 4047.  Upgrade Pack V1.3 for ICD12 (V6.1.12.5023) USB 2.0 and Full Chip Simulation, build 43…" I don’t know why it says "build 43…" at the end as there is plenty of screen room to print the rest of the number. Are you having problems?

Codewarrior version

Is it evaluation version?

Codewarrior version

It is the version that came with the dev kit.  I have a full license for it but have not got the full license installed successfully yet. What is your issue?

Codewarrior version

I am using metrowerks version 1.2 and I am not able to get the demo code compiled on this version. Do you have any idea of what might be the reason for this

Codewarrior version

I know when I opened an old project in my version it did an automatic update to the ‘new’ project format.  Maybe this is your problem. Is it that you cannot open the project, or that once the project is open it will not compiler.  If the latter then what error do you get?

Codewarrior version

"#define __asm__(x)                     __asm(x)" At this step it is giving an error identifier expected

Codewarrior version

It would have been helpful if your first post had given this information.  Also, which file is this in?  I cannot find this line anywhere in the FreeRTOS download or in my CodeWarrior installation.

Codewarrior version

It was in portmacro.h of the unsupported version of demo app for MC9S12DP256B

Codewarrior version

I have not tried that version with WIWIRE defined.  Can you build the new supported version?

Codewarrior version

I compiled the supported version with metrowerks code warrior 1.2 and have encounterd the following errors. Can you comment on this errors. Error   : Error in command line: -OnCstVar -OnPMNC -Or -TD4LD4LLD4 -WmsgSd1420 -WmsgSd4001 -WmsgSd4002 -WmsgSd4301 -WmsgSd5703 -WmsgSd5904 -WmsgSd5905 -WmsgSd5909 -WmsgSd5917 -WmsgSd12053 -WmsgSd12056 "C:Documents and SettingstestDesktopmuralidharV3.1.1FreeRTOSDemoHCS12_CodeWarrior_bankedSourcesdatapage.c" -objn="C:Documents and SettingstestDesktopmuralidharV3.1.1FreeRTOSDemoHCS12_CodeWarrior_bankedRTOSDemo_DataP&E_ICDObjectCodedatapage.c.o" Error   : Error in command line! Error   : Error in command line: -OnCstVar -OnPMNC -Or -TD4LD4LLD4 -WmsgSd1420 -WmsgSd4001 -WmsgSd4002 -WmsgSd4301 -WmsgSd5703 -WmsgSd5904 -WmsgSd5905 -WmsgSd5909 -WmsgSd5917 -WmsgSd12053 -WmsgSd12056 "C:Documents and SettingstestDesktopmuralidharV3.1.1FreeRTOSDemoHCS12_CodeWarrior_bankedSourcesStart12.c" -objn="C:Documents and SettingstestDesktopmuralidharV3.1.1FreeRTOSDemoHCS12_CodeWarrior_bankedRTOSDemo_DataP&E_ICDObjectCodeStart12.c.o" Error   : Error in command line! Could not find or load the file "ansibi.lib" for target "P&E ICD" for project "RTOSDemo.mcp".

Codewarrior version

I tried compiling here with spaces in the path and it worked fine, so that is not the problem. Unfortunately the error message does not say which compiler option it is objecting to.  I cannot find a version change history from a quick scan of the Metroworks WEB site to see which may have been introduced between the verisons.  Maybe you could contact their technical support? The version of CodeWarrior I had did not seem to include support for the P&E USB BDM interface as supplied.  To support it I had to install a service pack which came on a separate CD.  The service pack is also available for download from the Metroworks site. 

Codewarrior version

For compiling the supported version of HCS12, I changed the command line arguments of the compiler target settings. Will this affect the functionality of the application?

Codewarrior version

Any clues as to what you changed?

Codewarrior version

-BfaGapLimitBits0 -Cf -D_HCS12 -DHCS12_CODE_WARRIOR -D__NO_FLOAT__ -I. -I..\..SourceportableCodeWarriorHCS12 -I..Commoninclude -I..\..Sourceinclude -Mb -Os -Ou -Of -Oi -OiLib=a -OnB=abl -OnCstVar -OnPMNC -Or -TD4LD4LLD4 -WmsgSd1420 -WmsgSd4001 -WmsgSd4002 -WmsgSd4301 -WmsgSd5703 -WmsgSd5904 -WmsgSd5905 -WmsgSd5909 -WmsgSd5917 -WmsgSd12053 -WmsgSd12056 The above are the compiler settings for the build ver3.1.1 I changed the above settings with the below one -BfaGapLimitBits0 -DXTAL_FREQ=16000000UL -Lasm=.lst -Lasmc= -Mb -WmsgSd1420 -WmsgSd4002 -WmsgSd12056

Codewarrior version

You need the -DHCS12_CODE_WARRIOR and the include paths.  Not sure what the -DXTAL_FREQ is doing – presumably this is required for your code. Other than this it is probably ok – you might get some warning messages that can be ignored..