- Puts4("\nwrite: ");
- error = FLASH_WriteHalfWord(baseaddr + (2*i), toflash[i]);
- Puts4(error == 1 ? "[sucess] " : "[failed] ");
- Puts4("0x");
- Puthex4(toflash[i], 4);
- Puts4(" @0x");
- Puthex4(baseaddr + (2*i), 6);
- }
-
- i=0;
- Puts4("\nCurrent Content of FLASH at 0xf4000 ... 0xf401F:\n");
- while(i < 0x20)
- {
- Puts4("0x"); Puthex4( *(unsigned char *)(0xf4000 + i), 2); Puts4(" ");
- i++;
- if( (i % 0x10) == 0 ) Puts4("\n");