Skip to main content
afduarte
Associate II
November 12, 2015
Question

STM32F439xx Dual Bank jump

  • November 12, 2015
  • 1 reply
  • 585 views
Posted on November 12, 2015 at 13:54

Hello,

I have 2 custom application codes, one for bootloading and the other for the functional app. 

Bootloader resides in the first flash mem sector 0x8000000.

If the app resides inside the first mem bank (same as btl) everything works well (eg. 0x8020000).

As i try to jump from the first sector to sector 12 (2 mem bank) remapping accordingly the vect table, the application starts then after an non periodic time span the MCU triggers a hard fault on the memory. SCB->CFSR goes all over the place, sometimes giving a fault on 

MMFSR other times on 

BFSR or 

UFSR.

Is anyone aware of what may be the problem, pointing to a solution.

Or a runtime mem jump between banks is not possible.

Regards,

Andre Duarte

#dual-bank #jump #stm32f439xx
This topic has been closed for replies.

1 reply

afduarte
afduarteAuthor
Associate II
November 23, 2015
Posted on November 23, 2015 at 14:13

If youre using a dual bank device, an runtime mem jump between banks is possible, and the behavior will be the same as a one bank device.

The problem above as due to a hardware problem with the MCU / custom board, and it does not manifests in an good board.

Its safe to use both banks to run multiple apps.