|
Hello, I am trying to create code which is able to run from flash bank1 or from flash bank2 (using the dual bank STM32L0 architecture) For this I am using platformio (stm32duino):
However I do not get bank2 code running. Does anybody have suggestions or a code example for platformio (stm32duino based). |
Replies: 7 comments 4 replies
|
Hi, |
|
@JeroenIoT,
Thus you binary for bank2 must be compiled and linked as if it is executed @0x08000000, so without offset 0x18000 |
|
Hi @JeroenIoT ,
I don't know about platformio. |
|
Hi Alexandre, That is really interesting - I did the following
Do anybody have a sample bin with serial output? Would like to test it and understand why mine is not working with single BIN for both banks |
|
I just remember, Can you check you hardware revision ? |
|
Quick update
So where is the SCB->VTOR normally set? In the original SystemInit(void) file it is not set and it works when using bank1 only. @ABOSTM - how does the SystemInit() looks like for the stm32 processor you used in the test above? Was SCB->VTOR set? |
|
Yes it is done in at the end of So maybe you are not on latest version. |


Yes it is done in at the end of
void SystemInit (void)but it is already done in latest version:
Arduino_Core_STM32/system/STM32L0xx/system_stm32l0xx.c
Line 174 in 75b051e
So maybe you are not on latest version.
You you check with version 2.3.0 of Arduino_Core_STM32, or later ?