cancel
Showing results for 
Search instead for 
Did you mean: 

Stm8L custom bootloader vector table.

emre2
Associate
Posted on July 07, 2015 at 16:30

Hi

I wrote custom bootloader for stm8l152c8. Its working fine. But i want to write two user application to the board. For example i have 2 application one of them is starting 0x9000 other one starting 0xB000 adresses in software there is a vector table for interrupts. I can modify it when i connection via swim. But i want to change it as dynamic. When i sent appi which is starting  from 0x9000 adress vector table will be 0x9000 ,when i sent other one, it will be 0xB000 Can i do it in application or bootloader code?

Thanks.
1 REPLY 1
luca239955_stm1_st
Senior II
Posted on July 08, 2015 at 13:44

I don't understand much of what you are trying to do, but knowing that the interrupt vectors are fixed by hardware, the general idea for several applications (bootloader + appli1 + appli2..) sharing the same vectors is that the hw vectors are redirected to ram, and each application does rewrite this ram table according to its needs before enabling the interrupts.

Hope it helps.