68013 有三种 EEPROM 引导加载方式
1.无EEPROM或EEPROM无效
2."C0"EEPROM加载
3."C2"EEPROM加载
上电之后,FX2 检测到有一个EEPROM连接在I2C总线上,并且地址 0上的数据值为
0xC2,则FX2 会将EEPROM中的数据加载到内部RAM中.然后运行价载的程序.
EEPROM中前八个字节格式:
0:0xC2
1:VIDL制造商ID
2:VIDH
3:PIDL产品ID
4:PIDH
5:DIDL设备ID
6:DIDH
7:设置字节
8:长度(高字节)
9:长度(低字节)
10:开始地址(高字节)
11:开始地址(低地址)
...............
...............
N-4:0x80
N-3:0x01
N-2:0xE6
N-1:0x00
N:0x00
可用Hex2bix.exe生成一个iic文件,根据用户输入可生成以上格式的iic文件,
如
C:\Cypress\USB\Bin>hex2bix -i -f 0xc2 -v
-p -o
iicfilename.iic hexfilename.hex
关于Hex2bix.exe的具体用法,可用”Hex2bix -help“察看。
Intel Hex file to EZ-USB Binary file conversion utility
Copyright (c) 1997-1999, Cypress Semiconductor Inc.
HEX2BIX [-AIBRH?] [-S symbol] [-M memsize] [-C Config0Byte] [-F firstByte]
[-O filename] Source
Source - Input filename
A - Output file in the A51 file format
B - Output file in the BIX file format (Default)
BI - Input file in the BIX file format (hex is default)
C - Config0 BYTE for AN2200 and FX2 (Default = 0x04)
F - First byte (0xB0, 0xB2, 0xB6, 0xC0, 0xC2) (Default = 0xB2)
H|? - Display this help screen
I - Output file in the IIC file format
M - Maximum memory size, also used as BIX out file size. (Default
= 8k)
O - Output filename
P - Product ID (Default = 2131)
R - Append bootload block to release reset
S - Public symbol name for linking
V - Vendor ID (Default = 0x0547)