Page 1 of 1
XSLT Transformation for new MCU
Posted: Sat May 25, 2013 11:55 am
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
Re: XSLT Transformation for new MCU
Posted: Sat May 25, 2013 12:09 pm
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
Re: XSLT Transformation for new MCU
Posted: Sat May 25, 2013 4:09 pm
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
Re: XSLT Transformation for new MCU
Posted: Mon May 27, 2013 6:56 am
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
Re: XSLT Transformation for new MCU
Posted: Fri Jun 07, 2013 3:14 pm
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
Re: XSLT Transformation for new MCU
Posted: Sat Jun 08, 2013 10:32 am
by paolo.gai
Thanks! We'll look at them during next week!
PJ
Re: XSLT Transformation for new MCU
Posted: Wed Jun 12, 2013 10:33 am
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
Re: XSLT Transformation for new MCU
Posted: Fri Jun 14, 2013 10:18 am
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
Re: XSLT Transformation for new MCU
Posted: Fri Jun 14, 2013 1:00 pm
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