I would like to put a constant value into STM32 interrupt vector table.
Usually, the table consists of weak symbols named VectorXXX, which are pointers to the ISR.
However, I want to put a constant 32 bit number into an unused vector, for example Vector100.
I know from software architecture point of view it's a very bad idea. I should define a fixed section in ther linker script and put my data there. However, I have already several devices with Read-Out-Protection=2 using the mentioned method, so I have to deal with it. This design choice was done several years ago when I had no experience at all
In the past this was done by just writing the number into vectors.s, but I would like to avoid touching this generic file in the future.
Is there a better way to reach this ugly goal?
Thanks!