Just4Trionic - CAN and BDM FLASH programmer for Saab cars

Dependencies:   mbed

Revision:
5:1775b4b13232
Parent:
4:682d96ff6d79
Child:
6:2fbcbebed28c
--- a/t7utils.cpp	Wed Sep 11 11:55:51 2013 +0000
+++ b/t7utils.cpp	Sat Apr 25 17:07:08 2015 +0000
@@ -380,12 +380,12 @@
     char data[8];
     int i, k;
 
-    // fopen modified.hex here?
+    // fopen modified.bin here?
     // need lots of fcloses though
     printf("Checking the FLASH BIN file...\r\n");
-    FILE *fp = fopen("/local/modified.hex", "r");    // Open "modified.hex" on the local file system for reading
+    FILE *fp = fopen("/local/modified.bin", "r");    // Open "modified.bin" on the local file system for reading
     if (!fp) {
-        printf("Error: I could not find the BIN file MODIFIED.HEX\r\n");;
+        printf("Error: I could not find the BIN file MODIFIED.BIN\r\n");;
         return TERM_ERR;
     }
     // obtain file size - it should match the size of the FLASH chips:
@@ -462,7 +462,7 @@
             //data[k] = *(bin + bin_count++);
             if (!fread(&data[k],1,1,fp)) {
                 fclose(fp);
-                printf("Error reading the BIN file MODIFIED.HEX\r\n");
+                printf("Error reading the BIN file MODIFIED.BIN\r\n");
                 return FALSE;
             }
 //      /* DEBUG info...
@@ -484,7 +484,7 @@
                         //data[k] = *(bin + bin_count++);
                         if (!fread(&data[k],1,1,fp)) {
                             fclose(fp);
-                            printf("Error reading the BIN file MODIFIED.HEX\r\n");
+                            printf("Error reading the BIN file MODIFIED.BIN\r\n");
                             return FALSE;
                         }
         //            /* DEBUG info...
@@ -592,12 +592,12 @@
     char data[8];
     int i, k;
 
-    // fopen modified.hex here?
+    // fopen modified.bin here?
     // need lots of fcloses though
     printf("Checking the FLASH BIN file...\r\n");
-    FILE *fp = fopen("/local/modified.hex", "r");    // Open "modified.hex" on the local file system for reading
+    FILE *fp = fopen("/local/modified.bin", "r");    // Open "modified.bin" on the local file system for reading
     if (!fp) {
-        printf("Error: I could not find the BIN file MODIFIED.HEX\r\n");;
+        printf("Error: I could not find the BIN file MODIFIED.BIN\r\n");;
         return TERM_ERR;
     }
     // obtain file size - it should match the size of the FLASH chips:
@@ -669,7 +669,7 @@
         for ( k = 4; k < 8; k++ )
             if (!fread(&data[k],1,1,fp)) {
                 fclose(fp);
-                printf("Error reading the BIN file MODIFIED.HEX\r\n");
+                printf("Error reading the BIN file MODIFIED.BIN\r\n");
                 return FALSE;
             }
         if (!can_send_timeout (T7SEC_ID, data, 8, T7MESSAGETIMEOUT)) {
@@ -740,7 +740,7 @@
         for ( k = 4; k < 8; k++ )
             if (!fread(&data[k],1,1,fp)) {
                 fclose(fp);
-                printf("Error reading the BIN file MODIFIED.HEX\r\n");
+                printf("Error reading the BIN file MODIFIED.BIN\r\n");
                 return FALSE;
             }
         if (!can_send_timeout (T7SEC_ID, data, 8, T7MESSAGETIMEOUT)) {