cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S003F3 - FV_RAM Remap vector table in RAM

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?

5 REPLIES 5
Cristian Gyorgy
Senior III

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.

Anyway, I cannot figure out what is the FV_RAM bit used for.

@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!

@Amel NASRI​ can you or someone on the team assist?

Simon V.
ST Employee

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.