Updated NOR writer to align memory
authorCasey Smith <c-smith@ti.com>
Mon, 25 Mar 2013 19:14:11 +0000 (15:14 -0400)
committerCasey Smith <c-smith@ti.com>
Mon, 25 Mar 2013 19:14:11 +0000 (15:14 -0400)
program_evm/binaries/evmk2h/nor_writer_input.txt
writer/nor/src/norwriter.c

index 5f52b88c974b89fc371809b1525805c211b63428..56c1b55d0dcf5749b28a518b7832ed58fc1c3a17 100644 (file)
@@ -1,4 +1,4 @@
-file_name  = app.bin
+file_name  = nor.gph
 start_addr = 0
 
 
index e095030e1c6dc84ffa3b6de66ef5d64d449f5b5e..55bb3b8918891eedf4b4314e349b42a3cfc832b6 100644 (file)
@@ -474,6 +474,10 @@ void main ()
     /* Parse the CCS format file */
     ret = find_file_length(fp);
     fclose (fp);
+    
+    norWriterInfo.writeBytes += norWriterInfo.blockSizeBytes - 1;
+    norWriterInfo.writeBytes -= norWriterInfo.writeBytes % norWriterInfo.blockSizeBytes;
+    
     if (ret == FALSE)
     {
         printf("Error in parsing CCS file %s\n", norWriterInfo.file_name);