Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed EthernetInterface mbed-rtos
Fork of FOTA_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");
