HAWK216 Instruction Manual
Document number
Revision
File name
Date
Page
2013-12-11-01
V1.1
HAWK216OEM1_IM_v1_1
19-Aug-14
17 of 19
APPENDIX A
- FPGA FIRMWARE UPLOAD
CAMERA EPROM
The camera EEPROM is divided into 15 sectors with address spaces as outlined below. Note that each
address points to a 16bit word.
/* Sector Structure...
Sector Kwords words start end start end
1 4 4096 0 4095 000000 000FFF
2 4 4096 4096 8191 001000 001FFF
3 4 4096 8192 12287 002000 002FFF
4 4 4096 12288 16383 003000 003FFF
5 4 4096 16384 20479 004000 004FFF
6 4 4096 20480 24575 005000 005FFF
7 4 4096 24576 28671 006000 006FFF
8 4 4096 28672 32767 007000 007FFF
9 32 32768 32768 65535 008000 00FFFF
10 32 32768 65536 98303 010000 017FFF
11 32 32768 98304 131071 018000 01FFFF
12 32 32768 131072 163839 020000 027FFF
13 32 32768 163840 196607 028000 02FFFF
14 32 32768 196608 229375 030000 037FFF
15 32 32768 229376 262143 038000 03FFFF
SECTOR 1 - is used for Manufacture specific data i.e. serial number etc.
SECTORS 2-15 are used to hold the FPGA configuration information.
To program a new FPGA configuration
1. Sectors 2-15 must be erased
2. a new bit file must be uploaded to Sectors 2-15
Note that SECTOR 1 must not be ERASED as this contains detailed data about the camera.
SECTOR ERASE
The following command is used to erase a sector.
SECTOR xx ERASE - 0x53 0xAE 0x05 0x04 0xAA 0xBB 0xCC 0x00 0x50
Where the Hex Number AABBCC represents an address in the sector to be erased. After the SECTOR
erase command has been issued a small delay is required for the ERASE to take place. Successful erase
can be determined by polling the sector with the following command.
0x53 0xAF 0x01 0x50
If a value of 0xFF is returned the sector erase is complete.
Example Sector ERASEs
SECTOR 2 ERASE - 0x53 0xAE 0x05 0x04 0x00 0x10 0x00 0x00 0x50