XSLT Transformation for new MCU

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
eugenskt

XSLT Transformation for new MCU

Post by eugenskt »

Hi,

I'm currently porting the mpc5644a. I used the mpc5643l for porting. Now I have wrote a XSLT transformation. I get this warning:

Code: Select all

	
/Test_PPC/conf.oil
Compute configuration's files

WARNING > Unsupported MCU

Check and fill folder /Test_PPC/Debug
	/Test_PPC/Debug/eecfg.c	OK
	/Test_PPC/Debug/eecfg.h	OK
	/Test_PPC/Debug/makefile	OK
	/Test_PPC/Debug/system.orti	OK
Check and fill folder Test_PPC/Debug
	Test_PPC/Debug/make_launcher.bat	OK

There are some Warnings.
In the xsl file I have this code line:

Code: Select all

<xsl:template match="object[@Type='OS']/parameter[@Name='MCU_DATA']/enumerator[@Name='PPCE200ZX']/parameter[@Name='MODEL']/enumerator[@Name='MPC5644A']" mode="build_makefile">
	EEOPT  += EE_MPC5644A
</xsl:template>
This EEOPT line is included in the makefile but unfortunetly in the first line and not where the other option are included.

Code: Select all

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


RTDRUID_CONFIGURATOR_NUMBER:=1277
In eecfg.h it is not inserted at all

Maybe someone can take a look on my XSLT transformation? Thanks!

Best regards!
Eugen
Attachments
com.eu.evidence.rtdruid.oil.mpc5644a.core.zip
(8.11 KiB) Downloaded 341 times
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: XSLT Transformation for new MCU

Post by paolo.gai »

Hi!

thanks for the post! I'll ask Nicola to look at it during next week...

Btw, are you going to release the port open-source? (in that case we can help you integrating the patches on the ERIKA SVN...)

Ciao,

PJ
nicola.serreli

Re: XSLT Transformation for new MCU

Post by nicola.serreli »

Dear Eugen,

here some short answers

- The warning is hard coded (as it is, RT-Druid does not know the new mcu). We can talk about add it to the list of available mcu
- It is possible to change the order of execution of each contribution to the code generation, unfortunately the makefile is generated by a single contributor, so the (at this moment) you can add text at the begining or at the end of the makefile.
- The contribution of the xlst writer is not parsed, so the generation system is not able to tell if there is a new eeopt. So the if you want to add the eeopt to both makefile and eecfg.h, you need to contribute to both files, i.e. adding to the .xslt file something like :

Code: Select all

<xsl:template mode="build_eecfg_h" match="object[@Type='OS']/parameter[@Name='MCU_DATA']/enumerator[@Name='PPCE200ZX']/parameter[@Name='MODEL']/enumerator[@Name='MPC5644A']">
#ifndef __DISABLE_EEOPT_DEFINES__
    #define EE_MPC5644A 
#endif
</xsl:template>
kind regards,
Nicola
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: XSLT Transformation for new MCU

Post by paolo.gai »

Btw, do you need to add only the MCU in the list or o you need to do something bigger (boards,...)?

If it's just the MCU then we could add it in the next release, as said by Nicola... (provided the code that is object of the configuration is committed in the kernel part of ERIKA...)

Ciao,

PJ
eugenskt

Re: XSLT Transformation for new MCU

Post by eugenskt »

Hi,

only MCU. I have put the files in the attachment. I hope I have all done for porting. But I don't know if boot code is correct for mpc5644a. I don't touch it (only some namings) because I will not use it.

Best regards, Eugen
Attachments
Files which are new/changed
Files which are new/changed
mpc5644A_porting_erika.png (34.28 KiB) Viewed 12415 times
mpc5644a_porting_files.zip
(58.48 KiB) Downloaded 364 times
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: XSLT Transformation for new MCU

Post by paolo.gai »

Thanks! We'll look at them during next week!

PJ
fesposito

Re: XSLT Transformation for new MCU

Post by fesposito »

Dear Eugen,

we are checking your porting, this week we will commit your patch with the mpc5644a support. As soon as your code will be public, please test it and provide a feedback to us.

We also have two questions for you:

- Could you provide the support for system timer? This feature is not mandatory but is very useful;

- which compiler did you use for your porting? We suppose Freescale Codewarrior...

Regards
eugenskt

Re: XSLT Transformation for new MCU

Post by eugenskt »

Hi,

Sorry, I use only Diab compilier. I can not promise to make support for system timer. First I have to integrate Erika in our project, make it buildable and runnable on our target. This all could take a bit longer!

Maybe in step 2 I could try to replace current system timer and mmu stuff with Erika system timer and mmu.

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

Re: XSLT Transformation for new MCU

Post by paolo.gai »

Dear Eugen,

Thanks for your reply...

No problem... we will have just to insert in the wiki what is done and what is not, in a way not to make confusion...

Thanks again!

PJ
Locked