How to determine STM32WB flash user space size and boundaries?
Hello,
I am trying to store as much data as I can into STM32WB55RGV6 flash.
So far I've figured out that main memory span addresses 0x08000000 - 0x080FFFFF.
I also know that CPU2 reserve some space at the end of the main memory and I am able to read the address at which it starts - this gives me last safe address to use.
However I cannot seem to figure out how to find the addresses occupied by main program code which is somewhere at the beginning of the main memory.
I've written test code that program flash from CPU2 secure sector, all the way down to 0x08000000 which runs fine until hardware fault is thrown upon write attempt below 0x08000000 or when some parts of main program code is overwritten.
During this experiment HAL_FLASH_Program never return any errors.
My goal is to read what is the first (looking from bottom up) safe address to write to in flash so I can safely store as much data as possible.
