- Puts4("\n================================================================\n");
-
- i = 0;
- baseaddr = 0xf4000;
- for(; i<9; i++) {
- Puts4("\nwrite: ");
- error = FLASH_WriteHalfWord(baseaddr + (2*i), toflash2[i]);
- Puts4(error == 1 ? "[sucess] " : "[failed] ");
- Puts4("0x");
- Puthex4(toflash2[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");
- }
-
- /* Output Ready Meassage */
- if( global_error != 0 )
- {
- Puts4("\n********* FLASH Programming Demo failed **********\n");
- }
- else
- {
- Puts4("\n********* FLASH Programming Demo done **********\n");
- }
-
- RLT_EnableInterrupt(0, 0);
-
- while(1)
- {
-
- HWWD_CL = 0;
- }