Hello! I manage to write a custom boot loader in STM32L031E6 using I2C interface. To do so, it requires the MCU to provide at least the following features:
1. Reallocation of vector table
2. API functions for internal flash read/write/erase
For (1), I know the there is a vector register VTOR available in STM32L031E6 to reallocate vector table. However, I cannot find any information of (2). Could anyone advise how can I do and anything I have missed out? Many Thanks!