summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot_loader/IBL_Makefile38
-rw-r--r--boot_loader/IBL_README.txt33
-rw-r--r--boot_loader/IBL_buildibl7
-rw-r--r--boot_loader/IBL_makestg214
-rw-r--r--boot_loader/IBL_release_info.txt18
-rw-r--r--boot_loader/IBL_setupenv.bat31
-rw-r--r--boot_loader/IBL_setupenvMsys.sh15
-rw-r--r--boot_loader/examples/i2c/emac/docs/README.txt41
-rw-r--r--boot_loader/examples/i2c/emac/evmc6670l/.ccsproject10
-rw-r--r--boot_loader/examples/i2c/emac/evmc6670l/.cproject82
-rw-r--r--boot_loader/examples/i2c/emac/evmc6670l/.project96
-rw-r--r--boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd77
-rw-r--r--boot_loader/examples/i2c/emac/evmc6670l/macros.ini1
-rw-r--r--boot_loader/examples/i2c/emac/evmc6678l/.cproject1
-rw-r--r--boot_loader/examples/i2c/emac/evmc6678l/.project2
-rw-r--r--boot_loader/examples/i2c/nand/docs/README.txt39
-rw-r--r--boot_loader/examples/i2c/nand/evmc6670l/.ccsproject10
-rw-r--r--boot_loader/examples/i2c/nand/evmc6670l/.cproject82
-rw-r--r--boot_loader/examples/i2c/nand/evmc6670l/.project96
-rw-r--r--boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd77
-rw-r--r--boot_loader/examples/i2c/nand/evmc6670l/macros.ini1
-rw-r--r--boot_loader/examples/i2c/nand/evmc6678l/.cproject1
-rw-r--r--boot_loader/examples/i2c/nand/evmc6678l/.project2
-rw-r--r--boot_loader/examples/i2c/nor/docs/README.txt34
-rw-r--r--boot_loader/examples/i2c/nor/evmc6670l/.ccsproject10
-rw-r--r--boot_loader/examples/i2c/nor/evmc6670l/.cproject82
-rw-r--r--boot_loader/examples/i2c/nor/evmc6670l/.project96
-rw-r--r--boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd77
-rw-r--r--boot_loader/examples/i2c/nor/evmc6670l/macros.ini1
-rw-r--r--boot_loader/examples/i2c/nor/evmc6678l/.cproject1
-rw-r--r--boot_loader/examples/i2c/nor/evmc6678l/.project2
-rw-r--r--boot_loader/tools_install.bat2
-rw-r--r--post/docs/README.txt9
-rw-r--r--post/evmc6670l/.cproject89
-rw-r--r--post/evmc6670l/bin/post_romparse.bat5
-rw-r--r--post/evmc6678l/.cproject91
-rw-r--r--post/evmc6678l/bin/post_romparse.bat5
-rw-r--r--post/include/post.h11
-rw-r--r--post/src/post.c125
-rw-r--r--writer/eeprom/docs/README.txt13
-rw-r--r--writer/eeprom/evmc6670l/.cproject3
-rw-r--r--writer/eeprom/evmc6678l/.cproject2
-rw-r--r--writer/nand/docs/README.txt24
-rw-r--r--writer/nand/evmc6670l/.cproject4
-rw-r--r--writer/nand/evmc6670l/bin/nand_writer_input.txt2
-rw-r--r--writer/nand/evmc6678l/.cproject3
-rw-r--r--writer/nand/evmc6678l/bin/nand_writer_input.txt2
-rw-r--r--writer/nor/docs/README.txt22
-rw-r--r--writer/nor/evmc6670l/.cproject8
-rw-r--r--writer/nor/evmc6678l/.cproject3
50 files changed, 1130 insertions, 370 deletions
diff --git a/boot_loader/IBL_Makefile b/boot_loader/IBL_Makefile
index d4211c8..3a498fd 100644
--- a/boot_loader/IBL_Makefile
+++ b/boot_loader/IBL_Makefile
@@ -57,6 +57,7 @@
57#* [SPI=no] /* Disables SPI */ 57#* [SPI=no] /* Disables SPI */
58#* [I2C=no] /* Disables I2C */ 58#* [I2C=no] /* Disables I2C */
59#* [EMIF=no] /* Disables EMIF */ 59#* [EMIF=no] /* Disables EMIF */
60#* [MULTI_BOOT=no] /* Disables Multi-boot feature */
60#* [SPI_MODE=<0,1,2,3>] /* Selects the SPI operating mode */ 61#* [SPI_MODE=<0,1,2,3>] /* Selects the SPI operating mode */
61#* [SPI_ADDR_WIDTH=<16,24>] /* Selects the SPI address width */ 62#* [SPI_ADDR_WIDTH=<16,24>] /* Selects the SPI address width */
62#* [SPI_NPIN=<4,5>] /* Selects the number of pins on the interface */ 63#* [SPI_NPIN=<4,5>] /* Selects the number of pins on the interface */
@@ -178,6 +179,10 @@ ifeq ($(EMIF),no)
178 179
179endif 180endif
180 181
182ifeq ($(MULTI_BOOT),no)
183 CEXCLUDES+= MULTI_BOOT
184endif
185
181# The endian of the build. The default target builds a single ROM image with both endians present 186# The endian of the build. The default target builds a single ROM image with both endians present
182ifeq ($(ENDIAN),big) 187ifeq ($(ENDIAN),big)
183 ENDIAN_MODE=big 188 ENDIAN_MODE=big
@@ -265,30 +270,30 @@ $(IBLS_C6X):
265# Configurations for individual evms 270# Configurations for individual evms
266# The c6455 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality 271# The c6455 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality
267evm_c6455: 272evm_c6455:
268 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES= c6455 273 make -f makestg1 ARCH=c64x TARGET=c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES='MULTI_BOOT' c6455
269 274
270# The c6472 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality 275# The c6472 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality
271evm_c6472: 276evm_c6472:
272 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES= c6472 277 make -f makestg1 ARCH=c64x TARGET=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no ENDIAN_MODE=both CEXCLUDES='MULTI_BOOT' c6472
273 278
274# The 6474 EVM has a 32k eeprom. A stripped down version is build with only one endian. 279# The 6474 EVM has a 32k eeprom. A stripped down version is build with only one endian.
275evm_c6474: 280evm_c6474:
276 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS' I2C_SIZE_BYTES=0x8000 c6474 281 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' I2C_SIZE_BYTES=0x8000 c6474
277 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474_le.dat 282 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474_le.dat
278 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS' I2C_SIZE_BYTES=0x8000 c6474 283 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' I2C_SIZE_BYTES=0x8000 c6474
279 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474_be.dat 284 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474_be.dat
280 285
281evm_c6474l: 286evm_c6474l:
282 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS' c6474 287 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6474
283 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474l_le.dat 288 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474l_le.dat
284 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS' c6474 289 make -f makestg1 ARCH=c64x TARGET=c6474 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6474
285 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474l_be.dat 290 cp ibl_c6474/i2crom.dat ibl_c6474/i2crom_0x50_c6474l_be.dat
286 291
287# The 6457 EVM 292# The 6457 EVM
288evm_c6457: 293evm_c6457:
289 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS' c6457 294 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=little CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6457
290 cp ibl_c6457/i2crom.dat ibl_c6457/i2crom_0x50_c6457_le.dat 295 cp ibl_c6457/i2crom.dat ibl_c6457/i2crom_0x50_c6457_le.dat
291 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS' c6457 296 make -f makestg1 ARCH=c64x TARGET=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 COMPACT_I2C=yes ENDIAN_MODE=big CEXCLUDES='ELF NAND_GPIO BIS MULTI_BOOT' c6457
292 cp ibl_c6457/i2crom.dat ibl_c6457/i2crom_0x50_c6457_be.dat 297 cp ibl_c6457/i2crom.dat ibl_c6457/i2crom_0x50_c6457_be.dat
293 298
294# The 6608 EVM 299# The 6608 EVM
@@ -297,17 +302,14 @@ EVM_6608_SPI_DEFS= SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL
297evm_c6608: 302evm_c6608:
298 make -f makestg1 ARCH=c64x TARGET=c661x I2C=no I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_6608_SPI_DEFS)' c661x 303 make -f makestg1 ARCH=c64x TARGET=c661x I2C=no I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_6608_SPI_DEFS)' c661x
299 304
300# The 6678 EVM SPI/NOR Boot 305# The 667x EVM SPI/NOR Boot
301EVM_6678_SPI_DEFS= SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1 306EVM_667x_SPI_DEFS= SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1
302
303evm_c6678_spi:
304 make -f makestg1 ARCH=c64x TARGET=c661x I2C=no I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_6608_SPI_DEFS)' c661x
305 307
306evm_c6678_i2c: 308evm_c667x_spi:
307 make -f makestg1 I2C_BUS_ADDR=$(I2C_BUS_ADDR) I2C_MAP_ADDR=$(I2C_MAP_ADDR) ENDIAN_MODE=$(ENDIAN) ARCH=c64x TARGET=c661x SPI=no INTERNAL_UTILS=no SPI_DEFS='$(EVM_6608_SPI_DEFS)' c661x 309 make -f makestg1 ARCH=c64x TARGET=c661x I2C=no I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_667x_SPI_DEFS)' c661x
308 310
309evm_c6670_i2c: 311evm_c667x_i2c:
310 make -f makestg1 I2C_BUS_ADDR=$(I2C_BUS_ADDR) I2C_MAP_ADDR=$(I2C_MAP_ADDR) ENDIAN_MODE=$(ENDIAN) ARCH=c64x TARGET=c661x SPI=no INTERNAL_UTILS=no SPI_DEFS='$(EVM_6608_SPI_DEFS)' c661x 312 make -f makestg1 I2C_BUS_ADDR=$(I2C_BUS_ADDR) I2C_MAP_ADDR=$(I2C_MAP_ADDR) ENDIAN_MODE=$(ENDIAN) ARCH=c64x TARGET=c661x SPI=no INTERNAL_UTILS=no SPI_DEFS='$(EVM_667x_SPI_DEFS)' c661x
311 313
312test_c661x: 314test_c661x:
313 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NOR_SPI' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x 315 make -f makestg1 ARCH=c64x TARGET=c661x ENDIAN_MODE=both CEXCLUDES='NOR_SPI' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c661x
@@ -382,6 +384,8 @@ clean:
382 find ../ -name *.dc | xargs rm -f 384 find ../ -name *.dc | xargs rm -f
383 find ../ -name *.oa | xargs rm -f 385 find ../ -name *.oa | xargs rm -f
384 find ../ -name *.da | xargs rm -f 386 find ../ -name *.da | xargs rm -f
387 find ../ -name *.tmp | xargs rm -f
388 find ../ -name cdefdep | xargs rm -f
385 389
386 390
387 391
diff --git a/boot_loader/IBL_README.txt b/boot_loader/IBL_README.txt
index 9d9aa25..9c4b8e0 100644
--- a/boot_loader/IBL_README.txt
+++ b/boot_loader/IBL_README.txt
@@ -1,12 +1,9 @@
1C6x Bootloader 1C6x Bootloader
2 2
3Tools required to build IBL: 3Tools required to build IBL:
41. Cygwin 1.7.8-1 (http://www.cygwin.com/) 41. MinGW MSYS v1.0.11 (http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe)
52. TI Code Gen Tools 7.2.0 (bundled with CCSv5) 52. TI Code Gen Tools 7.2.0 (bundled with CCSv5)
6 6
7Notes:
81. For Cygwin installation, be sure to include Bison, Flex, gcc Compiler and make tools which are required to build IBL.
9
10 7
11Steps to build IBL: 8Steps to build IBL:
121. Refer to tools\boot_loader\ibl\doc\release_info.txt on how to build IBL for C66x 91. Refer to tools\boot_loader\ibl\doc\release_info.txt on how to build IBL for C66x
@@ -15,7 +12,7 @@ Steps to build IBL:
15Steps to program IBL: 12Steps to program IBL:
16 13
171. Program IBL ROM data to I2C EEPROM bus address 0x51: 141. Program IBL ROM data to I2C EEPROM bus address 0x51:
18 a. Copy tools\boot_loader\ibl\src\make\ibl_c661x\i2cRom.dat to tools\writer\eeprom\evmc66xxl\bin directory and rename 15 a. Copy tools\boot_loader\ibl\src\make\ibl_c661x\i2crom.dat to tools\writer\eeprom\evmc66xxl\bin directory and rename
19 it to "app.dat". 16 it to "app.dat".
20 17
21 b. Change bus_addr to "81" (0x51) in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt and save the file. 18 b. Change bus_addr to "81" (0x51) in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt and save the file.
@@ -24,8 +21,7 @@ Steps to program IBL:
24 21
25 22
262. Program boot configuration table to I2C EEPROM bus address 0x51: 232. Program boot configuration table to I2C EEPROM bus address 0x51:
27 a. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM (please refer to the EVM technical 24 a. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM
28 reference manual on how to set the boot mode dip switchs)
29 25
30 b. Load program tools\boot_loader\ibl\src\util\i2cConfig\i2cparam_c661x_le.out to CCS 26 b. Load program tools\boot_loader\ibl\src\util\i2cConfig\i2cparam_c661x_le.out to CCS
31 27
@@ -35,11 +31,22 @@ Steps to program IBL:
35 d. Load tools\boot_loader\ibl\src\util\i2cConfig\i2cConfig.gel (in CCSv5 Tools->GEL Files, right click mouse in GEL Files 31 d. Load tools\boot_loader\ibl\src\util\i2cConfig\i2cConfig.gel (in CCSv5 Tools->GEL Files, right click mouse in GEL Files
36 window and select "Load GEL" 32 window and select "Load GEL"
37 33
38 e. Run the GEL script EVMC66xx IBL->setConfig_c66xx_main, this will by default set the boot parameters for NOR boot over 34 e. Run the GEL script EVMC66xx IBL->setConfig_c66xx_main, wait for 10 seconds to ensure that the script configuration is completed.
39 I2C. Wait for 10 seconds to ensure that the script configuration is completed. 35
40 36
41 f. If the user wants to configure NAND boot or EMAC boot over I2C, he/she should run EVMC66xx IBL->setConfig_c66xx_main 37Supported boot modes:
42 followed by EVMC66xx IBL->setConfig_c66xx_nand or EVMC66xx IBL->setConfig_c66xx_emac. 38
39IBL supports three I2C boot modes: NOR boot, NAND boot and EMAC boot. Both NOR boot and NAND boot support maximum 2 images, EMAC
40boot supports only 1 image. For all the I2C boot modes, user needs to set the boot dip switches to I2C master, bus address 0x51.
43 41
44 g. Press "Enter" in the CCS console window, and the program will write the boot configuration table to the EEPROM 42NOR Boot:
43 Boot parameter index 0 and 1 selects to boot image 0 and 1 from the NOR flash, by default the boot configuration table sets the
44 NOR offset address to be 0 and image format to be ELF for image 0.
45
46NAND Boot:
47 Boot parameter index 2 and 3 selects to boot image 0 and 1 from the NAND flash, by default the boot configuration table sets the
48 NAND offset address to be 16384 (start of block 1) and image format to be BBLOB for image 0.
45 49
50EMAC Boot:
51 Boot parameter index 4 selects to boot an image from a remote TFTP server, by default the boot configuration table sets the
52 server IP to be 192.168.2.101, board IP to be 192.168.2.100 and image format to be ELF.
diff --git a/boot_loader/IBL_buildibl b/boot_loader/IBL_buildibl
new file mode 100644
index 0000000..7ed7ea5
--- /dev/null
+++ b/boot_loader/IBL_buildibl
@@ -0,0 +1,7 @@
1cd ibl/src/make
2
3source setupenvMsys.sh
4make evm_c667x_i2c ENDIAN=little I2C_BUS_ADDR=0x51 INTERNAL_UTILS=no
5
6cd ../../../
7
diff --git a/boot_loader/IBL_makestg2 b/boot_loader/IBL_makestg2
index 8f6d340..760329a 100644
--- a/boot_loader/IBL_makestg2
+++ b/boot_loader/IBL_makestg2
@@ -142,6 +142,7 @@ i2crom:
142 ../util/romparse/romparse $(COMPACT) -rom_base $(I2C_BUS_ADDR) ibl_$(TARGET)/$@.map.pp 142 ../util/romparse/romparse $(COMPACT) -rom_base $(I2C_BUS_ADDR) ibl_$(TARGET)/$@.map.pp
143 $(CP) i2crom.ccs ibl_$(TARGET)/$@.ccs 143 $(CP) i2crom.ccs ibl_$(TARGET)/$@.ccs
144 $(CP) i2crom.ccs ibl_$(TARGET)/$@.dat 144 $(CP) i2crom.ccs ibl_$(TARGET)/$@.dat
145 ../util/btoccs/ccs2bin -swap ibl_$(TARGET)/$@.ccs ibl_$(TARGET)/$@.bin
145 $(RM) i2crom.ccs ibl_le.b ibl.b 146 $(RM) i2crom.ccs ibl_le.b ibl.b
146 147
147spiRom: 148spiRom:
@@ -261,19 +262,18 @@ cleant:
261 rm -rf ibl_$(TARGET)/ibl_init.i2c.le.ccs 262 rm -rf ibl_$(TARGET)/ibl_init.i2c.le.ccs
262 rm -rf ibl_$(TARGET)/ibl_init.le.ccs 263 rm -rf ibl_$(TARGET)/ibl_init.le.ccs
263 rm -rf ibl_$(TARGET)/ibl_init.be.ccs 264 rm -rf ibl_$(TARGET)/ibl_init.be.ccs
264 rm -rf ibl_$(TARGET)/i2crom.ccs 265 rm -rf ibl_$(TARGET)/i2crom*.ccs
265 rm -rf ibl_$(TARGET)/i2crom.dat 266 rm -rf ibl_$(TARGET)/i2crom*.dat
266 rm -rf ibl_$(TARGET)/i2crom_0x50.dat 267 rm -rf ibl_$(TARGET)/i2crom*.bin
267 rm -rf ibl_$(TARGET)/i2crom_0x51.dat 268 rm -rf ibl_$(TARGET)/i2crom*.map.pp
268 rm -rf ibl_$(TARGET)/i2crom.map.pp
269 rm -rf ibl_$(TARGET)/ibl_init_objs.inc 269 rm -rf ibl_$(TARGET)/ibl_init_objs.inc
270 rm -rf ibl_$(TARGET)/ibl_init_objs.pp 270 rm -rf ibl_$(TARGET)/ibl_init_objs.pp
271 rm -rf ibl_$(TARGET)/ibl_init_symbols.inc 271 rm -rf ibl_$(TARGET)/ibl_init_symbols.inc
272 rm -rf ibl_$(TARGET)/ibl_objs.inc 272 rm -rf ibl_$(TARGET)/ibl_objs.inc
273 rm -rf ibl_$(TARGET)/ibl_objs.pp 273 rm -rf ibl_$(TARGET)/ibl_objs.pp
274 rm -rf ibl_$(TARGET)/ibl_objs.tmp 274 rm -rf ibl_$(TARGET)/ibl_objs.tmp
275 rm -rf ibl_$(TARGET)/spiRom.dat 275 rm -rf ibl_$(TARGET)/spiRom*.dat
276 rm -rf ibl_$(TARGET)/spiRom.map.pp 276 rm -rf ibl_$(TARGET)/spiRom*.map.pp
277 277
278 278
279 279
diff --git a/boot_loader/IBL_release_info.txt b/boot_loader/IBL_release_info.txt
index 475726a..678089a 100644
--- a/boot_loader/IBL_release_info.txt
+++ b/boot_loader/IBL_release_info.txt
@@ -1,7 +1,7 @@
1===================================================== 1=====================================================
2C6x Bootloader Release Note 2C6x Bootloader Release Note
3Version: 1.0.0.1 3Version: 1.0.0.4
4March 2011 4May 2011
5===================================================== 5=====================================================
6 6
71) Supported TARGETS: 71) Supported TARGETS:
@@ -9,20 +9,24 @@ March 2011
9 - C6472 9 - C6472
10 - C6474 10 - C6474
11 - C661x 11 - C661x
12
122) Supported ENDIAN 132) Supported ENDIAN
13 - big 14 - big
14 - little 15 - little
16
153) Required toolset 173) Required toolset
16 - TI CGEN compiler CGT_C6000_7.2.0 18 - TI CGEN compiler CGT_C6000_7.2.0
19
174) Build Instructions 204) Build Instructions
18 21
19 - Change directory to ibl\src\make 22 - Change directory to ibl\src\make
20 - Modify the setupenv.bat or setupenvLnx.sh script to match the tool environment 23 - Modify the environment setup script to match the tool chain installation
21 - Set the environment by running "setupenv.bat" or "source setupenvLnx.sh" 24 directory:
25 For building in MINGW-MSYS Bash shell modify setupenvMsys.sh
26 For building in Linux Bash shell modify setupenvLnx.sh
27 - Set the environment by running "setupenv.bat" or "source setupenvMsys.sh"
22 - For building run: 28 - For building run:
23 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 INTERNAL_UTILS=no 29 make evm_c667x_i2c ENDIAN=little I2C_BUS_ADDR=0x51 INTERNAL_UTILS=no
24 or:
25 make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51 INTERNAL_UTILS=no
26 or: 30 or:
27 make <TARGET> ENDIAN=[little|big] 31 make <TARGET> ENDIAN=[little|big]
28 make c6455 ENDIAN=liitle 32 make c6455 ENDIAN=liitle
diff --git a/boot_loader/IBL_setupenv.bat b/boot_loader/IBL_setupenv.bat
deleted file mode 100644
index 3c92a38..0000000
--- a/boot_loader/IBL_setupenv.bat
+++ /dev/null
@@ -1,31 +0,0 @@
1@REM ******************************************************************************
2@REM * FILE PURPOSE: Environment Setup for building Bootloader
3@REM ******************************************************************************
4@REM * FILE NAME: setupenv.bat
5@REM *
6@REM * DESCRIPTION:
7@REM * Configures and sets up the Build Environment for Bootloader in DOS environment.
8@REM *
9@REM * Customers are expected to modify this file as per their build environment.
10@REM *
11@REM * USAGE:
12@REM * setupenv.bat
13@REM *
14@REM * Copyright (C) 2010, Texas Instruments, Inc.
15@REM *****************************************************************************
16
17@echo off
18
19REM Setup the ibl build environment
20
21REM Modify following lines based on target environment for the toolset installed
22REM Dependency is related to path for Cygwin and CGEN installed
23
24REM PATH=C:\cygwin\bin;C:\PROGRA~1\TEXASI~1\ccsv5\tools\compiler\c6000\bin
25
26set PATH=E:\cygwin\bin;T:\c6xx\cgen_7_2_0\c6000\cgtools\bin
27set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
28set CYGWINPATH=E:/cygwin/bin
29set BISONSKEL=yacc.c
30set TOOLSC6X=t:/c6xx/cgen_7_2_0/c6000/cgtools
31set TOOLSC6XDOS=t:\c6xx\cgen_7_2_0\c6000\cgtools
diff --git a/boot_loader/IBL_setupenvMsys.sh b/boot_loader/IBL_setupenvMsys.sh
new file mode 100644
index 0000000..66855aa
--- /dev/null
+++ b/boot_loader/IBL_setupenvMsys.sh
@@ -0,0 +1,15 @@
1#!/bin/bash
2
3# Environment setup to be done if using MSYS Bash shell for build
4
5# Specify the base directory of the c6000 compiler with UNIX style path separator
6export C6X_BASE_DIR='"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000"'
7
8# Specify the base directory of the c6000 compiler in format understandable by the MSYS Bash shell
9export C6X_BASE_DIR_MSYS=/c/Program\ Files/Texas\ Instruments/ccsv5/tools/compiler/c6000
10
11# Don't modify the below variables. They are derived from the above definitions
12export PATH=$PATH:$C6X_BASE_DIR_MSYS/bin
13export TOOLSC6X=$C6X_BASE_DIR
14export TOOLSC6XDOS=$C6X_BASE_DIR
15
diff --git a/boot_loader/examples/i2c/emac/docs/README.txt b/boot_loader/examples/i2c/emac/docs/README.txt
index 5043281..99a59d2 100644
--- a/boot_loader/examples/i2c/emac/docs/README.txt
+++ b/boot_loader/examples/i2c/emac/docs/README.txt
@@ -4,46 +4,47 @@ A simple Hello World example demonstrating EMAC boot over I2C.
4 4
5Steps to build the example: 5Steps to build the example:
6 6
71. Import the i2cemacboot CCS project from tools\boot_loader\examples\i2c\emac\evmc6xxxl directory. (in CCSv5, 71. Import the i2cemacboot CCS project from tools\boot_loader\examples\i2c\emac\evmc66xxl directory. (in CCSv5,
8 Project->Import Existing CCS/CCE Eclipse Projects) 8 Project->Import Existing CCS/CCE Eclipse Projects)
9 9
102. Clean the i2cemacboot project and re-build the project, after build is completed, i2cemacboot_evm6xxxl.out and 102. Clean the i2cemacboot project and re-build the project, after build is completed, i2cemacboot_evm66xxl.out and
11 i2cemacboot_evm6xxxl.map will be generated under tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin directory. 11 i2cemacboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\emac\evmc66xxl\bin directory.
12 12
13Steps to run i2cemacboot in CCSv5: 13Steps to run i2cemacboot in CCSv5:
14 14
151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM, please refer to the EVM technical 151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
16 reference manual on how to set the boot mode dip switches.
17 16
182. Load the program tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin\i2cemacboot_evm6xxxl.out to CCS. 172. Load the program tools\boot_loader\examples\i2c\emac\evmc66xxl\bin\i2cemacboot_evm66xxl.out to CCS.
19 18
203. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal. 193. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal.
21 20
224. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and 214. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and
23 Flow control none. Be sure the COM port # is set correctly. 22 Flow control none. Be sure the COM port # is set correctly.
24 23
255. Run the program in CCS, POST will send the booting image info to both the CCS console and the Hyper Terminal. 245. Run the program in CCS, i2cemacboot will send the hello world booting info to both the CCS console and the
26 25 Hyper Terminal.
27 26
28Steps to program i2cemacboot to EMAC: 27Steps to program i2cemacboot to EMAC:
29 28
301. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to 291. Be sure IBL and boot configuration table are programmed to I2C EEPROM bus address 81 (0x51), if IBL and/or
31 tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. 30 boot configuration table are not programmed, refer to tools\boot_loader\ibl\doc\README.txt on how to program
32 31 the IBL and boot configuration table to EEPROM.
332. Be sure EMAC boot parameter table is programmed to I2C EEPROM bus address 81 (0x51), if the table is not programmed,
34 refer to tools\boot_loader\ibl\doc\README.txt on how to program the boot parameter table to EEPROM.
35 32
363. Copy tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin\i2cemacboot_evm6xxxl.out to tools\bin2ccs and rename 332. Copy tools\boot_loader\examples\i2c\emac\evmc66xxl\bin\i2cemacboot_evm66xxl.out to tools\bin2ccs and rename
37 the file to app.out. 34 the file to app.out.
38 35
394. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. 363. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat.
40 37
415. Start a TFTP server (you can download a free, open source application from http://tftpd32.jounin.net) and copy 384. Start a TFTP server (you can download a free, open source application from http://tftpd32.jounin.net) and copy
42 app.dat to the TFTP base directory. 39 app.dat to the TFTP base directory.
43 40
446. Set the IP address of the PC that is running the TFTP server to 192.168.2.101, since by default IBL will set the EVM IP 415. Set the IP address of the PC that is running the TFTP server to 192.168.2.101, since by default IBL will set the EVM
45 address to 192.168.2.100 and the TFTP server IP address to 192.168.2.101. 42 IP address to 192.168.2.100 and the TFTP server IP address to 192.168.2.101.
43
446. Set the boot dip switches to I2C master mode, bus address 81 (0x51) and boot parameter index to be 4.
46 45
477. Be sure the EVM and the PC are connected in the same subnet of a local network, after POR, the EVM will download the 467. Be sure the EVM and the PC are connected in the same subnet of a local network, after POR, IBL will download the
48 boot image from TFTP server and boot from it. 47 boot image from TFTP server and boot from it. By default IBL will boot an ELF format image, if user wants to boot
48 an image of other formats, he/she needs to change the boot configuration table accordingly, and re-program the table
49 to the EEPROM.
49 50
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/.ccsproject b/boot_loader/examples/i2c/emac/evmc6670l/.ccsproject
new file mode 100644
index 0000000..79d3116
--- /dev/null
+++ b/boot_loader/examples/i2c/emac/evmc6670l/.ccsproject
@@ -0,0 +1,10 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<?ccsproject version="1.0"?>
3
4<projectOptions>
5<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
6<deviceEndianness value="little"/>
7<codegenToolVersion value="7.2.0"/>
8<isElfFormat value="true"/>
9<rts value="rts6600_elf.lib"/>
10</projectOptions>
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/.cproject b/boot_loader/examples/i2c/emac/evmc6670l/.cproject
new file mode 100644
index 0000000..b056636
--- /dev/null
+++ b/boot_loader/examples/i2c/emac/evmc6670l/.cproject
@@ -0,0 +1,82 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<?fileVersion 4.0.0?>
3
4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5 <storageModule moduleId="org.eclipse.cdt.core.settings">
6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug">
8 <externalSettings/>
9 <extensions>
10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
11 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
13 <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15 </extensions>
16 </storageModule>
17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
18 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
19 <configuration artifactExtension="out" artifactName="../bin/i2cemacboot_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
23 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
24 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
25 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
33 <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.30003368" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
34 <builder buildPath="${workspace_loc:/i2cemacboot/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1571910857" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
35 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1787566966" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
36 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1206666269" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
37 <listOptionValue builtIn="false" value="225"/>
38 </option>
39 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1353471041" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
40 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
41 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform&quot;"/>
42 </option>
43 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1765753112" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/>
44 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.397546270" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
45 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1186530295" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
46 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.46202294" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
47 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.2124959934" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
48 </tool>
49 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
50 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.572435525" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;../bin/i2cemacboot_evm6670l.out&quot;" valueType="string"/>
51 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.405326097" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;../bin/i2cemacboot_evm6670l.map&quot;" valueType="string"/>
52 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1992557769" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
53 <listOptionValue builtIn="false" value="&quot;rts6600_elf.lib&quot;"/>
54 <listOptionValue builtIn="false" value="&quot;ti.platform.evm6670l.ae66&quot;"/>
55 </option>
56 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.352622214" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
57 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
58 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
59 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug&quot;"/>
60 </option>
61 </tool>
62 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1242540186" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
63 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.496009253" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
64 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
65 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
66 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/>
68 </tool>
69 </toolChain>
70 </folderInfo>
71 </configuration>
72 </storageModule>
73 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
74 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
75 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
76 <storageModule moduleId="scannerConfiguration"/>
77 </cconfiguration>
78 </storageModule>
79 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
80 <project id="i2cemacboot.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
81 </storageModule>
82</cproject>
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/.project b/boot_loader/examples/i2c/emac/evmc6670l/.project
new file mode 100644
index 0000000..459c24e
--- /dev/null
+++ b/boot_loader/examples/i2c/emac/evmc6670l/.project
@@ -0,0 +1,96 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription>
3 <name>i2cemacboot_evmc6670l</name>
4 <comment></comment>
5 <projects>
6 </projects>
7 <buildSpec>
8 <buildCommand>
9 <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10 <arguments>
11 <dictionary>
12 <key>?name?</key>
13 <value></value>
14 </dictionary>
15 <dictionary>
16 <key>org.eclipse.cdt.make.core.append_environment</key>
17 <value>true</value>
18 </dictionary>
19 <dictionary>
20 <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
21 <value>all</value>
22 </dictionary>
23 <dictionary>
24 <key>org.eclipse.cdt.make.core.buildArguments</key>
25 <value>-k</value>
26 </dictionary>
27 <dictionary>
28 <key>org.eclipse.cdt.make.core.buildCommand</key>
29 <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value>
30 </dictionary>
31 <dictionary>
32 <key>org.eclipse.cdt.make.core.buildLocation</key>
33 <value>${workspace_loc:/i2cemacboot/Debug}</value>
34 </dictionary>
35 <dictionary>
36 <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
37 <value>clean</value>
38 </dictionary>
39 <dictionary>
40 <key>org.eclipse.cdt.make.core.contents</key>
41 <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
42 </dictionary>
43 <dictionary>
44 <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
45 <value>true</value>
46 </dictionary>
47 <dictionary>
48 <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
49 <value>true</value>
50 </dictionary>
51 <dictionary>
52 <key>org.eclipse.cdt.make.core.enableFullBuild</key>
53 <value>true</value>
54 </dictionary>
55 <dictionary>
56 <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
57 <value>all</value>
58 </dictionary>
59 <dictionary>
60 <key>org.eclipse.cdt.make.core.stopOnError</key>
61 <value>true</value>
62 </dictionary>
63 <dictionary>
64 <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
65 <value>true</value>
66 </dictionary>
67 </arguments>
68 </buildCommand>
69 <buildCommand>
70 <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
71 <triggers>full,incremental,</triggers>
72 <arguments>
73 </arguments>
74 </buildCommand>
75 </buildSpec>
76 <natures>
77 <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
78 <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
79 <nature>org.eclipse.cdt.core.cnature</nature>
80 <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
81 <nature>org.eclipse.cdt.core.ccnature</nature>
82 <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
83 </natures>
84 <linkedResources>
85 <link>
86 <name>README.txt</name>
87 <type>1</type>
88 <location>TI_MCSDK_I2CEXAMPLES_DIR/emac/docs/README.txt</location>
89 </link>
90 <link>
91 <name>src</name>
92 <type>2</type>
93 <locationURI>TI_MCSDK_I2CEXAMPLES_DIR/emac/src</locationURI>
94 </link>
95 </linkedResources>
96</projectDescription>
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd b/boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd
new file mode 100644
index 0000000..cab1993
--- /dev/null
+++ b/boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd
@@ -0,0 +1,77 @@
1/******************************************************************************
2 * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *****************************************************************************/
33/*
34 * Linker command file
35 *
36 */
37
38-c
39-heap 0x40000
40-stack 0x8000
41
42/* Memory Map 1 - the default */
43MEMORY
44{
45 L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF
46 L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF
47
48 L2SRAM (RWX) : org = 0x0820000, len = 0xe0000
49 MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
50 DDR3 (RWX) : org = 0x80000000,len = 0x10000000
51}
52
53SECTIONS
54{
55 .csl_vect > L2SRAM
56 .cppi > L2SRAM
57 .linkram > L2SRAM
58 .mac_buffer > L2SRAM
59 platform_lib > L2SRAM
60 .text > L2SRAM
61 GROUP (NEAR_DP)
62 {
63 .neardata
64 .rodata
65 .bss
66 } load > L2SRAM
67 .stack > L2SRAM
68 .cinit > L2SRAM
69 .cio > L2SRAM
70 .const > L2SRAM
71 .data > L2SRAM
72 .switch > L2SRAM
73 .sysmem > L2SRAM
74 .far > L2SRAM
75 .testMem > L2SRAM
76 .fardata > L2SRAM
77}
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/macros.ini b/boot_loader/examples/i2c/emac/evmc6670l/macros.ini
new file mode 100644
index 0000000..f4e4f7b
--- /dev/null
+++ b/boot_loader/examples/i2c/emac/evmc6670l/macros.ini
@@ -0,0 +1 @@
TI_MCSDK_I2CEXAMPLES_DIR="../../../../
diff --git a/boot_loader/examples/i2c/emac/evmc6678l/.cproject b/boot_loader/examples/i2c/emac/evmc6678l/.cproject
index b31f384..da96a73 100644
--- a/boot_loader/examples/i2c/emac/evmc6678l/.cproject
+++ b/boot_loader/examples/i2c/emac/evmc6678l/.cproject
@@ -75,6 +75,7 @@
75 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 75 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
76 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 76 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
77 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 77 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
78 <storageModule moduleId="scannerConfiguration"/>
78 </cconfiguration> 79 </cconfiguration>
79 </storageModule> 80 </storageModule>
80 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 81 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/boot_loader/examples/i2c/emac/evmc6678l/.project b/boot_loader/examples/i2c/emac/evmc6678l/.project
index f844a5e..e1f5627 100644
--- a/boot_loader/examples/i2c/emac/evmc6678l/.project
+++ b/boot_loader/examples/i2c/emac/evmc6678l/.project
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription> 2<projectDescription>
3 <name>i2cemacboot</name> 3 <name>i2cemacboot_evmc6678l</name>
4 <comment></comment> 4 <comment></comment>
5 <projects> 5 <projects>
6 </projects> 6 </projects>
diff --git a/boot_loader/examples/i2c/nand/docs/README.txt b/boot_loader/examples/i2c/nand/docs/README.txt
index 889e074..049095d 100644
--- a/boot_loader/examples/i2c/nand/docs/README.txt
+++ b/boot_loader/examples/i2c/nand/docs/README.txt
@@ -4,44 +4,51 @@ A simple Hello World example demonstrating NAND boot over I2C.
4 4
5Steps to build the example: 5Steps to build the example:
6 6
71. Import the i2cnandboot CCS project from tools\boot_loader\examples\i2c\nand\evmc6xxxl directory. (in CCSv5, 71. Import the i2cnandboot CCS project from tools\boot_loader\examples\i2c\nand\evmc66xxl directory. (in CCSv5,
8 Project->Import Existing CCS/CCE Eclipse Projects) 8 Project->Import Existing CCS/CCE Eclipse Projects)
9 9
102. Clean the i2cnandboot project and re-build the project, after build is completed, i2cnandboot_evm6xxxl.out and 102. Clean the i2cnandboot project and re-build the project, after build is completed, i2cnandboot_evm66xxl.out and
11 i2cnandboot_evm6xxxl.map will be generated under tools\boot_loader\examples\i2c\nand\evmc6xxxl\bin directory. 11 i2cnandboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\nand\evmc66xxl\bin directory.
12 12
13Steps to run i2cnandboot in CCSv5: 13Steps to run i2cnandboot in CCSv5:
14 14
151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM, please refer to the EVM technical 151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
16 reference manual on how to set the boot mode dip switches.
17 16
182. Load the program tools\boot_loader\examples\i2c\nand\evmc6xxxl\bin\i2cnandboot_evm6xxxl.out to CCS. 172. Load the program tools\boot_loader\examples\i2c\nand\evmc66xxl\bin\i2cnandboot_evm66xxl.out to CCS.
19 18
203. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal. 193. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal.
21 20
224. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and 214. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and
23 Flow control none. Be sure the COM port # is set correctly. 22 Flow control none. Be sure the COM port # is set correctly.
24 23
255. Run the program in CCS, POST will send the booting image info to both the CCS console and the Hyper Terminal. 245. Run the program in CCS, i2cnandboot will send the hello world booting info to both the CCS console and the
26 25 Hyper Terminal.
27 26
28Steps to program i2cnandboot to NAND: 27Steps to program i2cnandboot to NAND:
29 28
301. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to 291. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to
31 tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. 30 tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM.
32 31
332. Be sure NAND boot parameter table is programmed to I2C EEPROM bus address 81 (0x51), if the table is not programmed, 322. By default, IBL will boot a BBLOB image (Linux kernel) from NAND, to run this example, we need to change the
34 refer to tools\boot_loader\ibl\doc\README.txt on how to program the boot parameter table to EEPROM. 33 NAND boot image format to ELF:
35 34 a. In setConfig_c66xx_main() of tools\boot_loader\ibl\src\util\i2cConfig\i2cConfig.gel,
363. Copy tools\boot_loader\examples\i2c\nand\evmc6xxxl\bin\i2cnandboot_evm6xxxl.out to tools\bin2ccs and rename 35 replace
36 ibl.bootModes[1].u.nandBoot.bootFormat = ibl_BOOT_FORMAT_BBLOB;
37 with
38 ibl.bootModes[1].u.nandBoot.bootFormat = ibl_BOOT_FORMAT_ELF;
39 b. Re-program the boot configuration table, refer to tools\boot_loader\ibl\doc\README.txt on how to program
40 the boot configuration table to EEPROM.
41
423. Copy tools\boot_loader\examples\i2c\nand\evmc66xxl\bin\i2cnandboot_evm66xxl.out to tools\bin2ccs and rename
37 the file to app.out. 43 the file to app.out.
38 44
394. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. 454. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat.
40 46
415. Copy app.dat to tools\writer\nand\evmc6xxxl\bin and refer to tools\writer\nand\docs\README.txt on how to program 475. Copy app.dat to tools\writer\nand\evmc66xxl\bin and refer to tools\writer\nand\docs\README.txt on how to program
42 the app.dat to NAND flash. 48 the app.dat to NAND flash.
43 49
447. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x51 506. Once the programming is completed successfully, set the boot dip switches to I2C master mode,
45 (please refer to the EVM technical reference manual on how to set the boot mode dip switches) and 51 bus address 81 (0x51) and boot parameter index to be 2.
46 boot the Hello World image from the NAND flash after POR. 52
537. After POR, IBL will boot the hello world image from NAND.
47 54
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject b/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject
new file mode 100644
index 0000000..79d3116
--- /dev/null
+++ b/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject
@@ -0,0 +1,10 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<?ccsproject version="1.0"?>
3
4<projectOptions>
5<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
6<deviceEndianness value="little"/>
7<codegenToolVersion value="7.2.0"/>
8<isElfFormat value="true"/>
9<rts value="rts6600_elf.lib"/>
10</projectOptions>
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.cproject b/boot_loader/examples/i2c/nand/evmc6670l/.cproject
new file mode 100644
index 0000000..da2ec0b
--- /dev/null
+++ b/boot_loader/examples/i2c/nand/evmc6670l/.cproject
@@ -0,0 +1,82 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<?fileVersion 4.0.0?>
3
4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5 <storageModule moduleId="org.eclipse.cdt.core.settings">
6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug">
8 <externalSettings/>
9 <extensions>
10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
11 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
13 <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15 </extensions>
16 </storageModule>
17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
18 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
19 <configuration artifactExtension="out" artifactName="../bin/i2cnandboot_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
23 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
24 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
25 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
33 <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.30003368" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
34 <builder buildPath="${workspace_loc:/i2cnandboot/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1571910857" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
35 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1787566966" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
36 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1206666269" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
37 <listOptionValue builtIn="false" value="225"/>
38 </option>
39 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1353471041" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
40 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
41 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform&quot;"/>
42 </option>
43 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1765753112" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/>
44 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.397546270" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
45 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1186530295" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
46 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.46202294" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
47 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.2124959934" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
48 </tool>
49 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
50 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.572435525" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;../bin/i2cnandboot_evm6670l.out&quot;" valueType="string"/>
51 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.405326097" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;../bin/i2cnandboot_evm6670l.map&quot;" valueType="string"/>
52 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1992557769" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
53 <listOptionValue builtIn="false" value="&quot;rts6600_elf.lib&quot;"/>
54 <listOptionValue builtIn="false" value="&quot;ti.platform.evm6670l.ae66&quot;"/>
55 </option>
56 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.352622214" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
57 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
58 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
59 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug&quot;"/>
60 </option>
61 </tool>
62 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1242540186" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
63 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.496009253" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
64 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
65 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
66 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/>
68 </tool>
69 </toolChain>
70 </folderInfo>
71 </configuration>
72 </storageModule>
73 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
74 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
75 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
76 <storageModule moduleId="scannerConfiguration"/>
77 </cconfiguration>
78 </storageModule>
79 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
80 <project id="i2cnandboot.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
81 </storageModule>
82</cproject>
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.project b/boot_loader/examples/i2c/nand/evmc6670l/.project
new file mode 100644
index 0000000..d7af0c2
--- /dev/null
+++ b/boot_loader/examples/i2c/nand/evmc6670l/.project
@@ -0,0 +1,96 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription>
3 <name>i2cnandboot_evmc6670l</name>
4 <comment></comment>
5 <projects>
6 </projects>
7 <buildSpec>
8 <buildCommand>
9 <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10 <arguments>
11 <dictionary>
12 <key>?name?</key>
13 <value></value>
14 </dictionary>
15 <dictionary>
16 <key>org.eclipse.cdt.make.core.append_environment</key>
17 <value>true</value>
18 </dictionary>
19 <dictionary>
20 <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
21 <value>all</value>
22 </dictionary>
23 <dictionary>
24 <key>org.eclipse.cdt.make.core.buildArguments</key>
25 <value>-k</value>
26 </dictionary>
27 <dictionary>
28 <key>org.eclipse.cdt.make.core.buildCommand</key>
29 <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value>
30 </dictionary>
31 <dictionary>
32 <key>org.eclipse.cdt.make.core.buildLocation</key>
33 <value>${workspace_loc:/i2cnandboot/Debug}</value>
34 </dictionary>
35 <dictionary>
36 <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
37 <value>clean</value>
38 </dictionary>
39 <dictionary>
40 <key>org.eclipse.cdt.make.core.contents</key>
41 <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
42 </dictionary>
43 <dictionary>
44 <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
45 <value>true</value>
46 </dictionary>
47 <dictionary>
48 <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
49 <value>true</value>
50 </dictionary>
51 <dictionary>
52 <key>org.eclipse.cdt.make.core.enableFullBuild</key>
53 <value>true</value>
54 </dictionary>
55 <dictionary>
56 <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
57 <value>all</value>
58 </dictionary>
59 <dictionary>
60 <key>org.eclipse.cdt.make.core.stopOnError</key>
61 <value>true</value>
62 </dictionary>
63 <dictionary>
64 <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
65 <value>true</value>
66 </dictionary>
67 </arguments>
68 </buildCommand>
69 <buildCommand>
70 <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
71 <triggers>full,incremental,</triggers>
72 <arguments>
73 </arguments>
74 </buildCommand>
75 </buildSpec>
76 <natures>
77 <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
78 <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
79 <nature>org.eclipse.cdt.core.cnature</nature>
80 <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
81 <nature>org.eclipse.cdt.core.ccnature</nature>
82 <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
83 </natures>
84 <linkedResources>
85 <link>
86 <name>README.txt</name>
87 <type>1</type>
88 <location>TI_MCSDK_I2CEXAMPLES_DIR/nand/docs/README.txt</location>
89 </link>
90 <link>
91 <name>src</name>
92 <type>2</type>
93 <locationURI>TI_MCSDK_I2CEXAMPLES_DIR/nand/src</locationURI>
94 </link>
95 </linkedResources>
96</projectDescription>
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd b/boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd
new file mode 100644
index 0000000..cab1993
--- /dev/null
+++ b/boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd
@@ -0,0 +1,77 @@
1/******************************************************************************
2 * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *****************************************************************************/
33/*
34 * Linker command file
35 *
36 */
37
38-c
39-heap 0x40000
40-stack 0x8000
41
42/* Memory Map 1 - the default */
43MEMORY
44{
45 L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF
46 L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF
47
48 L2SRAM (RWX) : org = 0x0820000, len = 0xe0000
49 MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
50 DDR3 (RWX) : org = 0x80000000,len = 0x10000000
51}
52
53SECTIONS
54{
55 .csl_vect > L2SRAM
56 .cppi > L2SRAM
57 .linkram > L2SRAM
58 .mac_buffer > L2SRAM
59 platform_lib > L2SRAM
60 .text > L2SRAM
61 GROUP (NEAR_DP)
62 {
63 .neardata
64 .rodata
65 .bss
66 } load > L2SRAM
67 .stack > L2SRAM
68 .cinit > L2SRAM
69 .cio > L2SRAM
70 .const > L2SRAM
71 .data > L2SRAM
72 .switch > L2SRAM
73 .sysmem > L2SRAM
74 .far > L2SRAM
75 .testMem > L2SRAM
76 .fardata > L2SRAM
77}
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/macros.ini b/boot_loader/examples/i2c/nand/evmc6670l/macros.ini
new file mode 100644
index 0000000..f4e4f7b
--- /dev/null
+++ b/boot_loader/examples/i2c/nand/evmc6670l/macros.ini
@@ -0,0 +1 @@
TI_MCSDK_I2CEXAMPLES_DIR="../../../../
diff --git a/boot_loader/examples/i2c/nand/evmc6678l/.cproject b/boot_loader/examples/i2c/nand/evmc6678l/.cproject
index d67cafb..7f10c5b 100644
--- a/boot_loader/examples/i2c/nand/evmc6678l/.cproject
+++ b/boot_loader/examples/i2c/nand/evmc6678l/.cproject
@@ -75,6 +75,7 @@
75 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 75 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
76 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 76 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
77 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 77 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
78 <storageModule moduleId="scannerConfiguration"/>
78 </cconfiguration> 79 </cconfiguration>
79 </storageModule> 80 </storageModule>
80 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 81 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/boot_loader/examples/i2c/nand/evmc6678l/.project b/boot_loader/examples/i2c/nand/evmc6678l/.project
index 50fbc4c..61e23d0 100644
--- a/boot_loader/examples/i2c/nand/evmc6678l/.project
+++ b/boot_loader/examples/i2c/nand/evmc6678l/.project
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription> 2<projectDescription>
3 <name>i2cnandboot</name> 3 <name>i2cnandboot_evmc6678l</name>
4 <comment></comment> 4 <comment></comment>
5 <projects> 5 <projects>
6 </projects> 6 </projects>
diff --git a/boot_loader/examples/i2c/nor/docs/README.txt b/boot_loader/examples/i2c/nor/docs/README.txt
index 0d685b6..1718136 100644
--- a/boot_loader/examples/i2c/nor/docs/README.txt
+++ b/boot_loader/examples/i2c/nor/docs/README.txt
@@ -4,44 +4,42 @@ A simple Hello World example demonstrating NOR boot over I2C.
4 4
5Steps to build the example: 5Steps to build the example:
6 6
71. Import the i2cnorboot CCS project from tools\boot_loader\examples\i2c\nor\evmc6xxxl directory. (in CCSv5, 71. Import the i2cnorboot CCS project from tools\boot_loader\examples\i2c\nor\evmc66xxl directory. (in CCSv5,
8 Project->Import Existing CCS/CCE Eclipse Projects) 8 Project->Import Existing CCS/CCE Eclipse Projects)
9 9
102. Clean the i2cnorboot project and re-build the project, after build is completed, i2cnorboot_evm6xxxl.out and 102. Clean the i2cnorboot project and re-build the project, after build is completed, i2cnorboot_evm66xxl.out and
11 i2cnorboot_evm6xxxl.map will be generated under tools\boot_loader\examples\i2c\nor\evmc6xxxl\bin directory. 11 i2cnorboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\nor\evmc66xxl\bin directory.
12 12
13Steps to run i2cnorboot in CCSv5: 13Steps to run i2cnorboot in CCSv5:
14 14
151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM, please refer to the EVM technical 151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
16 reference manual on how to set the boot mode dip switches.
17 16
182. Load the program tools\boot_loader\examples\i2c\nor\evmc6xxxl\bin\i2cnorboot_evm6xxxl.out to CCS. 172. Load the program tools\boot_loader\examples\i2c\nor\evmc66xxl\bin\i2cnorboot_evm66xxl.out to CCS.
19 18
203. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal. 193. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal.
21 20
224. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and 214. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and
23 Flow control none. Be sure the COM port # is set correctly. 22 Flow control none. Be sure the COM port # is set correctly.
24 23
255. Run the program in CCS, POST will send the booting image info to both the CCS console and the Hyper Terminal. 245. Run the program in CCS, i2cnorboot will send the hello world booting info to both the CCS console and the
25 Hyper Terminal.
26 26
27 27
28Steps to program i2cnorboot to NOR: 28Steps to program i2cnorboot to NOR:
29 29
301. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to 301. Be sure IBL and boot configuration table are programmed to I2C EEPROM bus address 81 (0x51), if IBL and/or
31 tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. 31 boot configuration table are not programmed, refer to tools\boot_loader\ibl\doc\README.txt on how to program
32 the IBL and boot configuration table to EEPROM.
32 33
332. Be sure NOR boot parameter table is programmed to I2C EEPROM bus address 81 (0x51), if the table is not programmed, 342. Copy tools\boot_loader\examples\i2c\nor\evmc66xxl\bin\i2cnorboot_evm66xxl.out to tools\bin2ccs and rename
34 refer to tools\boot_loader\ibl\doc\README.txt on how to program the boot parameter table to EEPROM.
35
363. Copy tools\boot_loader\examples\i2c\nor\evmc6xxxl\bin\i2cnorboot_evm6xxxl.out to tools\bin2ccs and rename
37 the file to app.out. 35 the file to app.out.
38 36
394. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. 373. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat.
40 38
415. Copy app.dat to tools\writer\nor\evmc6xxxl\bin and refer to tools\writer\nor\docs\README.txt on how to program 394. Copy app.dat to tools\writer\nor\evmc66xxl\bin and refer to tools\writer\nor\docs\README.txt on how to program
42 the app.dat to NOR flash. 40 the app.dat to NOR flash.
43 41
447. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x51 425. Once the programming is completed successfully, set the boot dip switches to I2C master mode,
45 (please refer to the EVM technical reference manual on how to set the boot mode dip switches) and 43 bus address 81 (0x51) and boot parameter index to be 0.
46 boot the Hello World image from the NOR flash after POR.
47 44
456. After POR, IBL will boot the hello world image from NOR.
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject b/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject
new file mode 100644
index 0000000..79d3116
--- /dev/null
+++ b/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject
@@ -0,0 +1,10 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<?ccsproject version="1.0"?>
3
4<projectOptions>
5<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
6<deviceEndianness value="little"/>
7<codegenToolVersion value="7.2.0"/>
8<isElfFormat value="true"/>
9<rts value="rts6600_elf.lib"/>
10</projectOptions>
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.cproject b/boot_loader/examples/i2c/nor/evmc6670l/.cproject
new file mode 100644
index 0000000..0a5aee8
--- /dev/null
+++ b/boot_loader/examples/i2c/nor/evmc6670l/.cproject
@@ -0,0 +1,82 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<?fileVersion 4.0.0?>
3
4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5 <storageModule moduleId="org.eclipse.cdt.core.settings">
6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug">
8 <externalSettings/>
9 <extensions>
10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
11 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
13 <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15 </extensions>
16 </storageModule>
17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
18 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
19 <configuration artifactExtension="out" artifactName="../bin/i2cnorboot_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
23 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
24 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
25 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
33 <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.30003368" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
34 <builder buildPath="${workspace_loc:/i2cnorboot/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1571910857" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
35 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1787566966" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
36 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1206666269" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
37 <listOptionValue builtIn="false" value="225"/>
38 </option>
39 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1353471041" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
40 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
41 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform&quot;"/>
42 </option>
43 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1765753112" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/>
44 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.397546270" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
45 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1186530295" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
46 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.46202294" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
47 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.2124959934" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
48 </tool>
49 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
50 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.572435525" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;../bin/i2cnorboot_evm6670l.out&quot;" valueType="string"/>
51 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.405326097" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;../bin/i2cnorboot_evm6670l.map&quot;" valueType="string"/>
52 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1992557769" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
53 <listOptionValue builtIn="false" value="&quot;rts6600_elf.lib&quot;"/>
54 <listOptionValue builtIn="false" value="&quot;ti.platform.evm6670l.ae66&quot;"/>
55 </option>
56 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.352622214" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
57 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
58 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
59 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug&quot;"/>
60 </option>
61 </tool>
62 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1242540186" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
63 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.496009253" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
64 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
65 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
66 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/>
68 </tool>
69 </toolChain>
70 </folderInfo>
71 </configuration>
72 </storageModule>
73 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
74 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
75 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
76 <storageModule moduleId="scannerConfiguration"/>
77 </cconfiguration>
78 </storageModule>
79 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
80 <project id="i2cnorboot.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
81 </storageModule>
82</cproject>
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.project b/boot_loader/examples/i2c/nor/evmc6670l/.project
new file mode 100644
index 0000000..0b1d76f
--- /dev/null
+++ b/boot_loader/examples/i2c/nor/evmc6670l/.project
@@ -0,0 +1,96 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription>
3 <name>i2cnorboot_evmc6670l</name>
4 <comment></comment>
5 <projects>
6 </projects>
7 <buildSpec>
8 <buildCommand>
9 <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10 <arguments>
11 <dictionary>
12 <key>?name?</key>
13 <value></value>
14 </dictionary>
15 <dictionary>
16 <key>org.eclipse.cdt.make.core.append_environment</key>
17 <value>true</value>
18 </dictionary>
19 <dictionary>
20 <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
21 <value>all</value>
22 </dictionary>
23 <dictionary>
24 <key>org.eclipse.cdt.make.core.buildArguments</key>
25 <value>-k</value>
26 </dictionary>
27 <dictionary>
28 <key>org.eclipse.cdt.make.core.buildCommand</key>
29 <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value>
30 </dictionary>
31 <dictionary>
32 <key>org.eclipse.cdt.make.core.buildLocation</key>
33 <value>${workspace_loc:/i2cnorboot/Debug}</value>
34 </dictionary>
35 <dictionary>
36 <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
37 <value>clean</value>
38 </dictionary>
39 <dictionary>
40 <key>org.eclipse.cdt.make.core.contents</key>
41 <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
42 </dictionary>
43 <dictionary>
44 <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
45 <value>true</value>
46 </dictionary>
47 <dictionary>
48 <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
49 <value>true</value>
50 </dictionary>
51 <dictionary>
52 <key>org.eclipse.cdt.make.core.enableFullBuild</key>
53 <value>true</value>
54 </dictionary>
55 <dictionary>
56 <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
57 <value>all</value>
58 </dictionary>
59 <dictionary>
60 <key>org.eclipse.cdt.make.core.stopOnError</key>
61 <value>true</value>
62 </dictionary>
63 <dictionary>
64 <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
65 <value>true</value>
66 </dictionary>
67 </arguments>
68 </buildCommand>
69 <buildCommand>
70 <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
71 <triggers>full,incremental,</triggers>
72 <arguments>
73 </arguments>
74 </buildCommand>
75 </buildSpec>
76 <natures>
77 <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
78 <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
79 <nature>org.eclipse.cdt.core.cnature</nature>
80 <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
81 <nature>org.eclipse.cdt.core.ccnature</nature>
82 <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
83 </natures>
84 <linkedResources>
85 <link>
86 <name>README.txt</name>
87 <type>1</type>
88 <location>TI_MCSDK_I2CEXAMPLES_DIR/nor/docs/README.txt</location>
89 </link>
90 <link>
91 <name>src</name>
92 <type>2</type>
93 <locationURI>TI_MCSDK_I2CEXAMPLES_DIR/nor/src</locationURI>
94 </link>
95 </linkedResources>
96</projectDescription>
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd b/boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd
new file mode 100644
index 0000000..cab1993
--- /dev/null
+++ b/boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd
@@ -0,0 +1,77 @@
1/******************************************************************************
2 * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *****************************************************************************/
33/*
34 * Linker command file
35 *
36 */
37
38-c
39-heap 0x40000
40-stack 0x8000
41
42/* Memory Map 1 - the default */
43MEMORY
44{
45 L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF
46 L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF
47
48 L2SRAM (RWX) : org = 0x0820000, len = 0xe0000
49 MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
50 DDR3 (RWX) : org = 0x80000000,len = 0x10000000
51}
52
53SECTIONS
54{
55 .csl_vect > L2SRAM
56 .cppi > L2SRAM
57 .linkram > L2SRAM
58 .mac_buffer > L2SRAM
59 platform_lib > L2SRAM
60 .text > L2SRAM
61 GROUP (NEAR_DP)
62 {
63 .neardata
64 .rodata
65 .bss
66 } load > L2SRAM
67 .stack > L2SRAM
68 .cinit > L2SRAM
69 .cio > L2SRAM
70 .const > L2SRAM
71 .data > L2SRAM
72 .switch > L2SRAM
73 .sysmem > L2SRAM
74 .far > L2SRAM
75 .testMem > L2SRAM
76 .fardata > L2SRAM
77}
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/macros.ini b/boot_loader/examples/i2c/nor/evmc6670l/macros.ini
new file mode 100644
index 0000000..f4e4f7b
--- /dev/null
+++ b/boot_loader/examples/i2c/nor/evmc6670l/macros.ini
@@ -0,0 +1 @@
TI_MCSDK_I2CEXAMPLES_DIR="../../../../
diff --git a/boot_loader/examples/i2c/nor/evmc6678l/.cproject b/boot_loader/examples/i2c/nor/evmc6678l/.cproject
index 7c5cd2d..9d9e256 100644
--- a/boot_loader/examples/i2c/nor/evmc6678l/.cproject
+++ b/boot_loader/examples/i2c/nor/evmc6678l/.cproject
@@ -75,6 +75,7 @@
75 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 75 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
76 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 76 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
77 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 77 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
78 <storageModule moduleId="scannerConfiguration"/>
78 </cconfiguration> 79 </cconfiguration>
79 </storageModule> 80 </storageModule>
80 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 81 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/boot_loader/examples/i2c/nor/evmc6678l/.project b/boot_loader/examples/i2c/nor/evmc6678l/.project
index 4933746..e1b9f97 100644
--- a/boot_loader/examples/i2c/nor/evmc6678l/.project
+++ b/boot_loader/examples/i2c/nor/evmc6678l/.project
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription> 2<projectDescription>
3 <name>i2cnorboot</name> 3 <name>i2cnorboot_evmc6678l</name>
4 <comment></comment> 4 <comment></comment>
5 <projects> 5 <projects>
6 </projects> 6 </projects>
diff --git a/boot_loader/tools_install.bat b/boot_loader/tools_install.bat
index 5390754..0fbf0d4 100644
--- a/boot_loader/tools_install.bat
+++ b/boot_loader/tools_install.bat
@@ -1,6 +1,6 @@
1mv -f IBL_release_info.txt ibl\doc\release_info.txt 1mv -f IBL_release_info.txt ibl\doc\release_info.txt
2mv -f IBL_README.txt ibl\doc\README.txt 2mv -f IBL_README.txt ibl\doc\README.txt
3mv -f IBL_setupenv.bat ibl\src\make\setupenv.bat 3mv -f IBL_setupenvMsys.sh ibl\src\make\setupenvMsys.sh
4mv -f IBL_Makefile ibl\src\make\Makefile 4mv -f IBL_Makefile ibl\src\make\Makefile
5mv -f IBL_makestg1 ibl\src\make\makestg1 5mv -f IBL_makestg1 ibl\src\make\makestg1
6mv -f IBL_makestg2 ibl\src\make\makestg2 6mv -f IBL_makestg2 ibl\src\make\makestg2
diff --git a/post/docs/README.txt b/post/docs/README.txt
index 341eedc..523905b 100644
--- a/post/docs/README.txt
+++ b/post/docs/README.txt
@@ -22,8 +22,7 @@ Steps to build POST:
22 22
23Steps to run POST in CCSv5: 23Steps to run POST in CCSv5:
24 24
251. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM, please refer to the EVM technical 251. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM
26 reference manual on how to set the boot mode dip switches)
27 26
282. Load the program tools\post\evmc66xxl\bin\post_evm66xxl.out to CCS. 272. Load the program tools\post\evmc66xxl\bin\post_evm66xxl.out to CCS.
29 28
@@ -41,8 +40,7 @@ Steps to program POST to EEPROM:
41 refer to tools\boot_loader\ibl\doc\release_info.txt on how to build IBL for EVMC66xxL. 40 refer to tools\boot_loader\ibl\doc\release_info.txt on how to build IBL for EVMC66xxL.
42 41
432. Go to the tools\post\evmc66xxl\bin directory in Windows Explorer and open the post_romparse.bat in a text editor, 422. Go to the tools\post\evmc66xxl\bin directory in Windows Explorer and open the post_romparse.bat in a text editor,
44 change "C6000_CG_DIR", "TARGET", "ENDIAN" and "IBL_ROOT_DIR" parameters accordingly and set the Cygwin PATH 43 change "C6000_CG_DIR", "TARGET", "ENDIAN" and "IBL_ROOT_DIR" parameters accordingly.
45 where you installed.
46 44
473. Double click post_romparse.bat. This will generate a CCS format image file "post_i2crom.dat", which can be programmed 453. Double click post_romparse.bat. This will generate a CCS format image file "post_i2crom.dat", which can be programmed
48 to I2C EEPROM slave bus address 80 (0x50), below are the steps how to program the EEPROM using the EEPROM writer utility: 46 to I2C EEPROM slave bus address 80 (0x50), below are the steps how to program the EEPROM using the EEPROM writer utility:
@@ -51,8 +49,7 @@ Steps to program POST to EEPROM:
51 * Change bus_addr to "80" (0x50) in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt and save the file. 49 * Change bus_addr to "80" (0x50) in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt and save the file.
52 * Refer to tools\writer\eeprom\evmc66xxl\docs\README.txt on how to program the CCS data file to EEPROM. 50 * Refer to tools\writer\eeprom\evmc66xxl\docs\README.txt on how to program the CCS data file to EEPROM.
53 51
544. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x50 524. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x50 and
55 (please refer to the EVM technical reference manual on how to set the boot mode dip switches) and
56 boot the POST directly from the EEPROM after POR. The boot status and test result can be monitored using the Hyper 53 boot the POST directly from the EEPROM after POR. The boot status and test result can be monitored using the Hyper
57 Terminal as mentioned in "Steps to run POST in CCSv5". 54 Terminal as mentioned in "Steps to run POST in CCSv5".
58 55
diff --git a/post/evmc6670l/.cproject b/post/evmc6670l/.cproject
index f36adb9..f0519a6 100644
--- a/post/evmc6670l/.cproject
+++ b/post/evmc6670l/.cproject
@@ -4,7 +4,7 @@
4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> 4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5 <storageModule moduleId="org.eclipse.cdt.core.settings"> 5 <storageModule moduleId="org.eclipse.cdt.core.settings">
6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513"> 6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug"> 7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Release">
8 <externalSettings/> 8 <externalSettings/>
9 <extensions> 9 <extensions>
10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> 10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
@@ -16,7 +16,7 @@
16 </storageModule> 16 </storageModule>
17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> 17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
18 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 18 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
19 <configuration artifactExtension="out" artifactName="../bin/post_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug"> 19 <configuration artifactExtension="out" artifactName="../bin/post_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Release" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath=""> 20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311"> 21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> 22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6670:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -83,89 +83,6 @@
83 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 83 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
84 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 84 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
85 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 85 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
86 <storageModule moduleId="scannerConfiguration"/>
87 </cconfiguration>
88 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.646908463">
89 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.646908463" moduleId="org.eclipse.cdt.core.settings" name="Release">
90 <externalSettings/>
91 <extensions>
92 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
93 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
94 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
95 <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
96 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
97 </extensions>
98 </storageModule>
99 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
100 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
101 <configuration artifactExtension="out" artifactName="../bin/post_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.646908463" name="Release" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
102 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.646908463." name="/" resourcePath="">
103 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.1689722204" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
104 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.794108544" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
105 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
106 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
107 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
108 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
109 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
110 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
111 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6670:1.0.0.8;"/>
112 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
113 </option>
114 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1880883419" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
115 <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.1853413779" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
116 <builder buildPath="${workspace_loc:/post/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.334445435" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
117 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.52181338" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
118 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1709785078" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
119 <listOptionValue builtIn="false" value="225"/>
120 </option>
121 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.255200108" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
122 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
123 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform&quot;"/>
124 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/tools/post/include&quot;"/>
125 </option>
126 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.368167091" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/>
127 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION.111513867" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
128 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEBUGGING_MODEL.1522790564" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
129 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_LEVEL.1939674907" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_LEVEL.1" valueType="enumerated"/>
130 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_FOR_SPACE.152445469" name="Optimize for code size (--opt_for_space, -ms)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_FOR_SPACE" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_FOR_SPACE.2" valueType="enumerated"/>
131 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE.1954973734" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE" valueType="definedSymbols">
132 <listOptionValue builtIn="false" value="_EVMC6670L_"/>
133 </option>
134 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.1012222725" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
135 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.858013931" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
136 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.230248342" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
137 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.822824393" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
138 </tool>
139 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.434278496" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
140 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.1164277839" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;../bin/post_evm6670l.out&quot;" valueType="string"/>
141 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.1349122220" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;../bin/post_evm6670l.map&quot;" valueType="string"/>
142 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.431076691" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
143 <listOptionValue builtIn="false" value="&quot;rts6600_elf.lib&quot;"/>
144 <listOptionValue builtIn="false" value="&quot;ti.platform.evm6670l.lite.lib&quot;"/>
145 </option>
146 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.1160762749" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
147 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
148 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
149 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug&quot;"/>
150 </option>
151 </tool>
152 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.856423379" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
153 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.1067893382" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
154 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.31613214" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
155 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1078168356" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
156 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1552020877" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
157 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.181189646" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
158 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages&quot;"/>
159 </option>
160 </tool>
161 </toolChain>
162 </folderInfo>
163 </configuration>
164 </storageModule>
165 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
166 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
167 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
168 <storageModule moduleId="scannerConfiguration"/>
169 </cconfiguration> 86 </cconfiguration>
170 </storageModule> 87 </storageModule>
171 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 88 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/post/evmc6670l/bin/post_romparse.bat b/post/evmc6670l/bin/post_romparse.bat
index 9d8f4cf..f24b574 100644
--- a/post/evmc6670l/bin/post_romparse.bat
+++ b/post/evmc6670l/bin/post_romparse.bat
@@ -1,11 +1,8 @@
1set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000" 1set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000"
2set TARGET=6670 2set TARGET=6670
3set ENDIAN=little 3set ENDIAN=little
4set IBL_ROOT_DIR="C:\Program Files\Texas Instruments\mcsdk_2_00_00_beta1_update1\tools\boot_loader\ibl" 4set IBL_ROOT_DIR="C:\Program Files\Texas Instruments\mcsdk_2_00_00_beta2\tools\boot_loader\ibl"
5#set IBL_ROOT_DIR="C:\Program Files\Texas Instruments\mcsdk_2_00_00_06\tools\boot_loader\ibl"
6set PATH=E:\cygwin\bin;
7set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%; 5set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
8set CYGWINPATH=E:/cygwin/bin
9 6
10 7
11@echo off 8@echo off
diff --git a/post/evmc6678l/.cproject b/post/evmc6678l/.cproject
index 10cd229..f6d801a 100644
--- a/post/evmc6678l/.cproject
+++ b/post/evmc6678l/.cproject
@@ -4,7 +4,7 @@
4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> 4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5 <storageModule moduleId="org.eclipse.cdt.core.settings"> 5 <storageModule moduleId="org.eclipse.cdt.core.settings">
6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513"> 6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug"> 7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Release">
8 <externalSettings/> 8 <externalSettings/>
9 <extensions> 9 <extensions>
10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> 10 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
@@ -16,7 +16,7 @@
16 </storageModule> 16 </storageModule>
17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> 17 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
18 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 18 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
19 <configuration artifactExtension="out" artifactName="../bin/post_evm6678l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug"> 19 <configuration artifactExtension="out" artifactName="../bin/post_evm6678l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Release" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath=""> 20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311"> 21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> 22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6678L:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6678L:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -74,7 +74,6 @@
74 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> 74 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
75 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"> 75 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
76 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/> 76 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/>
77 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/demos&quot;"/>
78 </option> 77 </option>
79 </tool> 78 </tool>
80 </toolChain> 79 </toolChain>
@@ -84,90 +83,6 @@
84 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 83 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
85 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 84 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
86 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 85 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
87 <storageModule moduleId="scannerConfiguration"/>
88 </cconfiguration>
89 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.2022465094">
90 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.2022465094" moduleId="org.eclipse.cdt.core.settings" name="Release">
91 <externalSettings/>
92 <extensions>
93 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
94 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
95 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
96 <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
97 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
98 </extensions>
99 </storageModule>
100 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
101 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
102 <configuration artifactExtension="out" artifactName="../bin/post_evm6678l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.2022465094" name="Release" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
103 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.2022465094." name="/" resourcePath="">
104 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.50080081" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311">
105 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.305623654" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
106 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
107 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
108 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
109 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
110 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
111 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
112 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6678L:1.0.0.8;"/>
113 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
114 </option>
115 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1998669262" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
116 <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.706883230" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
117 <builder buildPath="${workspace_loc:/post/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1035484283" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
118 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.830479021" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
119 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.707385412" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
120 <listOptionValue builtIn="false" value="225"/>
121 </option>
122 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.2035009672" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
123 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
124 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform&quot;"/>
125 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/tools/post/include&quot;"/>
126 </option>
127 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1332527586" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/>
128 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION.1495026065" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
129 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEBUGGING_MODEL.593281764" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
130 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_LEVEL.1908586575" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_LEVEL.1" valueType="enumerated"/>
131 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_FOR_SPACE.399662563" name="Optimize for code size (--opt_for_space, -ms)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_FOR_SPACE" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.OPT_FOR_SPACE.2" valueType="enumerated"/>
132 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE.2061911386" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE" valueType="definedSymbols">
133 <listOptionValue builtIn="false" value="_EVMC6678L_"/>
134 </option>
135 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.2065312119" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
136 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1946811708" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
137 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.1598057143" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
138 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.927368500" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
139 </tool>
140 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.1744157493" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
141 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.831624995" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;../bin/post_evm6678l.out&quot;" valueType="string"/>
142 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.2050007086" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;../bin/post_evm6678l.map&quot;" valueType="string"/>
143 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.546608967" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
144 <listOptionValue builtIn="false" value="&quot;rts6600_elf.lib&quot;"/>
145 <listOptionValue builtIn="false" value="&quot;ti.platform.evm6678l.lite.lib&quot;"/>
146 </option>
147 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.1228025135" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
148 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
149 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
150 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform/evmc6678l/platform_lib/lib/debug&quot;"/>
151 </option>
152 </tool>
153 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1448694388" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
154 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.1848177090" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
155 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.12722670" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
156 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.654765254" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6678" valueType="string"/>
157 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.749303491" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
158 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1662080390" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
159 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/>
160 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/demos&quot;"/>
161 </option>
162 </tool>
163 </toolChain>
164 </folderInfo>
165 </configuration>
166 </storageModule>
167 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
168 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
169 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
170 <storageModule moduleId="scannerConfiguration"/>
171 </cconfiguration> 86 </cconfiguration>
172 </storageModule> 87 </storageModule>
173 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 88 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/post/evmc6678l/bin/post_romparse.bat b/post/evmc6678l/bin/post_romparse.bat
index 98ca28a..d0be294 100644
--- a/post/evmc6678l/bin/post_romparse.bat
+++ b/post/evmc6678l/bin/post_romparse.bat
@@ -1,11 +1,8 @@
1set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000" 1set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000"
2set TARGET=6678 2set TARGET=6678
3set ENDIAN=little 3set ENDIAN=little
4set IBL_ROOT_DIR="C:\Program Files\Texas Instruments\mcsdk_2_00_00_beta1_update1\tools\boot_loader\ibl" 4set IBL_ROOT_DIR="C:\Program Files\Texas Instruments\mcsdk_2_00_00_beta2\tools\boot_loader\ibl"
5#set IBL_ROOT_DIR="C:\Program Files\Texas Instruments\mcsdk_2_00_00_06\tools\boot_loader\ibl"
6set PATH=E:\cygwin\bin;
7set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%; 5set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
8set CYGWINPATH=E:/cygwin/bin
9 6
10 7
11@echo off 8@echo off
diff --git a/post/include/post.h b/post/include/post.h
index 69f0e4e..1f715a4 100644
--- a/post/include/post.h
+++ b/post/include/post.h
@@ -47,9 +47,10 @@
47#define PLL_CTRL_REG_RSTYPE *( volatile uint32_t* )( PLL_BASE + 0xe4 ) 47#define PLL_CTRL_REG_RSTYPE *( volatile uint32_t* )( PLL_BASE + 0xe4 )
48 48
49/****************************************************************************** 49/******************************************************************************
50 * UART Baud Rate 50 * UART definitions
51 ******************************************************************************/ 51 ******************************************************************************/
52#define POST_UART_BAUDRATE 115200 52#define POST_UART_BAUDRATE 115200
53#define POST_UART_READ_TIMEOUT (30 * 1000000) /* in usec */
53 54
54/****************************************************************************** 55/******************************************************************************
55 * FPGA debug LED definitions 56 * FPGA debug LED definitions
@@ -148,6 +149,12 @@ static char post_status[POST_MAX_TEST_NUM][POST_STATUS_MAX_NUM_CHAR] =
148/****************************************************************************** 149/******************************************************************************
149 * EMAC test definitions 150 * EMAC test definitions
150 ******************************************************************************/ 151 ******************************************************************************/
151
152#define POST_EMAC_TEST_PKT_LENGTH 256 /* Ethernet packet payload size in bytes */ 152#define POST_EMAC_TEST_PKT_LENGTH 256 /* Ethernet packet payload size in bytes */
153 153
154
155/******************************************************************************
156 * Serial Number definitions
157 ******************************************************************************/
158#define POST_MAX_SN_SIZE 10 /* Maximum number of the chars of Serial Number for the EVM */
159#define POST_SERIAL_NUM_ADDR (65536-128) /* Last 128 bytes of EEPROM 0x50 stores the S/N */
160
diff --git a/post/src/post.c b/post/src/post.c
index f69e87c..2902574 100644
--- a/post/src/post.c
+++ b/post/src/post.c
@@ -306,6 +306,110 @@ post_hex_to_string
306 msg[nibbles] = 0; 306 msg[nibbles] = 0;
307} 307}
308 308
309Bool
310post_serial_num_isvalid
311(
312 char c
313)
314{
315 if (
316 ((c >= '0') && (c <= '9')) ||
317 ((c >= 'a') && (c <= 'z')) ||
318 ((c >= 'A') && (c <= 'Z'))
319 )
320 {
321 return TRUE;
322 }
323 else
324 {
325 return FALSE;
326 }
327}
328
329/******************************************************************************
330 * Function: post_write_serial_no
331 ******************************************************************************/
332void
333post_write_serial_no
334(
335 void
336)
337{
338 uint32_t i, j;
339 uint8_t msg[20], msg2[2];
340 PLATFORM_DEVICE_info *p_device;
341
342 /* Check if user key in the passcode "ti" to enter board serial number */
343 if (platform_uart_read(msg, POST_UART_READ_TIMEOUT) != Platform_EOK)
344 {
345 return;
346 }
347 if (msg[0] != 't')
348 {
349 return;
350 }
351
352 if (platform_uart_read(msg, POST_UART_READ_TIMEOUT) != Platform_EOK)
353 {
354 return;
355 }
356 if (msg[0] != 'i')
357 {
358 return;
359 }
360
361 /* Passcode verified, prompt the user to enter serial number */
362 p_device = platform_device_open(PLATFORM_DEVID_EEPROM50, 0);
363 if (p_device == NULL)
364 {
365 return;
366 }
367
368 post_write_uart("\r\n\r\nPlease enter the 10 digit serial number for this board, and then press ENTER key:\r\n\r\n");
369
370 i = 0;
371 msg2[1] = 0;
372 while (TRUE)
373 {
374 if (platform_uart_read(&msg[i], POST_UART_READ_TIMEOUT) != Platform_EOK)
375 {
376 platform_device_close(p_device->handle);
377 post_write_uart("\r\n\r\nSerial number input time out!");
378 return;
379 }
380
381 if (msg[i] == '\r')
382 {
383 break;
384 }
385 if ((i < POST_MAX_SN_SIZE) && post_serial_num_isvalid(msg[i]))
386 {
387 msg2[0] = msg[i];
388 post_write_uart((char *)msg2);
389 i++;
390 }
391 }
392
393 if (i < POST_MAX_SN_SIZE)
394 {
395 for (j = i; j < POST_MAX_SN_SIZE; j++)
396 {
397 msg[j] = 0xff;
398 }
399 }
400
401 if(platform_device_write(p_device->handle, POST_SERIAL_NUM_ADDR, msg, 16) == Platform_EOK)
402 {
403 post_write_uart("\r\n\r\nSerial number programmed to EEPROM successfully! ");
404 }
405 else
406 {
407 post_write_uart("\r\n\r\nFailed to program the serial number to EEPROM!");
408 }
409 platform_device_close(p_device->handle);
410
411}
412
309/****************************************************************************** 413/******************************************************************************
310 * Function: main function for POST 414 * Function: main function for POST
311 ******************************************************************************/ 415 ******************************************************************************/
@@ -324,6 +428,7 @@ main
324 char msg[9]; 428 char msg[9];
325 uint8_t mac_addr[6]; 429 uint8_t mac_addr[6];
326 platform_info info; 430 platform_info info;
431 uint32_t sa_enable;
327 432
328 /* Turn on all the platform initialize flags */ 433 /* Turn on all the platform initialize flags */
329 memset(&init_config, 0, sizeof(platform_init_config)); 434 memset(&init_config, 0, sizeof(platform_init_config));
@@ -372,7 +477,11 @@ main
372 post_write_uart("\r\n\r\nFPGA Version: "); 477 post_write_uart("\r\n\r\nFPGA Version: ");
373 post_write_uart(msg); 478 post_write_uart(msg);
374 479
375 /*post_write_uart("\r\n\r\nPOST booting from I2C 0x50 ... ");*/ 480 if (info.serial_nbr[0] != 0)
481 {
482 post_write_uart("\r\n\r\nBoard Serial Number: ");
483 post_write_uart(info.serial_nbr);
484 }
376 485
377 /* Display the EFUSE MAC address */ 486 /* Display the EFUSE MAC address */
378 platform_get_macaddr(PLATFORM_MAC_TYPE_EFUSE, mac_addr); 487 platform_get_macaddr(PLATFORM_MAC_TYPE_EFUSE, mac_addr);
@@ -385,6 +494,18 @@ main
385 post_write_uart(msg); 494 post_write_uart(msg);
386 } 495 }
387 496
497 sa_enable = *(volatile uint32_t *)0x20c0000;
498 sa_enable &= 0x1;
499
500 if (sa_enable)
501 {
502 post_write_uart("\r\n\r\nSA is enabled on this board.");
503 }
504 else
505 {
506 post_write_uart("\r\n\r\nSA is disabled on this board.");
507 }
508
388 /* Read the PLL Reset Type Status register and display on UART */ 509 /* Read the PLL Reset Type Status register and display on UART */
389 reset_type = PLL_CTRL_REG_RSTYPE; 510 reset_type = PLL_CTRL_REG_RSTYPE;
390 post_hex_to_string(reset_type, 8, msg); 511 post_hex_to_string(reset_type, 8, msg);
@@ -408,5 +529,7 @@ main
408 post_display_status(POST_TEST_NAND, test_passed); 529 post_display_status(POST_TEST_NAND, test_passed);
409 530
410 post_display_status(POST_TEST_COMPLETE, TRUE); 531 post_display_status(POST_TEST_COMPLETE, TRUE);
532
533 post_write_serial_no();
411} 534}
412 535
diff --git a/writer/eeprom/docs/README.txt b/writer/eeprom/docs/README.txt
index 13ee9a0..d943dc1 100644
--- a/writer/eeprom/docs/README.txt
+++ b/writer/eeprom/docs/README.txt
@@ -4,24 +4,23 @@ EEPROM Writer is a simple utility to program a CCS format image/data file to I2C
4 4
5Steps to program the EEPROM: 5Steps to program the EEPROM:
6 6
71. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM (please refer to the EVM technical 71. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
8 reference manual on how to set the boot mode dip switches)
9 8
102. Copy the CCS format data file to tools\writer\eeprom\evmc66xxl\bin directory, and rename it to app.dat. 92. Copy the CCS format data file to tools\writer\eeprom\evmc66xxl\bin directory, and rename it to app.dat.
11 10
123. Change the file_name, bus_addr and start_addr in tools\writer\eeprom\evmc6xxxl\bin\eepromwriter_input.txt if necessary. 113. Change the file_name, bus_addr and start_addr in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt if necessary.
13 By default the EEPROM writer will load app.dat to DSP memory and write the data to I2C slave 12 By default the EEPROM writer will load app.dat to DSP memory and write the data to I2C slave
14 bus address 81 at EEPROM device start address 0. 13 bus address 81 (0x51) at EEPROM device start byte address 0.
15 14
164. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0. 154. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.
17 16
185. Load the program tools\writer\eeprom\evmc66xxl\bin\eepromwriter_evm66xxl.out to CCS, be sure evmc6xxxl.gel is used in CCS. 175. Load the program tools\writer\eeprom\evmc66xxl\bin\eepromwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS.
19 18
206. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000. 196. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.
21 20
227. Load app.dat to 0x80000000: 217. Load app.dat to 0x80000000:
23 * In CCSv5, right click mouse in memory window, select "load memory". 22 * In CCSv5, right click mouse in memory window, select "load memory".
24 * Browse and select tools\writer\eeprom\evmc6678l\bin\app.dat. 23 * Browse and select tools\writer\eeprom\evmc66xxl\bin\app.dat.
25 * Select the option "Use the file header information to set the start address and size of the memory block to be 24 * Select the option "Use the file header information to set the start address and size of the memory block to be
26 loaded" and click "next". 25 loaded" and click "next".
27 * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish". 26 * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish".
@@ -41,4 +40,4 @@ Steps to re-build eepromwriter:
412. Clean and build the eepromwriter project. 402. Clean and build the eepromwriter project.
42 41
433. After the project build is completed, eepromwriter_evm66xxl.out and eepromwriter_evm66xxl.map will be generated under 423. After the project build is completed, eepromwriter_evm66xxl.out and eepromwriter_evm66xxl.map will be generated under
44 tools\writer\eeprom\evmc6678l\bin directory. 43 tools\writer\eeprom\evmc66xxl\bin directory.
diff --git a/writer/eeprom/evmc6670l/.cproject b/writer/eeprom/evmc6670l/.cproject
index 1d01850..83f0f7d 100644
--- a/writer/eeprom/evmc6670l/.cproject
+++ b/writer/eeprom/evmc6670l/.cproject
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.7:2.0.0.7;com.ti.biosmcsdk.pdk.C6670:1.0.0.7;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -76,7 +76,6 @@
76 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 76 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
77 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 77 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
78 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 78 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
79 <storageModule moduleId="scannerConfiguration"/>
80 </cconfiguration> 79 </cconfiguration>
81 </storageModule> 80 </storageModule>
82 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 81 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/writer/eeprom/evmc6678l/.cproject b/writer/eeprom/evmc6678l/.cproject
index a22cd63..af17263 100644
--- a/writer/eeprom/evmc6678l/.cproject
+++ b/writer/eeprom/evmc6678l/.cproject
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6678L:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6678L:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
diff --git a/writer/nand/docs/README.txt b/writer/nand/docs/README.txt
index 4a1880f..06edbe9 100644
--- a/writer/nand/docs/README.txt
+++ b/writer/nand/docs/README.txt
@@ -4,23 +4,23 @@ NAND Writer is a simple utility to program a CCS format image/data file to the N
4 4
5Steps to program the NAND: 5Steps to program the NAND:
6 6
71. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM (please refer to the EVM technical 71. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
8 reference manual on how to set the boot mode dip switches)
9 8
102. Copy the CCS format data file to tools\writer\nand\evmc6xxxl\bin directory, and rename it to app.dat. 92. Copy the CCS format data file to tools\writer\nand\evmc66xxl\bin directory, and rename it to app.dat.
11 10
123. Change the file_name and start_addr in tools\writer\nand\evmc6xxxl\bin\nandwriter_input.txt if necessary. 113. Change the file_name and start_addr in tools\writer\nand\evmc66xxl\bin\nandwriter_input.txt if necessary.
13 By default the NAND writer will load app.dat to DSP memory and write the data to NAND device start address 0. 12 By default the NAND writer will load app.dat to DSP memory and write the data to NAND device start byte address 16384
13 (start address of block 1). The start_addr should always be set to the start byte addess of a block.
14
154. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.
14 16
154. Open CCSv5 and launch the evmc6xxx emulator target configuration and connect to core 0. 175. Load the program tools\writer\nand\evmc66xxl\bin\nandwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS,
16
175. Load the program tools\writer\nand\evmc6xxxl\bin\nandwriter_evm6xxxl.out to CCS, be sure evmc6xxxl.gel is used in CCS,
18 18
196. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000. 196. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.
20 20
217. Load app.dat to 0x80000000: 217. Load app.dat to 0x80000000:
22 * In CCSv5, right click mouse in memory window, select "load memory". 22 * In CCSv5, right click mouse in memory window, select "load memory".
23 * Browse and select tools\writer\nand\evmc6xxxl\bin\app.dat. 23 * Browse and select tools\writer\nand\evmc66xxl\bin\app.dat.
24 * Select the option "Use the file header information to set the start address and size of the memory block to be 24 * Select the option "Use the file header information to set the start address and size of the memory block to be
25 loaded" and click "next". 25 loaded" and click "next".
26 * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish". 26 * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish".
@@ -34,10 +34,10 @@ Steps to program the NAND:
34 34
35Steps to re-build nandwriter: 35Steps to re-build nandwriter:
36 36
371. Import the nandwriter CCS project from tools\writer\nand\evmc6xxxl directory (in CCSv5, Project->Import Existing CCS/ 371. Import the nandwriter CCS project from tools\writer\nand\evmc66xxl directory (in CCSv5, Project->Import Existing CCS/
38 CCE Eclipse Projects). 38 CCE Eclipse Projects).
39 39
402. Clean and build the nandwriter project. 402. Clean and build the nandwriter project.
41 41
423. After the project build is completed, nandwriter_evm6xxxl.out and nandwriter_evm6xxxl.map will be generated under 423. After the project build is completed, nandwriter_evm66xxl.out and nandwriter_evm66xxl.map will be generated under
43 tools\writer\nand\evmc6xxxl\bin directory. 43 tools\writer\nand\evmc66xxl\bin directory.
diff --git a/writer/nand/evmc6670l/.cproject b/writer/nand/evmc6670l/.cproject
index 303a894..42b61cc 100644
--- a/writer/nand/evmc6670l/.cproject
+++ b/writer/nand/evmc6670l/.cproject
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6670L:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -67,7 +67,6 @@
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> 67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"> 68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages&quot;"/> 69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages&quot;"/>
70 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/demos&quot;"/>
71 </option> 70 </option>
72 </tool> 71 </tool>
73 </toolChain> 72 </toolChain>
@@ -77,6 +76,7 @@
77 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 76 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
78 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 77 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
79 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 78 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
79 <storageModule moduleId="scannerConfiguration"/>
80 </cconfiguration> 80 </cconfiguration>
81 </storageModule> 81 </storageModule>
82 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 82 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/writer/nand/evmc6670l/bin/nand_writer_input.txt b/writer/nand/evmc6670l/bin/nand_writer_input.txt
index ced386c..df74460 100644
--- a/writer/nand/evmc6670l/bin/nand_writer_input.txt
+++ b/writer/nand/evmc6670l/bin/nand_writer_input.txt
@@ -1,5 +1,5 @@
1file_name = app.dat 1file_name = app.dat
2start_addr = 0 2start_addr = 16384
3 3
4 4
5 5
diff --git a/writer/nand/evmc6678l/.cproject b/writer/nand/evmc6678l/.cproject
index ca310c2..28becb1 100644
--- a/writer/nand/evmc6678l/.cproject
+++ b/writer/nand/evmc6678l/.cproject
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6678L:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6678L:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -67,7 +67,6 @@
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> 67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"> 68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/> 69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/>
70 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/demos&quot;"/>
71 </option> 70 </option>
72 </tool> 71 </tool>
73 </toolChain> 72 </toolChain>
diff --git a/writer/nand/evmc6678l/bin/nand_writer_input.txt b/writer/nand/evmc6678l/bin/nand_writer_input.txt
index ced386c..df74460 100644
--- a/writer/nand/evmc6678l/bin/nand_writer_input.txt
+++ b/writer/nand/evmc6678l/bin/nand_writer_input.txt
@@ -1,5 +1,5 @@
1file_name = app.dat 1file_name = app.dat
2start_addr = 0 2start_addr = 16384
3 3
4 4
5 5
diff --git a/writer/nor/docs/README.txt b/writer/nor/docs/README.txt
index 4afd4b8..670681d 100644
--- a/writer/nor/docs/README.txt
+++ b/writer/nor/docs/README.txt
@@ -4,23 +4,23 @@ NOR Writer is a simple utility to program a CCS format image/data file to the NO
4 4
5Steps to program the NOR: 5Steps to program the NOR:
6 6
71. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM (please refer to the EVM technical 71. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
8 reference manual on how to set the boot mode dip switches)
9 8
102. Copy the CCS format data file to tools\writer\nor\evmc6xxxl\bin directory, and rename it to app.dat. 92. Copy the CCS format data file to tools\writer\nor\evmc66xxl\bin directory, and rename it to app.dat.
11 10
123. Change the file_name and start_addr in tools\writer\nor\evmc6xxxl\bin\norwriter_input.txt if necessary. 113. Change the file_name and start_addr in tools\writer\nor\evmc66xxl\bin\norwriter_input.txt if necessary.
13 By default the NOR writer will load app.dat to DSP memory and write the data to NOR device start address 0. 12 By default the NOR writer will load app.dat to DSP memory and write the data to NOR device start byte address 0,
13 the start_addr should always be set to the start byte addess of a sector.
14 14
154. Open CCSv5 and launch the evmc6xxx emulator target configuration and connect to core 0. 154. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.
16 16
175. Load the program tools\writer\nor\evmc6xxxl\bin\norwriter_evm6xxxl.out to CCS, be sure evmc6xxxl.gel is used in CCS. 175. Load the program tools\writer\nor\evmc66xxl\bin\norwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS.
18 18
196. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000. 196. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.
20 20
217. Load app.dat to 0x80000000: 217. Load app.dat to 0x80000000:
22 * In CCSv5, right click mouse in memory window, select "load memory". 22 * In CCSv5, right click mouse in memory window, select "load memory".
23 * Browse and select tools\writer\nor\evmc6xxxl\bin\app.dat. 23 * Browse and select tools\writer\nor\evmc66xxl\bin\app.dat.
24 * Select the option "Use the file header information to set the start address and size of the memory block to be 24 * Select the option "Use the file header information to set the start address and size of the memory block to be
25 loaded" and click "next". 25 loaded" and click "next".
26 * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish". 26 * Change the Start Address to "0x80000000" if it is not 0x80000000, and click "finish".
@@ -34,10 +34,10 @@ Steps to program the NOR:
34 34
35Steps to re-build norwriter: 35Steps to re-build norwriter:
36 36
371. Import the norwriter CCS project from tools\writer\nor\evmc6xxxl directory (in CCSv5, Project->Import Existing CCS/ 371. Import the norwriter CCS project from tools\writer\nor\evmc66xxl directory (in CCSv5, Project->Import Existing CCS/
38 CCE Eclipse Projects). 38 CCE Eclipse Projects).
39 39
402. Clean and build the norwriter project. 402. Clean and build the norwriter project.
41 41
423. After the project build is completed, norwriter_evm6xxxl.out and norwriter_evm6xxxl.map will be generated under 423. After the project build is completed, norwriter_evm66xxl.out and norwriter_evm66xxl.map will be generated under
43 tools\writer\nor\evmc6xxxl\bin directory. 43 tools\writer\nor\evmc66xxl\bin directory.
diff --git a/writer/nor/evmc6670l/.cproject b/writer/nor/evmc6670l/.cproject
index 4147b14..fb857e6 100644
--- a/writer/nor/evmc6670l/.cproject
+++ b/writer/nor/evmc6670l/.cproject
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6670L:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -65,10 +65,7 @@
65 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/> 65 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
66 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/> 66 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> 67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"> 68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/>
69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages&quot;"/>
70 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/demos&quot;"/>
71 </option>
72 </tool> 69 </tool>
73 </toolChain> 70 </toolChain>
74 </folderInfo> 71 </folderInfo>
@@ -77,6 +74,7 @@
77 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 74 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
78 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> 75 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
79 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 76 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
77 <storageModule moduleId="scannerConfiguration"/>
80 </cconfiguration> 78 </cconfiguration>
81 </storageModule> 79 </storageModule>
82 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 80 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/writer/nor/evmc6678l/.cproject b/writer/nor/evmc6678l/.cproject
index 418f298..954257c 100644
--- a/writer/nor/evmc6678l/.cproject
+++ b/writer/nor/evmc6678l/.cproject
@@ -26,7 +26,7 @@
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> 26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> 27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> 28 <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.8:2.0.0.8;com.ti.biosmcsdk.pdk.C6678L:1.0.0.8;"/> 29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.mcsdk_2.0.0.9:2.0.0.9;com.ti.biosmcsdk.pdk.C6678L:1.0.0.9;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> 30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option> 31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> 32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
@@ -67,7 +67,6 @@
67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> 67 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"> 68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/> 69 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6678_INSTALL_DIR}/packages&quot;"/>
70 <listOptionValue builtIn="false" value="&quot;${TI_MCSDK_INSTALL_DIR}/demos&quot;"/>
71 </option> 70 </option>
72 </tool> 71 </tool>
73 </toolChain> 72 </toolChain>