Title: C code in Keil Post by: prj 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. Title: Re: C code in Keil Post by: rnagy86 on April 15, 2015, 06:58:17 AM http://www.keil.com/support/docs/697.htm maybe?
Title: Re: C code in Keil Post by: prj on April 15, 2015, 12:10:07 PM Last time I checked ME7 was running C167. And I know how to google :P
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. Title: Re: C code in Keil Post by: nyet on April 15, 2015, 12:11:23 PM Last time I checked ME7 was running C167. And I know how to google :P 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. Title: Re: C code in Keil Post by: rnagy86 on April 15, 2015, 01:42:02 PM Last time I checked ME7 was running C167. And I know how to google :P 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 :) |