summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);