Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years ago.
Reboot when the firmware size is more than 64 KB
The Board itself restarts when using firmware larger than 64kB.
Code:
- include <mbed.h>
- include <string> using std::string;
DigitalOut led1(LED1);
string big_str;
int main() {
put your setup code here, to run once:
while(1) {
big_str ="here I add a lot of text to the size of the firmware was more than 64kbytes";
put your main code here, to run repeatedly: Blink LED and wait 1.0 seconds led1 = !led1; wait(1.0); } }