1 NAND Writer Utility
3 NAND Writer is a simple utility to program a CCS format image/data file to the NAND flash.
5 Steps to program the NAND:
7 1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
9 2. Copy the binary file to writer\nand\evmc66xxl\bin directory, and rename it to app.bin.
11 3. Change the file_name and start_addr in writer\nand\evmc66xxl\bin\nandwriter_input.txt if necessary.
12 By default the NAND writer will load app.bin 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.
15 4. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.
17 5. Load the program writer\nand\evmc66xxl\bin\nandwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS
18 and DDR is intialized.
20 6. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.
22 7. Load app.bin to 0x80000000:
23 * In CCSv5, right click mouse in memory window, select "load memory".
24 * Browse and select writer\nand\evmc66xxl\bin\app.bin (raw data format), click "next"
25 * Set the Start Address to "0x80000000", Type-size to 32-bits, leave swap unchecked, click "finish"
27 8. After the data file is loaded into the memory, run the program (in CCSv5, press F8), it will start to program the
28 NAND.
30 9. When programming is completed, the console will print "NAND programming completed successfully", if there
31 is any error, the console will show the error message.
34 Steps to re-build nandwriter:
36 1. Uses CCS to build nandwriter:
37 * Import the nandwriter CCS project from writer\nand\evmc66xxl directory (in CCSv5, Project->Import Existing CCS/
38 CCE Eclipse Projects).
39 * Clean and build the nandwriter project.
40 * After the project build is completed, nandwriter_evm66xxl.out and nandwriter_evm66xxl.map will be generated under
41 writer\nand\evmc66xxl\bin directory.
43 2. Uses Makefile to build nandwriter:
44 NOTE FOR BUILDING ON WINDOWS ENVIRONMENT: For building on windows environment GNU utilities like
45 "make" would be required. The following build procedure should also work on MINGW-MSYS Bourne shell.
47 Before starting the build following environment setup has to be done
48 1) variable C_DIR should be set to the top directory of the Code Generation tools e.g.
49 Linux bash shell:
50 export C_DIR=/opt/TI/TI_CGT_C6000_7.2.0A10232/
51 MSYS bash shell:
52 export C_DIR='"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000"'
53 2) Code Generation tool binaries should be in the path e.g.
54 Linux bash shell:
55 export PATH=/opt/TI/TI_CGT_C6000_7.2.0A10232/bin:$PATH
56 MSYS bash shell:
57 export PATH=$PATH:/c/Program\ Files/Texas\ Instruments/ccsv5/tools/compiler/c6000/bin/
58 3) variable PFORM_LIB_DIR should be set the directory of the Platform Library root, e.g.
59 Linux bash shell:
60 export PFORM_LIB_DIR=pdk_C6670_1_0_0_10-rc1/packages/ti/platform
61 MSYS bash shell:
62 export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C667x_1_0_0_10-rc1/packages/ti/platform"'
64 The makefile for building the nandwriter is in the directory "tools/writer/nand/evmc66xxl"
65 Following are the steps to build nandwriter, e.g.:
66 cd tools/writer/nand/evmc66xxl
67 make DEVICE=<device number>
68 supported device numbers are
69 C6678
70 C6670
72 Please refer to BIOS MCSDK 2.0 User's Guide (http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide) for more details.