FreeRTOS on a S12X based board

Hello, I’ve a S12X based board (freescale MC9S12XEP100) and I want to use an Operating System for my dev. I decide to use freeRTOS with CodeWarrior, download the HCS12_CodeWarrior_banked demo and compile it.
With some modifications this works.
Then I want to configure this software for the MC9S12XEP100 board, and then upload it to the board. There is no simple solution
- it’s not possible to convert the project as it contains many targets,
- opening a new project and copying freeRTOS files in it, doesn’t seem to work due to differences in the CW version used and the version in which the OS has been compiled (prepared). Do you have any suggestions to do this job? Is there a new freeRTOS release compatible with the last CodeWarrior? Thank for you answers

FreeRTOS on a S12X based board

The CodeWarrier version used for the port has not changed since the port was created.  If you want it to target another chip, can you just change the memory map (and maybe the vector table), or are there more differences between the chips? Regards.

FreeRTOS on a S12X based board

I use CodeWarrior in release 5.9.0 build 5294.
I just downloaded the FreeRTOSV6.1.1, go to the HCS12_CodeWarrior_banked directory and double-click on the CodeWarrior Project.  A pop-up windows tell me if I want to use Processor Expert for this project. I click on the ‘yes’ button.
Then I obtain those warning:
The following access path in target “P&E ICD” of project “RTOSDemo.mcp” cannot be found:
{Compiler}binPluginssupportProcessorExpertPESLHCS12 The following access path in target “P&E ICD” of project “RTOSDemo.mcp” cannot be found:
{Compiler}binPluginssupportProcessorExpert The following access path in target “Simulator” of project “RTOSDemo.mcp” cannot be found:
{Compiler}binPluginssupportProcessorExpertPESLHCS12 The following access path in target “Simulator” of project “RTOSDemo.mcp” cannot be found:
{Compiler}binPluginssupportProcessorExpert If I push the ‘make’ button I obtain 96 errors due to error in compiler command line arguments:
Error   : C52: Error in command line ‘-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 -env”GENPATH=C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_banked;C:Documents and Settingsc.chatelainMes
documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedbin;C:Documents and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedprm;C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedcmd;C:Documents and Settingsc.chatelainMes
documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedSources;C:Program FilesFreescaleCWS12v5.1libHC12clib;C:Program
FilesFreescaleCWS12v5.1libHC12csrc;C:Documents and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedCode;C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankeddoc;C:Program FilesFreescaleCWS12v5.1libhc12cinclude;C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedParTest;C:Documents and Settingsc.chatelainMes
documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedserial;C:Documents and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1Source;C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1SourceportableMemMang;C:Documents and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoCommonMinimal;C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1SourceportableCodeWarriorHCS12;C:Documents and Settingsc.chatelainMes
documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedCODE;C:Documents and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedDOC;C:Program
FilesFreescaleCWS12v5.1libHC12cinclude” -env”LIBPATH=C:Program FilesFreescaleCWS12v5.1libHC12cinclude” -env”OBJPATH=C:Documents
and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedbin” -env”TEXTPATH=C:Documents and Settingsc.chatelainMes
documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedbin” -objn=”C:Documents and Settingsc.chatelainMes documentssoftFreeRTOSV6.1.1DemoHCS12_CodeWarrior_bankedRTOSDemo_DataP&E_ICDObjectCodeCpu.C.o”
‘ Error   : Error in command line! Error   : C4202: Invalid pragma OPTION, Invalid Options IO_Map.h line 40   Error   : Compile failed These errors make me feel that there is some differences in software release. If there is another explanation I will be happy to know. Regards.

FreeRTOS on a S12X based board

I receive such error. There are any results?

FreeRTOS on a S12X based board

Finally we suceeded to run FreeRtos on the MC9S12XEP100 board (HCS12X). We made a lot of changes: first to compile FreeRtos for HCS12 component (I made a document in french to explained my change), and later, to compile it, and run it, for HCS12(X) component (there is some changes in memory map, vector table and port.c; CCR register contains 16 bits in HCS12X versus 8 in HSC12).
If you have any question,  I would be pleased to answer.

FreeRTOS on a S12X based board

Please post the code up at http://interactive.freertos.org and the documentation as well even it it is in French. Google translate is my friend.

FreeRTOS on a S12X based board

I am working with the same processor and the OAF port does not seem to work with paging or global memory.  Did you have this same problem?  if so were you able to solve it?

FreeRTOS on a S12X based board

Excuse me for my late answer. I made a document in which I explain how
I procede to make my port. First I tried to compile FREERTOS for the
“MC9S12DP256 banked model”, then using CodeWarrior Processor Expert I
move the code to the MC9S12XEP100 Cpu as explained in the document
that i send to http://interactive.freertos.org..
Good luck! Regards

FreeRTOS on a S12X based board

Thank you very much for your efforts.  I really appreciate you following up!