Call for standards: EPROM/cal editing software

steve ravet sravet at arm.com
Wed Nov 1 20:28:33 GMT 2000


Dig -- I can't get onto the ftp site to check out your file, but I
proposed something like this a long time ago, and supplied some C source
code for it also.  My file format is pretty verbose but also readable. 
The code and some example files are in
tuna.zip in the incoming directory.  I think Eric has adopted something
similar to this
for winbin now.  It looks something like this:

# any line starting with # is a comment
# every .ecm file has a section that defines the image, offset
# within the image to the tables, checksum region and size, etc.,
# followed by one or more table definition sections
image
  image_size=0x1000
  file_offset=0
  checksum_addr=0
  checksum_size=2
  checksum_start=2
  checksum_end=0xfff
endimage

# a type 1 table is a single data value, like prom ID
table
  type=1
  address=0x02
  name=Prom ID
  data_width=2
endtable

# a type 2 table is a row of data
table
  type=2
  address=0x60e
  name=Idle Temp Correction
  data_width=1
  h_units=Temp
  offset=0
  scale=25
  columns=9
  h_start=0
  h_end=5000
endtable

# a type 3 table has rows and columns
table
  type=3
  address=0x35
  name=Spark Timing
  data_width=1
  h_units=MAP (kPa)
  offset=0
  scale=0.35156
  columns=15
  h_start=30
  h_end=100
  rows=14
  v_units=RPM
  v_start=400
  v_end=3600
endtable

# a type 0 table is bits packed into a byte or word value,
# line malfunction flags
table
  type=0
  address=0x50d
  name=Malfunction Flags 12-24
  flag1=12
  flag2=13
  flag3=14
  flag4=15
  flag5=21
  flag6=22
  flag7=23
  flag8=24
  one_state=enable
  zero_state=disable
endtable  
          
       

Dig wrote:
> 
> I've recently become more involved in a couple
> different projects to develop EPROM/cal editing
> software for different ECMs/cals.

-- 
Steve Ravet
steve.ravet at arm.com
ARM,Inc.
www.arm.com
----------------------------------------------------------------------------
To unsubscribe from gmecm, send "unsubscribe gmecm" (without the quotes)
in the body of a message (not the subject) to majordomo at lists.diy-efi.org




More information about the Gmecm mailing list