Pages: [1]
Author Topic: C code in Keil  (Read 4475 times)
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« on: April 15, 2015, 06:23:42 AM »

Has anyone successfully set this up for ME7?
To insert code that you can actually write in C?

I'm not writing a PID controller in asm if I can avoid it...
Specifically stuff like defining and accessing variables, making it aware of DPP's and so on.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
rnagy86
Sr. Member
****

Karma: +6/-11
Offline Offline

Posts: 367


« Reply #1 on: April 15, 2015, 06:58:17 AM »

http://www.keil.com/support/docs/697.htm maybe?
Logged
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #2 on: April 15, 2015, 12:10:07 PM »

Last time I checked ME7 was running C167. And I know how to google Tongue

The function calls have to be done in inline asm there is no two ways about it.
The variables can be defined using the XVAR/MVAR/HVAR macros and they work well.

Going to test the PID tomorrow, see if I get proper boost control on a NA ME7.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #3 on: April 15, 2015, 12:11:23 PM »

Last time I checked ME7 was running C167. And I know how to google Tongue

The function calls have to be done in inline asm there is no two ways about it.
The variables can be defined using the XVAR/MVAR/HVAR macros and they work well.

Going to test the PID tomorrow, see if I get proper boost control on a NA ME7.

Very cool.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
rnagy86
Sr. Member
****

Karma: +6/-11
Offline Offline

Posts: 367


« Reply #4 on: April 15, 2015, 01:42:02 PM »

Last time I checked ME7 was running C167. And I know how to google Tongue

The function calls have to be done in inline asm there is no two ways about it.
The variables can be defined using the XVAR/MVAR/HVAR macros and they work well.

Going to test the PID tomorrow, see if I get proper boost control on a NA ME7.

Sure I just assumed there is a generic solution to this which is machine independent, but assuming is never right Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.028 seconds with 17 queries. (Pretty URLs adds 0s, 0q)