Skip to main content
Rkuma.1964
Associate III
January 14, 2020
Question

running multiple application in same flash memory.

  • January 14, 2020
  • 2 replies
  • 867 views

i have have loaded two different firmware at different locations of the flash memory(stm32F303) .

main program starting address: 0x80000000

second program starting address: 0x80020000

i have to call second program. main program is running perfectly but i am unable to call second program from main program.

please provide solution.

This topic has been closed for replies.

2 replies

KnarfB
Super User
January 14, 2020

Search the forum for "custom bootloader", its the same approach.

Memory partitioning must be done in the linker script (.ld file for gcc). Handling the interupt vector table(s) correctly and preparing the CPU for a jump from one app to the other are main areas of concern.

Ozone
Principal
January 14, 2020

> please provide solution.

Contact the ST support, and negotiate an appropriate pay.

> i have to call second program. main program is running perfectly but i am unable to call second program from main program.

Then you don't need "two applications". Merge them into one.

Otherwise, as noted, use custom bootloader to select one of the two applications, or derform a firmware update.