1 month, 1 week ago.

Reboot when the firmware size is more than 64 KB

The Board itself restarts when using firmware larger than 64kB.

Code:

  1. include <mbed.h>
  2. 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); } }

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32F103RBT6 microcontroller.
Be the first to answer this question.