MCU: STM32F030K6T. remape vector table scince the register VTOR is not availbe on this MCU.
MCU: STM32F030K6T. I have the problem remape vector table scince the register VTOR is not availbe on this MCU. I would like to ask how i can remape the vector table on this MCU to one of my application address 0x08001000 or 0x08004800. I have been doing this procces on STM32G030F6P and it was working fine. This is the code for G Type MCU int main(void){
if (IMAGE_1 == *((__IO uint32_t*) SRAM_SELECT_ADDRESS)) {
uint32_t addressImage1 = imageAddress(CONFIG_ADDRESS, IMAGE_1);
SCB->VTOR = addressImage1 + 4;
}
if (IMAGE_2 == *((__IO uint32_t*) SRAM_SELECT_ADDRESS)) {
uint32_t addressImage2 = imageAddress(CONFIG_ADDRESS, IMAGE_2);
SCB->VTOR = addressImage2 + 4;
}
/* MCU Configuration--------------------------------------------------------*/
platform_start();
HAL_UART_Receive_IT(&huart2, uartRxbuffer, sizeof(uartRxbuffer));
while(1){
// waiting for an interrupt.
}
}
Thanks in advance for your help