STM32WB OTA SCB->VTOR
Hi,
I need to add OTA functionality to a CubeMX generated project. The readme.txt file from the BLE_HeartRate_ota project has a note saying "Remove the update of SCB->VTOR in the file system_stm32wbxx.c". On my current CubeMX generated project the SCB->VTOR line is protected with a macro as follows:
#if defined(USER_VECT_TAB_ADDRESS)
/* Configure the Vector Table location add offset address ------------------*/
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET;
#endif /* USER_VECT_TAB_ADDRESS */
I am using CubeIDE and noticed that this macro is not defined by default, which doesn't make sense.
- Where is the VECT_TAB_BASE_ADDRESS defined?
- Is it OK to use another define macro to disable the line instead of deleting it? Asking this because comparing the BLE_HeartRate vs BLE_HeartRate_ota the lines were completely removed.

