2019-09-20 12:55 AM
Hi,
The UM0470 says:
DM control register 2 (DM_CR2)
FV_RAM Remap vector table in RAM
This bit is set or cleared by software. It remaps the interrupt vector table to a RAM
location instead of program memory (usually 8000h).
0: Vector table is in Program Memory area (8000h)
1: Vector table is in RAM memory area (address depends on the product).
---
Could you pelase let me know where I can find the RAM address mentioned above?
In other words what is the RAM address the vector table can be remapped to?
2019-09-20 01:50 PM
As far as I know, there is no possibility to remap the interrupt vector table, you could only redirect it with jumps. If the remap is possible in debug mode only, I could not find anything in datasheets I've read until now on STM8s. It might be only an option for certain devices or just something for future implementations - that we'll never see?
So, if someone from ST can tell us different, it would be nice to hear.
2019-09-20 01:56 PM
Anyway, I cannot figure out what is the FV_RAM bit used for.
2019-09-25 12:31 AM
@brk
I have a problem with explanation of the FV_RAM bit in DM_CR2 register. I wanted to know what is the RAM location of the remapped interrupt vector (assumed that it works as described in the UM0470).
Maybe you have an access to the document revealing this secret.
It's not urgent.
Thank you!
2019-09-25 11:57 PM
@Amel NASRI can you or someone on the team assist?
2019-09-26 06:55 AM
Hello,
The address of the reset vector is relocated at address 0x0 when vector table is remapped in RAM. Which is the RAM base address.
Kind regards,
Simon
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.