summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3078bcf)
raw | patch | inline | side by side (parent: 3078bcf)
author | Ivan Pang <i-pang@ti.com> | |
Fri, 21 Oct 2011 22:42:27 +0000 (18:42 -0400) | ||
committer | Ivan Pang <i-pang@ti.com> | |
Fri, 21 Oct 2011 22:42:27 +0000 (18:42 -0400) |
index 4b0975b90e77e8e8ebd75be5d8da02ced9b5aebd..97aa65850fbde394fd68c770f4119227e3927421 100644 (file)
cp -f ../util/i2cConfig/i2cConfig.gel ../../../i2cConfig.gel
cp -f ../util/btoccs/b2ccs ../../../b2ccs
cp -f ../util/btoccs/b2i2c ../../../b2i2c
-cp -f ../util/btoccs/ccs2bin.exe ../../../ccs2bin.exe
+cp -f ../util/btoccs/ccs2bin ../../../ccs2bin
cp -f ../util/bconvert/bconvert64x ../../../bconvert64x
cp -f ../util/romparse/romparse ../../../romparse
mv -f ../../../i2cConfig.gel bin/i2cConfig.gel
mv -f ../../../b2ccs ../util/btoccs/b2ccs
mv -f ../../../b2i2c ../util/btoccs/b2i2c
-mv -f ../../../ccs2bin.exe ../util/btoccs/ccs2bin.exe
+mv -f ../../../ccs2bin ../util/btoccs/ccs2bin
mv -f ../../../bconvert64x ../util/bconvert/bconvert64x
mv -f ../../../romparse ../util/romparse/romparse
index a456d3812a2558ebb30bb3cb1d6cf74c6345b6fe..2a732edf7b36a00e99c25a3dc73d36b21114acaf 100644 (file)
EEPROM Writer is a simple utility to program a CCS format image/data file to I2C EEPROM.
-Steps to program the EEPROM with a binary file:
+Steps to program the EEPROM with a CCS format data file (.out or .dat):
+
+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 writer\eeprom\evmc66xxl\bin directory, and rename it to app.dat.
+
+3. Change the file_name, bus_addr, start_addr and swap_data in 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 with data swap disabled (0).
+
+4. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.
+
+5. Load the program writer\eeprom\evmc66xxl\bin\eepromwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS
+ and DDR is intialized.
+
+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 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 program the EEPROM with a binary file (.bin):
1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
3. Change the file_name, bus_addr, start_addr and swap_data in writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt if necessary.
Make sure that file_name is set to the name of your binary file.
- *By default the EEPROM writer will load app.bin to DSP memory and write the data to I2C slave
+ *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 with data swap disabled (0).
4. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.
6. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.
-7. Load app.dat to 0x80000000:
+7. Load your .bin file from step 3 to 0x80000000:
* In CCSv5, right click mouse in memory window, select "load memory".
* Browse and select your binary file.
- By default, the browse menu only displays .dat files. You will have to change the option
TI Data Format (*.dat) to Raw Data Format (*.bin) to find your binary file.
- * Change the Start Address to "0x80000000" if it is not 0x80000000
+ * Click "Next".
+ * Change the Start Address to "0x80000000" if it is not 0x80000000.
* Change the Type-size to 32 bits if it is not 32 bits.
- * click "finish".
+ * Make sure the swap checkbox is unchecked.
+ * 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.
diff --git a/writer/eeprom/evmc6670l/bin/eepromwriter_input.txt b/writer/eeprom/evmc6670l/bin/eepromwriter_input.txt
index d87d3c46e33dce4edb5df6db5af8a490e35c6c39..76b3dd90a7986ff08ea8b44d6600ab5e821834c6 100644 (file)
-file_name = app.bin
+file_name = app.dat
bus_addr = 0x51
start_addr = 0
swap_data = 0
diff --git a/writer/eeprom/evmc6678l/bin/eepromwriter_input.txt b/writer/eeprom/evmc6678l/bin/eepromwriter_input.txt
index d87d3c46e33dce4edb5df6db5af8a490e35c6c39..76b3dd90a7986ff08ea8b44d6600ab5e821834c6 100644 (file)
-file_name = app.bin
+file_name = app.dat
bus_addr = 0x51
start_addr = 0
swap_data = 0