cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F439xx Dual Bank jump

afduarte
Associate II
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
1 REPLY 1
afduarte
Associate II
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.