summaryrefslogtreecommitdiffstats
blob: d943dc1055b880a9b47b25146fd2b97f4e357e98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
EEPROM Writer Utility

EEPROM Writer is a simple utility to program a CCS format image/data file to I2C EEPROM.

Steps to program the EEPROM:

1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM. 

2. Copy the CCS format data file to tools\writer\eeprom\evmc66xxl\bin directory, and rename it to app.dat.

3. Change the file_name, bus_addr and start_addr in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt if necessary. 
   By default the EEPROM writer will load app.dat to DSP memory and write the data to I2C slave
   bus address 81 (0x51) at EEPROM device start byte address 0.

4. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.

5. Load the program tools\writer\eeprom\evmc66xxl\bin\eepromwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS.

6. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.

7. Load app.dat to 0x80000000:
     * In CCSv5, right click mouse in memory window, select "load memory".
     * Browse and select tools\writer\eeprom\evmc66xxl\bin\app.dat.
     * Select the option "Use the file header information to set the start address and size of the memory block to be 
       loaded" and click "next".
     * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish".

8.After the data file is loaded into the memory, run the program (in CCSv5, press F8), it will start to program the 
   EEPROM.

9.When programming is completed, the console will print "EEPROM programming completed successfully", if there
   is any error, the console will show the error message.


Steps to re-build eepromwriter:

1. Import the eepromwriter CCS project from tools\writer\eeprom\evmc66xxl directory (in CCSv5, Project->Import Existing CCS/
   CCE Eclipse Projects).

2. Clean and build the eepromwriter project.

3. After the project build is completed, eepromwriter_evm66xxl.out and eepromwriter_evm66xxl.map will be generated under 
   tools\writer\eeprom\evmc66xxl\bin directory.