PDA

View Full Version : Newbie question about writing CAX files



cdosys
October 2nd, 2017, 09:40 AM
Hello,

I just recently got an EFILive setup second-hand from a good friend of mine, great product compared to other tuner packages!

I am working on some homebrew custom code patches for the ECM for "hi-res" VE and spark maps.
My question is about the memory offsets for CAX file variables. Is there a base offset used for each PCM type? I looked at several CAX files
posted on the forum and noticed that their offsets exceed the max file size for the flash image (e.g. 1023F3 vs the max file size of 1MB (0FFFFF)).
I also read mention that EFILive utilizes a ROM emulator for the flash files??? The ECM in question is a E40 with the 12604792 OS loaded on it.

Thanks!

GMPX
October 2nd, 2017, 01:21 PM
E40 ECM has no offsets, everything is mapped 1:1 over the 1Mb flash range.
Be REALLY careful with your 'code patches' unless you have some way to recover the ECM should you make a mistake and brick it.

The 'ROM emulator' you mentioned might be the LS1 PCM based Road Runner, it was never offered for the E40.

cdosys
October 4th, 2017, 03:16 PM
E40 ECM has no offsets, everything is mapped 1:1 over the 1Mb flash range.
Be REALLY careful with your 'code patches' unless you have some way to recover the ECM should you make a mistake and brick it.

The 'ROM emulator' you mentioned might be the LS1 PCM based Road Runner, it was never offered for the E40.

Thank you for the reply. I should've been clearer in my original response, sorry about that.

Here is one of the example files I was looking at (not mine):

https://github.com/Snipesy/Cruze/blob/master/12662377.cax

Anyway, this is what I meant by offsets; The header of this .cax states that all offsets are +80000000h. Also there are address values over 0xFFFFF?
Given it's for a E47 ECM and different OS then the one I'm working with at the moment, but I'm still confused. Plus the example file I was looking at
for an E40 also had address over 0xFFFFF? Are all the addresses still mapped 1:1 in relation to the actual ROM length, regardless of ECM/OS?

Thanks!

GMPX
October 4th, 2017, 03:25 PM
Ah yes, that E47 has very strange address mapping because of the CPU it uses (as does the Bosch E86).

"Are all the addresses still mapped 1:1 in relation to the actual ROM length, regardless of ECM/OS?"

For most of GM's gas ECM's yes this is the case. An E40 shouldn't have an address over 0xFFFFF as it is only a 1Mb flash chip that starts at zero in the address space.

Cheers,
Ross