summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Smith2013-03-25 14:14:11 -0500
committerCasey Smith2013-03-25 14:14:11 -0500
commitec241985a4f8e4ae4b518acaa9316b31fce6671e (patch)
treebe7b6be92ae9c800acfbcdbf8a6aae7dd24981bf
parent6d77cbebdba2c39e37e3086d79bef06b449868b7 (diff)
downloadmcsdk-tools-ec241985a4f8e4ae4b518acaa9316b31fce6671e.tar.gz
mcsdk-tools-ec241985a4f8e4ae4b518acaa9316b31fce6671e.tar.xz
mcsdk-tools-ec241985a4f8e4ae4b518acaa9316b31fce6671e.zip
Updated NOR writer to align memory
-rw-r--r--program_evm/binaries/evmk2h/nor_writer_input.txt2
-rw-r--r--writer/nor/src/norwriter.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/program_evm/binaries/evmk2h/nor_writer_input.txt b/program_evm/binaries/evmk2h/nor_writer_input.txt
index 5f52b88..56c1b55 100644
--- a/program_evm/binaries/evmk2h/nor_writer_input.txt
+++ b/program_evm/binaries/evmk2h/nor_writer_input.txt
@@ -1,4 +1,4 @@
1file_name = app.bin 1file_name = nor.gph
2start_addr = 0 2start_addr = 0
3 3
4 4
diff --git a/writer/nor/src/norwriter.c b/writer/nor/src/norwriter.c
index e095030..55bb3b8 100644
--- a/writer/nor/src/norwriter.c
+++ b/writer/nor/src/norwriter.c
@@ -474,6 +474,10 @@ void main ()
474 /* Parse the CCS format file */ 474 /* Parse the CCS format file */
475 ret = find_file_length(fp); 475 ret = find_file_length(fp);
476 fclose (fp); 476 fclose (fp);
477
478 norWriterInfo.writeBytes += norWriterInfo.blockSizeBytes - 1;
479 norWriterInfo.writeBytes -= norWriterInfo.writeBytes % norWriterInfo.blockSizeBytes;
480
477 if (ret == FALSE) 481 if (ret == FALSE)
478 { 482 {
479 printf("Error in parsing CCS file %s\n", norWriterInfo.file_name); 483 printf("Error in parsing CCS file %s\n", norWriterInfo.file_name);