It is currently Mon Sep 24, 2018 5:57 am



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 19 posts ] 
Author Message
 Post subject: Direct injection Codewarrior 10
PostPosted: Wed Jul 01, 2015 4:38 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
Hi, reading this document AN4908:
http://cache.freescale.com/files/microc ... AN4908.pdf

I want try use o5e project to test it.

But! i found several troubles.

Therefor, is it possible compile the o5e project in Codewarrior10?

I was trying it but i get a lot of failures.

Reading this:
http://cache.freescale.com/files/soft_d ... df?fsrch=1

http://cache.freescale.com/files/soft_d ... df?fsrch=1

I discovered that not existing anything about MPC5x microcontrollers.

Can anyone help me?


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Wed Jul 01, 2015 12:57 pm 
Offline
User avatar

Joined: Sat May 11, 2013 9:52 am
Posts: 304
Location: Over here, doing 'over here' things.
Different IDE may have differing compilers on the back end. Maybe if you posted what exact problems you encountered, people would more easily be able to help.

If you're more specific about what the problems are instead of simply saying "I have problems, please help," people might be more willing to assist. Post code, post errors, post more. ;)

Try to be as thorough as possible when discussing issues.

_________________
/me goes off to the corner feeling like Jerry Springer with a mullet.

My O5E candidate: 1982 Honda CX500TC motorcycle.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Wed Jul 01, 2015 9:40 pm 
Offline
User avatar

Joined: Sat May 11, 2013 9:45 am
Posts: 729
Location: PA, USA
Can you just compile with CW 2.10? its a free download. CW10 is very different and there was some talk of creating a CW10 version, but it never fully happened so....2.10 is what you want.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Thu Jul 02, 2015 3:56 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
I try use the instructions about "CodeWarrior Project Importer" unsucess. :|

I also checked the settings in CW2.10


The problem are ¡A lot fof compiler errors!


Attachments:
o5e_3.png
o5e_3.png [ 128.92 KiB | Viewed 14036 times ]
o5e_2.png
o5e_2.png [ 138.57 KiB | Viewed 14036 times ]
o5e_1.png
o5e_1.png [ 123.1 KiB | Viewed 14036 times ]
Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Thu Jul 02, 2015 4:14 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
Project:

http://ge.tt/api/1/files/8vm6kYJ2/0/blob?download

http://ge.tt/8vm6kYJ2/v/0


PD:CW10, no limit code :mrgreen:


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Thu Jul 02, 2015 6:17 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
The sample project in CW10.2

http://cache.freescale.com/files/microc ... 4907SW.zip
http://cache.freescale.com/files/microc ... 4908SW.zip


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Thu Jul 02, 2015 9:41 am 
Offline
User avatar

Joined: Sat May 11, 2013 9:45 am
Posts: 729
Location: PA, USA
I don't know.....there is a basic version of 05e for CW10 that Sean was working on here:

https://bitbucket.org/essess/o5e/overview

but the etpu stuff isn't working I don't think so it probably won't help you....it's probably easier to just add the DI functions to the 2.10 version


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Tue Jul 07, 2015 3:46 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
The eTPU Tooth Generator works well, but Engine Position fails.
Spark, and fuel is not implemented yet.

I don´t understand it, the same configuration in Tooth Generator and Engine Position. but don´t work :(

Secondly the environment is wonderful. programming, debugging (C level),indexer, no limit code, examples from Freescale.
I am totally convinced that this is the best option.

Thanks mk e :)


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Tue Jul 07, 2015 11:34 am 
Offline
User avatar

Joined: Sat May 11, 2013 9:45 am
Posts: 729
Location: PA, USA
Engine position fails to read the tooth gen signal or just flat fails to load or something like that?

CW 10 is better, no question there....I thought it had a 512k limit though? There was a 30 day unlimited then the 512k cut in or has that changed? o5e fits in about 64k I think so the 128k limit on CW2.10 is effectively unlimited and 512k is ridiculous.

I'm not very C savvy so I wasn't able to do much but break Sean's re-write so I'm sure he'll be glad to here someone is using it.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Tue Jul 07, 2015 2:32 pm 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
I'm not a savvy in C :oops:

But the problem is in the eTPU configuration (i am not 100% sure).

