cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with dual bank enable stm32f4

AChar.3
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
AChar.3
Associate II

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

View solution in original post

2 REPLIES 2
AChar.3
Associate II

.

AChar.3
Associate II

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