Wind River Diab for PPC on Windows

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
alex

Wind River Diab for PPC on Windows

Post by alex »

Hello together,

I want to build an image for PowerPC-Architecture e200z4, but I'm new on this topic.
I used the tutorial linked here http://erika.tuxfamily.org/wiki/index.p ... (MPC_56xx).
So I created a Demo-Application (task_demo for e200zx) in eclipse with RT-Druid and set my cygwin-path and the path for the windriver-compiler. When I build the project, I get this output on the console:
/cygdrive/c/Users/USER~1/DOWNLO~1/EE_RT-~2.0-J/eclipse/plugins/COMEUE~4.201/ee_files/pkg/cfg/arch/rules_ppc_generic.mk:375: recipe for target `obj/pkg/mcu/freescale_mpc5643l/src/ee_boot.o' failed
make: *** [obj/pkg/mcu/freescale_mpc5643l/src/ee_boot.o] Error 1
Then I realised that the file ee_boot.src in Debug/obj/pkg/mcu/freescale_mpc5643l/src in the project is empty. I think this is the problem and wind river doesn't compile the source, so the file ee_boot.o can't be find.
How is this file generated and how can I fix the problem so the application is build successfully?

Thank you for your help!
Kind regards
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Wind River Diab for PPC on Windows

Post by paolo.gai »

... quite strange. the ee_boot.s is there in the tree;
https://svn.tuxfamily.org/viewvc.cgi/er ... iew=markup

Did you try putting
EEOPT = __USE_CUSTOM_CRT0__;
in the OIL file? that option sets the boot.s to compile in this file:
https://svn.tuxfamily.org/viewvc.cgi/er ... iew=markup

Ciao,

PJ
alex

Re: Wind River Diab for PPC on Windows

Post by alex »

Hello Paolo,

thank you for your quick reply. After I set the EE_OPT, I saw that I configured the license file not correctly. After that it builds without "__USE_CUSTOM_CRT0__", too.
But I got many error (dcc:1112), so I set the compiler parameters "-ei1112" to suppress the errors, described here http://erika.tuxfamily.org/forum/viewto ... ?f=4&t=921.
Now I get this output:
PRE ee_boot.S
ASM ee_boot.S
CC eecfg.c
"C:\\Users\\ARABEN~1\\DOWNLO~1\\EE_RT-~2.0-J\\eclipse\\plugins\\COMEUE~4.201\\ee_files\\pkg\\mcu/freescale_mpc5643l/inc\\MPC5643L.h", line 17117: error (dcc:1221): don't know size of object
/cygdrive/c/Users/ARABEN~1/DOWNLO~1/EE_RT-~2.0-J/eclipse/plugins/COMEUE~4.201/ee_files/pkg/cfg/arch/rules_ppc_generic.mk:397: recipe for target `obj/eecfg.o' failed
"C:\\Users\\ARABEN~1\\DOWNLO~1\\EE_RT-~2.0-J\\eclipse\\plugins\\COMEUE~4.201\\ee_files\\pkg\\mcu/freescale_mpc5643l/inc\\MPC5643L.h", line 17120: error (dcc:1221): don't know size of object
"C:\\Users\\ARABEN~1\\DOWNLO~1\\EE_RT-~2.0-J\\eclipse\\plugins\\COMEUE~4.201\\ee_files\\pkg\\cpu/e200zx/inc/ee_cpu.h", line 280: error (dcc:1111): identifier CPR_PRC0 is not member of struct/union
"C:\\Users\\ARABEN~1\\DOWNLO~1\\EE_RT-~2.0-J\\eclipse\\plugins\\COMEUE~4.201\\ee_files\\pkg\\cpu/e200zx/inc/ee_cpu.h", line 292: error (dcc:1111): identifier CPR_PRC0 is not member of struct/union
make: *** [obj/eecfg.o] Error 1
I didn't try to change the MPC5643L.h yet, because I didn't see anywhere else the error "don't know size of object".
I use Wind River Diab 5.9.3

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

Re: Wind River Diab for PPC on Windows

Post by paolo.gai »

If I'm not wrong, the Leopard was always tested using codewarrior.

It is possible that the register file (MPC5643L.h) has a format no more compatible with newer releases of Diab.

my suggestion... please check:
- if you are able to compile an example with another of the supported PPC MCUs
- then what are the syntax differences in the files, or if you have an updated register file from NXP/ST

Ciao,

PJ
alex

Re: Wind River Diab for PPC on Windows

Post by alex »

Hi,

now I build successfully an elf file for the MPC5674EVB. Thank you very much for your help!
For the MPC56XX there are still the same problems.
Actual I have a ST SPC58 MCU and a valid register file. Do you know wether and how I can build an image for my target processor?

Thanks and best regards
Alex
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Wind River Diab for PPC on Windows

Post by paolo.gai »

Hi Alex,

Sure, you can. The in formation are on the wiki, http://erika.tuxfamily.org/wiki/index.p ... controller

Ciao,

Paolo
Locked