]> hackdaworld.org Git - my-code/arm.git/blobdiff - betty/fwbc.c
only copy the data section if code resides in flash
[my-code/arm.git] / betty / fwbc.c
index a617d247a09c6bb626f208aade90ba3fa23a3059..187481916da4c8c127c5730dd7a883f08b319b18 100644 (file)
@@ -57,8 +57,8 @@ int main(void) {
 
        /* variables */
 
 
        /* variables */
 
-       u16 *mem;
-       u32 *bl;
+       u16 *mem=0;
+       u32 *bl=0;
        u32 i,len;
        u8 start;
 
        u32 i,len;
        u8 start;
 
@@ -82,6 +82,8 @@ int main(void) {
        BCFG0=0x1000FBEF;               // no boot[1:0] influence? (thnx colibri)
                                        // BCFG2 should be fine as is
 
        BCFG0=0x1000FBEF;               // no boot[1:0] influence? (thnx colibri)
                                        // BCFG2 should be fine as is
 
+       while(1) {
+
        /* wait for fwdump to send transmit start character */
        start=0x23;
        while(1) {
        /* wait for fwdump to send transmit start character */
        start=0x23;
        while(1) {
@@ -136,6 +138,8 @@ int main(void) {
                }
        }
 
                }
        }
 
+       }
+
        return 0;
 }
 
        return 0;
 }