Skip to main content
AChar.3
Associate II
October 13, 2021
Solved

Problem with dual bank enable stm32f4

When i turn on bank 2 of my stm32f439, the ethernet led flashes ,

When i m on bank 1 everything work fine but when i swap bank 2 ( bank full erase only "FF") or with the same firmware then bank 1 nothing is worked and i don't know how but the led of the ethernet connector flashes.

I already tryed this on the stm32f437 and its work perfectly but not on the STM32f439.

It's suppose to be the same memory organization "https://www.st.com/resource/en/reference_manual/dm00031020-stm32f405-415-stm32f407-417-stm32f427-437-and-stm32f429-439-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf"

Regards.

This topic has been closed for replies.
AChar.3
AChar.3Best answer
Associate II
March 23, 2022

Jocelyn RICARD found the solution :

It is may be related to the fact that your firmware is not setting the VTOR address.

Default value for VTOR is 0.

When Bfb2 is activated, the bootloader is mapped at 0 to be executed and to determine if something is present in bank2.

So, set the VTOR address to the base address of the flash that is 0x08000000.

You can do this easily in the system_stm32f4xx.c

link : https://community.st.com/s/case/5003W00000EDeBdQAL/dual-bank-stm32f439

2 replies

AChar.3
AChar.3Author
Associate II
December 14, 2021

.

AChar.3
AChar.3AuthorBest answer
Associate II
March 23, 2022

Jocelyn RICARD found the solution :

It is may be related to the fact that your firmware is not setting the VTOR address.

Default value for VTOR is 0.

When Bfb2 is activated, the bootloader is mapped at 0 to be executed and to determine if something is present in bank2.

So, set the VTOR address to the base address of the flash that is 0x08000000.

You can do this easily in the system_stm32f4xx.c

link : https://community.st.com/s/case/5003W00000EDeBdQAL/dual-bank-stm32f439