The tcr2 do not work well.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Tue Jul 07, 2015 4:15 pm 
Offline
User avatar

Joined: Sat May 11, 2013 9:45 am
Posts: 729
Location: PA, USA
but you are getting an actual output from tooth gen?...strange.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Tue Jul 07, 2015 6:35 pm 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
Yes :D
The output toothgen can be run my megasquirt.

The problem in crank and cam is the tcr2, the error code from mcam is "tcr2 is not valid".

I try use the etpu config from CW2.1 project version but the mcu do not run.
( compile and program but entry on error status (task led)).

some times work but give me 3 rpm when it would be 2000.


Top
 Profile  
 
 Post subject: Re: Working direct injection TRK-MPC5634M: MPC
PostPosted: Tue Oct 06, 2015 4:23 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
ETPU_CAM_CHAN ETPU_ENGINE_A_CHANNEL(0)
ETPU_TG_CAM_CHAN ETPU_ENGINE_A_CHANNEL(1)
ETPU_CRANK_CHAN ETPU_ENGINE_A_CHANNEL(2)
ETPU_TG_CRANK_CHAN ETPU_ENGINE_A_CHANNEL(3)
ETPU_SPARK_1_CHAN ETPU_ENGINE_A_CHANNEL(4)
ETPU_SPARK_2_CHAN ETPU_ENGINE_A_CHANNEL(5)
ETPU_SPARK_3_CHAN ETPU_ENGINE_A_CHANNEL(6)
ETPU_SPARK_4_CHAN ETPU_ENGINE_A_CHANNEL(7)
ETPU_FUEL_1_CHAN ETPU_ENGINE_A_CHANNEL(8)
ETPU_FUEL_2_CHAN ETPU_ENGINE_A_CHANNEL(9)
ETPU_FUEL_3_CHAN ETPU_ENGINE_A_CHANNEL(10)
ETPU_FUEL_4_CHAN ETPU_ENGINE_A_CHANNEL(11)
ETPU_KNOCK_1_CHAN ETPU_ENGINE_A_CHANNEL(12)
ETPU_KNOCK_2_CHAN ETPU_ENGINE_A_CHANNEL(13)
ETPU_INJ_BANK_1_CHAN ETPU_ENGINE_A_CHANNEL(14)
ETPU_INJ_BANK_2_CHAN ETPU_ENGINE_A_CHANNEL(15)
ETPU_INJ_1_CHAN ETPU_ENGINE_A_CHANNEL(16)
ETPU_INJ_2_CHAN ETPU_ENGINE_A_CHANNEL(17)
ETPU_INJ_3_CHAN ETPU_ENGINE_A_CHANNEL(18)
ETPU_INJ_4_CHAN ETPU_ENGINE_A_CHANNEL(19)


1º->jumpered CHANNEL(2) with CHANNEL(3), and CHANNEL(0) with CHANNEL(1)

2º->Install FreeMaster from frescale and load the example project
Dowload freemaster:http://www.freescale.com/webapp/sps/download/license.jsp?colCode=FMASTERSW&location=null&fpsp=1&WT_TYPE=IDE%20-%20Debug,%20Compile%20and%20Build%20Tools&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=exe&WT_ASSET=Downloads&fileExt=.exe&Parent_nodeId=1084998738637727586131&Parent_pageType=product

(MPC5674F_EngineControlDemo_CodeWarrior10.6)
As here:http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4908.pdf
Download here:http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4908SW.zip

3º-> Dowload, compile and load the source code on Codewarrior10.6
http://ge.tt/api/1/files/5OqwkLP2/0/blob?download


Top
 Profile  
 
 Post subject: Re: ETPU1- ETPU2(+) differences
PostPosted: Tue Oct 06, 2015 4:24 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
ETPU1 can not drive Direct injection an can not set negative ignition or injection angles :shock:

at least that was what I read about new advantages of ETPU2 :ugeek:

No ALS, no ALLC, some engines would not be set correctly.

In short, I think it is best to use the etpu2.


PROBLEM: It is very hard write code.

And now i need help:
My mod project in the previous post use the FreeMaster protocol.

https://es.scribd.com/doc/283803216/mcbcom

Can someone help me write the code to use the tunnerstudio protocol? Please :oops:


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Wed Oct 07, 2015 3:05 am 
Offline
User avatar

