cancel
Showing results for 
Search instead for 
Did you mean: 

What happens to RAM data when the Bootloader loads Applications?

SMeta
Associate

I'm using STM32F103C8 and I have Bootloader at the start of flash 0x08000000 and Application start at 0x08008000. On powerup Bootloader start to perform basic functions and then jumps to the main application. Everything works fine but what about Bootloader RAM data does it get over written with Application RAM data?

3 REPLIES 3
Piranha
Chief II

Typically - yes. All the control is passed to the application, therefore it depends on particular application.

Okay, Please help me with this problem. My application crashes after some I don't know why. From the main checkForUpdate() function is called. Function gets executed and prints "no update" but function never returns back to main.

void checkForUpdate() {

char buf[48] = {0};

uint32_t len;

uint32_t ver;

if(http_get_request("getinfo", 0, buf, &len) == HAL_OK) {

ver = atoi(&buf[5]);

println("v %i",ver);

if(ver > VERSION) {

HAL_NVIC_SystemReset();

} else {

println("no update");

}

}

}

Piranha
Chief II
  1. Use "Code Snippet", when posting code.
  2. The forum is already full of "my bootloaded application hangs" type topics. Search and read those.
  3. With such a poor description no one will be able to help you.