.
Dependencies: mbed EthernetInterface mbed-rtos
Fork of Bootloader_K64F by
Diff: FreescaleIAP/bootloader.cpp
- Revision:
- 8:00cefe0d59ed
- Parent:
- 7:4ab0430d06e3
--- a/FreescaleIAP/bootloader.cpp Sat Apr 23 15:10:04 2016 +0000 +++ b/FreescaleIAP/bootloader.cpp Sat Apr 23 18:24:07 2016 +0000 @@ -11,14 +11,19 @@ __attribute__((section(".ARM.__at_0x79120"))) void bootloader(int size) { + SysTick->CTRL = 0; __disable_irq(); + setupserial(); write("\n\n\rBootloader\r\n"); //Erase all sectors we use for the user program write("Erasing sectors!\r\n"); - for (int i = 0; i<NUM_SECTORS; i++) + + for (int i = 0; i<NUM_SECTORS; i++) { + write("*"); erase_sector(SECTOR_SIZE * i); + } write("Done erasing, reading file!\r\n");