Errors met wile using RT-Druid for a Tricode Demo!

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
findfrienda
Newbie
Posts: 28
Joined: Mon Dec 03, 2012 3:01 am

Errors met wile using RT-Druid for a Tricode Demo!

Post by findfrienda » Wed Dec 12, 2012 8:33 am

Dear all, I met a problem that I try find the reason, but without result. So, list here and ask for help!

When I create a demo based on Tricore.

1.Problem description:
I wrote a demo with RT-Druid, everything is ok, and I set the Cygwn path and other Environment Variables. The code generation step is ok but when I compile the generated codes, errors occured. Also, I read the wiki page Nicola and Paolo provided, but I still fix the problem. So ,list here,maybe it's useful for other friends.

2.My Environment:
1). PC Environment: Windows XP;
2). Cygwin Path: C:\Cygwin
3). Erika Codes Path: C:\ERIKA\ee_base
4). RT-Druid Path: C:\ERIKA\EE_RT-Druid-2.0.0-juno-win32
5). Tricore's toolchains:C:\TriCoreTools\HIGHTEC\TRICORE\bin

3.Steps to create the demo with RT-Druid:
1).Create a new Project: File|New|RT-Druid Oil and C/C++ Project
2).Name and choose toolchain: Toolchains choose "-- Other Toolchain --"
3).Using templates: -tricore|base|Isr

4.Set Project Properities:
1).Set "Erika Files Location":
Windows|Preferences|Erika Files Location;
Enable project specific settings|Manual: C:\ERIKA\ee_base
2).Set "Cygwin paths":
Windows|Preferences|RT-Druid|Cygwin paths: C:\Cygwin

5.Compiling:
When I compile, the code can be generated successfuly; But, the compiling occured a error as the following info displayed in the console:

Code: Select all

    15:27:08 **** Build of configuration Default for project Test1 ****
"C:\\ERIKA\\EE_RT-Druid-2.0.0-juno-win32\\eclipse\\Project\\Test1\\Debug\\make_launcher.bat" all 
C:\cygwin\bin\bash found!
cygwin warning:
  MS-DOS style path detected: C:\ERIKA\EE_RT-Druid-2.0.0-juno-win32\eclipse\Project\Test1\Debug
  Preferred POSIX equivalent is: /cygdrive/c/ERIKA/EE_RT-Druid-2.0.0-juno-win32/eclipse/Project/Test1/Debug
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
cygpath: cannot create short name of `cygpath
makefile:102: /pkg/cfg/rules.mk: No such file or directory
C:\TriCoreTools\HIGHTEC\TRICORE\bin\make.exe: *** No rule to make target `/pkg/cfg/rules.mk'.  Stop.

15:27:09 Build Finished (took 1s.406ms)
Can someone give some help?

If a step-by-step example to build a app, my god, it'll be very,very... exciting!!!!!

Thanks!

nicola.serreli
Jr. Member
Posts: 68
Joined: Mon Aug 02, 2010 10:11 am

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by nicola.serreli » Wed Dec 12, 2012 9:39 am

Hi,

please, can you post the code of the generated makefile related to the definition of EEEBASE?
You should have, at least, something like:

Code: Select all

EEBASE := $(shell cygpath `cygpath -ms 'C:\RT-Druid\plugins\com.eu.evidence.ee_2.0.0.20121116_2002\ee_files'`)
Please note that the code generated by latest versions of RT-Druid should check against empty values of ERIKA_FILES.

You can check the version of your plugins through eclipse interface (help->info) or directly looking at the name of plugins inside eclipse/plugin folder.
The last stable version is 2.0.0.20121108.
This wiki page http://erika.tuxfamily.org/wiki/index.p ... d_RT-Druid provides few hints about how update RT-Druid/Erika plugins.

Regards,
Nicola

findfrienda
Newbie
Posts: 28
Joined: Mon Dec 03, 2012 3:01 am

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by findfrienda » Wed Dec 12, 2012 10:59 am

