// Start of Jey def file
=================================================
Micro, 8, 1, "STi5518MVB-X", 0xd405041, 0xfffffff
=================================================

==========================================================================================================================
IRD,48,"Kaon 2meg" , 8, 1, 1, 1, 2, 2, 0x7FFFE3B2, 0x7FFFE3B2, 0x7FE00001, 0x7FE00001, 0x7FE00001, 0x7FE00001, "XXX", 1, 4
IRDFlash, 48, "39VF160 (default)", 0x2782, 0x7FE00000, 0x200000, 2, 2, 0
IRDFlash, 48, "M29W160ET", 0x22C4, 0x7FE00000, 0x200000, 2, 2, 0
==========================================================================================================================

===========================================================
Flash, 66, "M29W160ET", 0x22C4, 0x200000, 1, 1, 0, 1, 35, 0
Sector, 66, 31, 0x0000, 0x10000
Sector, 66, 1, 0x1F0000, 0x8000
Sector, 66, 2, 0x1F8000, 0x2000
Sector, 66, 1, 0x1FC000, 0x4000
===========================================================

=========================
FlashMfg, 0x20, "STMicro"
=========================



//Micro definition explanation
==============================

Micro, 8, 1, "STi5518MVB-X", 0xd405041, 0xfffffff

Micro = Keyword indicate Microprocessor ID
8  = Index for cross reference
1  = JTAG Device STIXX00
"STi5518MVB-X "= Microprocessor name
0xd405041 = JTAG identifier
0xfffffff = JTAG Mask ID


//IRD definition explanation
============================

IRD,48,"Kaon 2meg" , 8, 1, 1, 1, 2, 2, 0x7FFFE3B2, 0x7FFFE3B2, 0x7FE00001, 0x7FE00001, 0x7FE00001, 0x7FE00001, "XXX", 1, 4

IRD = Keyword indicate IRD definition
48  = Index for cross reference
"Kaon 2meg" = Name of the IRD
8   = Index to refer to Microprosessor type
1   = JTAG IO 1 = x7/8/9xx
1   = IRD Manufacturer => 1 for E* mjg
1   = JTAG Device STIXX00
2   = Data Width 16 Bits
2   = Dela in bytes
0x7FFFE3B2 = Abs mem of IRD 
0x7FFFE3B2 = Abs mem of box Keys
0x7FE00001 = Abs mem of Boot Strap
0x7FE00001 = Abs mem of Build Config
0x7FE00001 = Abs mem of Model ID
0x7FE00001 = Abs mem of Software version
"XXX" =  Model ID assist to identifying IRD
1 = EEPROM type 24LC16
4 = STI micro using Pio1:2,0 FOR SCL SDA


//IRDFLASH Explanation
======================

IRDFlash, 48, "39VF160 (default)", 0x2782, 0x7FE00000, 0x200000, 2, 2, 0
IRDFlash = Keyword for indcation IRD definition
48 = Index cross Reference to IRD
"39VF160 (default)" = Name of the flash
0x2782 = FLASH ID
0x7FE00000 = Absolute starting address
0x200000 = Size in bytes
2 = Data width flash in bytes
2 = Data delta of flash in bytes
0 = Data offset of flash in bytes


IRDFlash, 48, "M29W160ET", 0x22C4, 0x7FE00000, 0x200000, 2, 2, 0
IRDFlash = Keyword for indcation IRD definition
48 = Index cross Reference to IRD
"M29W160ET" = Name of the flash
0x22C4 = FLASH ID
0x7FE00000 = Absolute starting address
0x200000 = Size in bytes
2 = Data width flash in bytes
2 = Data delta of flash in bytes
0 = Data offset of flash in bytes

// FLASH section explanation
============================

Flash, 66, "M29W160ET", 0x22C4, 0x200000, 1, 1, 0, 1, 35, 0
Sector, 66, 31, 0x0000, 0x10000
Sector, 66, 1, 0x1F0000, 0x8000
Sector, 66, 2, 0x1F8000, 0x2000
Sector, 66, 1, 0x1FC000, 0x4000

Flash = Indicate line is a Flash definition
66 = Index for sector defintion
"M29W160ET" = Name use to represent flash mem
0x22C4 = Flash ID ( in datasheet, device ID )
0x200000 = Size in bytes
1 = 8 Bits data width possible
1 = 16 Bits data width possible
0 = 32 Bits data width NOT possible
1 = Use by 29X flash
35 Number of mem block sectors (see datasheet)
0 = Whole flash erasable... NO sectors by sectors

// For Sector section definition please refer to flash mem datasheet.


// Flash Manufacturer ID
========================

FlashMfg, 0x20, "STMicro"

FlashMfg = Indicate it is a Memory flash manufacturer definition
0x20 = Manufacturer ID
"STMicro" = Name of the manufacturer