Joined: Sat May 11, 2013 9:45 am
Posts: 729
Location: PA, USA
hmmmm.....I know the motec M1 ecus have direct injection versions and a 5566 processor which is an eTPU1.

I'm not sure what this means "No ALS, no ALLC," ?

The fuel function and spark functions are very similar in operation with a couple minor diffences. Fuel is desinged for 1 pulse (but can deliver makeup pulses) witht he on time being dead-on and any error made up in end angle.

The spark function can divide the pulse time between up to 4 (I think) pulses with end angle dead-on and any error made up in the total on time.

I'm not sure why you would need negative angles? its a 0-720 system so -20 = 700 right?

Neither are ideal for direct injection exactly because direct injection normally uses multiple pulse (like the spark function) but need needs the on-time to be right like the fuel function. I suspect motec has written their own eTPU code to do this......but there are options.

The spark function will get you pretty close and is probably the easiest/best path. The other option is use multiple fuel channels to create the multiple pulses.

As for help programming...I can't be much help because it's beyond me so unless Sean S who wrote the code you're using pops in. I can shoot him an email but no promises beyond that.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Wed Oct 07, 2015 3:54 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
Read section 3
"3 Changes from eTPU set2" and
"3.1 Changes in API"

Search about: "negative TDC relative angles"

ALS-> AntiLag System (Bang)
ALLC-> AntiLag Launch Control

Both systems need negative angles to work properly

Direct injection can be used with the typical signal from port injection:

http://www.liferacing.com/?page_id=35
http://kms.vankronenburg.nl/products/ac ... on-driver/

Or better MC33816 chip

You also can create a program to driver the direc injection solenoid in a separate microcontroller.

In other words:
one thing to be able to open an injector for direct injection
and be able to perform other pre-injection and post-injection, and generate the three basic control signals to solenoid direct injection

ETPU2 is intended for direct injection molding.

And yes, i was trying use this code in essess o5e project but i have problem with the interrupts.

Can you talk with him. Please? :?


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Wed Oct 07, 2015 6:54 am 
Offline
User avatar

Joined: Sat May 11, 2013 9:45 am
Posts: 729
Location: PA, USA
jawier130 wrote:
Read section 3
"3 Changes from eTPU set2" and
"3.1 Changes in API"

Search about: "negative TDC relative angles"

ALS-> AntiLag System (Bang)
ALLC-> AntiLag Launch Control



Is this something the eTPU is doing for you then? These functions can be easily done in the main processor where negative angles are no problem then converted to the correct positive angle for the eTPU. Several functions are done that way in o5e currently.


jawier130 wrote:
And yes, i was trying use this code in essess o5e project but i have problem with the interrupts.

Can you talk with him. Please? :?


I will point him to the thread.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Wed Oct 07, 2015 8:28 am 
Offline
User avatar

Joined: Mon Feb 03, 2014 12:14 pm
Posts: 6
All tunerstudio i/o can be found in task/tuner/* - start with task_tuner.c for the top level interactions.

You'll also need to define/use a proper tuner studio .ini for your calibration purposes. Look to maincontroller.ini for reference.


Top
 Profile  
 
 Post subject: Re: Direct injection Codewarrior 10
PostPosted: Thu Oct 08, 2015 3:54 am 
Offline
User avatar

Joined: Mon Sep 29, 2014 3:59 am
Posts: 11
When i try compile the etpu2_project in your essess_o5e_project i get the error:
"
Linker command file output section '.__exception_handlers' has a type or
>input which is incompatible with
>section '.__exception_handlers' in file
>'C:\Users\PERE\Documents\Codewarrior10Workspace\essess_o5e_CW10_MOD0\bin\relea......."

The etpu2 need use the interrupts, i think that the interrupts vectors adress are defined in "MPC5634M_FLASH.lcf". But this file is diferent for both projects, and i do not know how to change it. I was trying to change it but no sucess.


Other solution is no use cocoos an try modify the Freemaster Protocl as TunnerStudio Protocol, but the code of the freemaster is very hard for me :oops: :oops: :oops:

Thank you all anyway

http://ge.tt/api/1/files/5YervTP2/0/blob?download


Attachments:
CW10.png
CW10.png [ 108.36 KiB | Viewed 13262 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 19 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC - 5 hours [ DST ]