Thans Nicola,
Just now I update the RT-Druid with the link you provided. The current version is :2.0.0.20121108_2010

Here is the contents of the makefile:

Code: Select all

### Setting Erika's variables:
# ERIKA_FILES= ../../..
# APPBASE = .
# 
# EEOPT =


RTDRUID_CONFIGURATOR_NUMBER:=1277



############################################################################
#
# User options
#
############################################################################
EEOPT += DEBUG
EEOPT += VERBOSE


############################################################################
#
# Automatic options
#
############################################################################
EEOPT += __RTD_CYGWIN__
EEOPT += __TRICORE1__
EEOPT += __TRICORE_GNU__
EEOPT += __TC1796__
EEOPT += __TC13__
EEOPT += __INT__
EEOPT += __TRAP__
EEOPT += __FP__
EEOPT += __MONO__
EEOPT += __FP_NO_RESOURCE__
EEOPT += __DISABLE_EEOPT_DEFINES__


############################################################################
#
# Erika base directory
#
############################################################################
ifdef ERIKA_FILES
ifdef EEBASE
    $(warning EEBASE is set, but it has been overridden by ERIKA_FILES)
endif
EEBASE := $(shell cygpath `cygpath -ms '${ERIKA_FILES}'`)

else # ERIKA_FILES

ifndef EEBASE
        EEBASE := $(shell cygpath `cygpath -ms 'C:\ERIKA\ee_base'`)
else
        $(warning The usage of EEBASE is deprecated. Please use ERIKA_FILES)
endif
endif # ERIKA_FILES
# ERIKA_FILES has fulfilled its role. Make sure it's not used inside Erika makefiles
ERIKA_FILES :=
$(info Using erika files in $(EEBASE))


############################################################################
#
# Tricore
#
############################################################################
export PLATFORM := CYGWIN

APPBASE := ..
OUTBASE := Debug

TRICORE1_MODEL  := tc1796
TRICORE1_GCCDIR := $(realpath $(shell dirname $(shell which tricore-gcc))/../)

############################################################################
#
# Flags
#
############################################################################
CFLAGS  += 
ASFLAGS += 
LDFLAGS += 
LDDEPS  += 
LIBS    += 



############################################################################
#
# Sources
#
############################################################################
APP_SRCS += eecfg.c $(OUTPUT_DIR)/ee_hndlr.S code.c


############################################################################
#
# end
#
############################################################################
include $(EEBASE)/pkg/cfg/rules.mk
And, here is the error info:

Code: Select all

17:52:35 **** Build of configuration Default for project TestNew ****
"C:\\ERIKA\\EE_RT-Druid-2.0.0-juno-win32\\eclipse\\Project\\TestNew\\Debug\\make_launcher.bat" all 
C:\cygwin\bin\bash found!
cygpath: cannot create short name of `cygpath
makefile:102: /pkg/cfg/rules.mk: No such file or directory
C:\TriCoreTools\HIGHTEC\TRICORE\bin\make.exe: *** No rule to make target `/pkg/cfg/rules.mk'.  Stop.

17:52:38 Build Finished (took 2s.766ms)
Thanks for your help!!!!!

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

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by paolo.gai » Wed Dec 12, 2012 11:16 am

It seems you are calling the make.exe provided by highTec, and not the Cygwin makefile.

The makefile produced by RT-Druid is meant to be used under cygwin. Plea<se check your environment variables...

PJ

findfrienda
Newbie
Posts: 28
Joined: Mon Dec 03, 2012 3:01 am

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by findfrienda » Wed Dec 12, 2012 12:29 pm

While, in the Project Property 's window, I changd the toochain and Current builder in the Tool Chain Editor as below:
Current toolchain : Cywin GCC
Current builder: Gnu Make Builder

When I build the project, the console output is:

Code: Select all

