Installation issues

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

dafru

Re: Installation issues

Post by dafru »

I'm using Codewarrior IDE Version 5.9.0 Build 3510.

The Command_Line_Tools/mwcceppc is in the folder C:\Freescale\PowerPC_EABI_Tools\Command_Line_Tools.
There is no folder called PA_Tools.

Thank you very much for your help
e.guidieri

Re: Installation issues

Post by e.guidieri »

Did you make it work? If yes, nice to hear that.

In any case we should provide support even for old Classic IDE, because Freescale said that it would have been discontinued, but they didn't say when :).
Probably we will introduce a new EEOPT=PPC_CW_CLASSIC_IDE, to switch beetween the two folder layouts.
dafru

Re: Installation issues

Post by dafru »

I had to add the folder PA_Tools manually and copied the Command_Line_Tools folder in it. That works, but I've some errors now (as shown below). I'll set RT-Druid up new tomorrow, because of changing my system. Maybe a new clean system will work. I'll let you know if I find some issues.

Code: Select all

16:30:36 **** Incremental Build of configuration Default for project mytest ****
"C:\\Users\\User\\workspace\\mytest\\Debug\\make_launcher.bat" all 
C:\cygwin\bin\bash found!
Using erika files in /cygdrive/c/eclipse/plugins/CO2D8E~1.201/ee_files
CC    ee_boot_asm.c
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50: the file 'limits.h' cannot be opened
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50: (included from:
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_cpu_os.h:67
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_cpu.h:53
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_internal.h:50
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\ee_internal.h:113
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:50:      C:\Users\Fruhner\WORKSP~1\mytest\Debug\obj\pkg\mcu\freescale_mpc5668\src\ee_boot_asm.c:2)
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59: preprocessor #error directive
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59: #error Unable to define a 8-bit types 
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59: (included from:
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_cpu_os.h:67
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_cpu.h:53
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_internal.h:50
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\ee_internal.h:113
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:59:      C:\Users\Fruhner\WORKSP~1\mytest\Debug\obj\pkg\mcu\freescale_mpc5668\src\ee_boot_asm.c:2)
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79: preprocessor #error directive
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79: #error Unknow/unsupported architecture 
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79: (included from:
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_cpu_os.h:67
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_cpu.h:53
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\e200zx\inc\ee_internal.h:50
C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\cpu\common\inc\ee_types.h:79:      C:\eclipse\plugins\CO2D8E~1.201\ee_files\pkg\ee_internal.h:113
...
I'm new in ERIKA and Codewarrior, so it's kind of difficult struggle for me. :)
stuntman110

Re: Installation issues

Post by stuntman110 »

Hey,
I'm using an RT-Druid environment for my MPC5668G.
I can't use the content assist (Ctrl+Space) in the RT-Druid enviroment?
Does anyone has an idea?

Best Regards

stuntman110
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Installation issues

Post by paolo.gai »

Hi,

The Ctrl-Space should work fine when editing the OIL file... At least this is what we use daily... Could you please be more specific?

Ciao,

PJ
stuntman110

Re: Installation issues

Post by stuntman110 »

Hey Paolo,

thank you for your answer.
I have wrote my own api for the mpc5668G.
I would like to insert the api in the RT-Druid enviroment, at what place I must include the header files? (e.g makefile or Paths and Symbols)
After the insertion, I would like to use the content assist (Ctrl-Space) for my own functions of the api.

The Api should be used in the master.c and in the slave.c.

Best Regards

stuntman110
nicola.serreli

Re: Installation issues

Post by nicola.serreli »

Hello,

It is possible to use the content assist on .c/.h files to see erika functions and types.
Here is a short answer (I'm going to write a wiki page on that).

1)
If you are using an RT-Druid Project, project's properties should have a tab related to Erika sources (see http://erika.tuxfamily.org/wiki/index.p ... n_RT-Druid).
The first step is to enable the link to both include and sources of Erika.

2)
Write your oil file and run a first build, in order to get the eecfg.h file.
This file contains a set of defines that enables the the code in Erika sources related to your system, like the architecture, resources functions and alarms functions (if needed).

3)
Set all include files related to your compiler in the project properties (inside Paths and Symbols).
These files are needed to solve some architecture dependent defines, like primitive types.

doing these changes, content assist should work fine.

Best Regards,
Nicola
stuntman110

Re: Installation issues

Post by stuntman110 »

Hello,

@nicola, thank you for the answer.

I have got more questions about the Erika.

1. How can I use alarms und resources on the mpc5668g system? I can DeclareTask() but I can not DeclareResource()
nicola.serreli wrote:Write your oil file and run a first build, in order to get the eecfg.h file.
This file contains a set of defines that enables the the code in Erika sources related to your system, like the architecture, resources functions and alarms functions (if needed).
2. Currently, Iuse the option:
EE_OPT = "__E200ZX_EXECUTE_FROM_RAM__";
but in the future I would like to write the program into the Flash.
How can I create elf-files for the FLASH?
Are multicore linker scripts for CodeWarrior compiler available, which executables running from FLASH?

Does anyone has an idea?

Best Regards

stuntman
stuntman110

Re: Installation issues

Post by stuntman110 »

Hello,
The first question that I asked yesterday, is answered, because resources are created only in the OIL file.
But my second question is not answered.
Currently, Iuse the option:
EE_OPT = "__E200ZX_EXECUTE_FROM_RAM__";
but in the future I would like to write the program into the Flash.
How can I create elf-files for the FLASH?
Are multicore linker scripts for CodeWarrior compiler available, which executables running from FLASH?
Has anyone an idea?

Best Regards
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Installation issues

Post by paolo.gai »

Hi!

I confirm that the resources are only initialized by the OIL file... DeclareResource is de facto void...

If you remove the EEOPT the code will be compiled to go in flash... we tried it a few times and it always worked.

The multicore images in flash should be created too, but you probably need to have a Lauterbach debugger to flash them. The repository should have a Lauterbach script to do the job. just see at the following directory for more info...

single core:
http://svn.tuxfamily.org/viewvc.cgi/eri ... pc5668/cfg

multicore:
http://svn.tuxfamily.org/viewvc.cgi/eri ... multicore/

Ciao,

PJ
stuntman110

Re: Installation issues

Post by stuntman110 »

Hello,

@paolo, thank for your answer.

I use the "in-circuit debugger ICDPPCNEXUS MPC55xx/MPC56xx" from PE Microcomputer Systems for flashing the image into the RAM. Is it possible without the Lauterbach debugger, but with the ICDPPCNEXUS to load the image into the flash? The debugger is very expensive.
If it is possible, which places in the oil or configuration must be changed?
When I write outside form Erika multicore applications with Codewarrior, I get one image file for both cores and Erika delivers one image file for each core.

Thanks for the help.

Best Regards
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Installation issues

Post by paolo.gai »

Hi,

We only used the Lauterbach debugger for programming the system.

I guess other programmers can be used too, but you will have to write your own scripts for programming the two images...

Paolo
stuntman110

Re: Installation issues

Post by stuntman110 »

Hey,

I have another question, how can I use the hook functions "pretaskhook" and "posttaskhook"?
I have the functions activatet in the file oil,but where must be implemented the functions?

Thanks for the help.

Best Regards
stuntman110

Re: Installation issues

Post by stuntman110 »

in the master.c and slave.c
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Installation issues

Post by paolo.gai »

The must be implemented in teh applciation code as normal functions, with exactly that name.

When a context change will occur, they will be called. However be very careful, as they are called at interrupt disabled!

PJ
Locked