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

NOR Writer is a simple utility to program a CCS format image/data file to the NOR flash.

Steps to program the NOR:

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

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

3. Change the file_name and start_addr in tools\writer\nor\evmc66xxl\bin\norwriter_input.txt if necessary. 
   By default the NOR writer will load app.dat to DSP memory and write the data to NOR device start byte address 0, 
   the start_addr should always be set to the start byte addess of a sector.

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

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

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

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

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

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


Steps to re-build norwriter:

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

2. Clean and build the norwriter project.

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