RT-Druid new target: MK60F12.

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
Zohra_tl
Newbie
Posts: 1
Joined: Mon Mar 30, 2015 9:31 am

RT-Druid new target: MK60F12.

Post by Zohra_tl » Mon Apr 06, 2015 10:12 am

Hey :)

I am porting ERIKA on a CORTEX-M4 core, the MK60F12 from Freescale. I followed all the steps described in the tutorial http://erika.tuxfamily.org/wiki/index.p ... formations and when I run my transformation I get this:
com.eu.evidence.rtdruid.epackage.RTDEPackageBuildException: Two elements has differents attributes: eStructuralFeatures
firstNode attribute list = (containment= true)(eType= //OILOS__MCU_1DATA)(name= MCU_DATA)(xsi:type= ecore:EReference)
firstNode attribute list = (containment= true)(eType= //OILOS__MCU_1DATA)(name= MCU_DATA)(upperBound= -1)(xsi:type= ecore:EReference)
Two elements has differents attributes: eStructuralFeatures
firstNode attribute list = (containment= true)(eType= //OILOS__MCU_1DATA)(name= MCU_DATA)(xsi:type= ecore:EReference)
firstNode attribute list = (containment= true)(eType= //OILOS__MCU_1DATA)(name= MCU_DATA)(upperBound= -1)(xsi:type= ecore:EReference)


I can't figure what what I have done wrong. Here's the plugin directory I have created.
Attachments
com.eu.evidence.rtdruid.oil.mk60.core.rar
MK60F12 plugin.
(6.92 KiB) Downloaded 192 times

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

Re: RT-Druid new target: MK60F12.

Post by nicola.serreli » Thu Apr 09, 2015 10:00 pm

Dear Zohra,

the error is related to the MCU_DATA element in the oil file (mk60f12.oil in your plugin).
The idea is that the oil "structure" is the composition of many files like your and if the same object (i.e. MCU_DATA) is defined in more than one place, it must have the same attributes. In this case MCU_DATA is defined both as "a signle value element" and as "an array of elements".

Moreover I suggest to handle only those elements that you are extending:
the MCU_DATA contains something new, than it is ok, but the the CPU_DATA looks like something that is already handled by RT-Druid plugins. So if you write it "two times", the generated code will contain both your code and "RT-Druid code".

A last thing ... search and replace msp430: few files still contain it. Otherwise your plugin id may collide with the existing plugin for msp430.

Kind regards,
Nicola

Post Reply