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
main.cpp
00001 #include "mbed.h" 00002 #include "EthernetInterface.h" 00003 #include "bootloader.h" 00004 00005 DigitalIn sw(PTA4); 00006 DigitalOut LED(LED_BLUE); 00007 00008 int main() 00009 { 00010 EthernetInterface eth; 00011 eth.init(); //Use DHCP 00012 eth.connect(); 00013 printf("Welcome to microServiceBus Start up\r\n"); 00014 while (1) { 00015 printf("Entering bootloader\r\n"); 00016 write_flash(); 00017 } 00018 00019 /* 00020 //Blink LED, and when SW3 is pressed go to bootloader 00021 //I don't know atm if the bootloader would work from interrupt context 00022 while (1) { 00023 LED = !LED; 00024 wait(0.25); 00025 if (sw == 0) { 00026 printf("Entering bootloader\r\n"); 00027 write_flash(); 00028 } 00029 }*/ 00030 } 00031 00032
Generated on Tue Jul 12 2022 21:33:01 by
1.7.2