19:23:46 **** Incremental Build of configuration Default for project TestNew ****
Info: Configuration "Default" uses tool-chain "Cygwin GCC" that is unsupported on this system, attempting to build anyway.
make all 
'Building file: ../Debug/ee_hndlr.S'
'Invoking: GCC Assembler'
as  -o "Debug/ee_hndlr.o" "../Debug/ee_hndlr.S"
'as' isn't an internel or external command to run. 
C:\TriCoreTools\HIGHTEC\TRICORE\bin\make.exe: *** [Debug/ee_hndlr.o] Error 1

19:23:46 Build Finished (took 297ms)
So, I was doubted: We can't compile Tricore project under RT-Druid on windows PC?

....

findfrienda
Newbie
Posts: 28
Joined: Mon Dec 03, 2012 3:01 am

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by findfrienda » Wed Dec 12, 2012 12:53 pm

Is our Erika and RT-Druid still in developing and improving?

If yes, I wantta join this team. Last week I tried the IRC, but it faild: can't connect to server.

Is there mail list or some other communication tool? :)

Maybe our RT-Druid needs improvement. When I use the FreeRTOS, there is little difficuly to port the os on Tricode and its demo are ok! :)

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

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by paolo.gai » Wed Dec 12, 2012 6:02 pm

Hi!

ERIKA is in continuous development, just look at the SVN logs... We also just obtained the OSEK/VDX certification... You are welcome to join the development effort, and if you want you can send patches... (over time you can also get the SVNaccess...)

The community gets free support on the Forum, where we try to answer the questions which arrive as best as we can (like we did with you...). On the other hand, many companies directly buy the supports from companies (it happened with Evidence, but also with other companies such as Pebble Bay).

The Tricore port has been contributed by Univ. of Dortmund some time ago, and it stayed there. As long as I know everything should compile fine, but we'll be able to check it again in 1-2 days. The regression tests we currently perform in Evidence does not include yet the Tricore platform.

Ciao,

PJ

findfrienda
Newbie
Posts: 28
Joined: Mon Dec 03, 2012 3:01 am

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by findfrienda » Thu Dec 13, 2012 2:37 am

Thanaks!

I asked some other developers who have experience on Erika about the RT-Druid, they said, they didn't use it because it's not easy to use.
Now, Erika is the only OSEK certified free rtos.

So, I wish Erika becomes more and more stronger and RT-Druid becomes more easier to use!!! :)

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

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by paolo.gai » Fri Dec 14, 2012 10:46 am

Hi!

Yes, It's true we are currently the only open-source OSEK/VDX kernel available :-)

About the difficulty to use it. I agree that in some situations it's not easy to use, but we always thought it was due to the OIL file, which is not common in other open-source systems.

IOn any case we are trying to improve as much as we can...

PJ

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

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by paolo.gai » Fri Dec 14, 2012 11:00 am

Hi,

I can confirm that the Tricore porting is no more compiling. The Tricore porting was donated by university of Dortmund, but due to the lack of the compiler license in Evidence we have never been able to prepare the regression tests described in the Wiki.

For that reason, as the code evolved a lot during the last months, it is likely that the compilation broke (but noone reported it so far). We are likely going to fix everything likely just after the Christmas break.

PJ

findfrienda
Newbie
Posts: 28
Joined: Mon Dec 03, 2012 3:01 am

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by findfrienda » Sun Dec 16, 2012 8:57 am

Thanks!

Now, I have abandon the RT-Druid, and try to running the demo manually! :)

I spend 3 days on how to use the RT-Druid, but not successfully...

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

Re: Errors met wile using RT-Druid for a Tricode Demo!

Post by paolo.gai » Tue Jan 15, 2013 10:54 am

Hi,

We fixed back teh compilation of the basic examples for Tricore. You can find them in the latest plugins (the ones you install using the automatic Eclipse updates).

Cheers,

PJ

Post Reply