Skip to main content
Bogdan Golab
Lead
September 20, 2019
Question

STM8S003F3 - FV_RAM Remap vector table in RAM

  • September 20, 2019
  • 3 replies
  • 2411 views

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?

    This topic has been closed for replies.

    3 replies

    Cristian Gyorgy
    Associate II
    September 20, 2019

    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.

    Bogdan Golab
    Lead
    September 20, 2019

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

    Bogdan Golab
    Lead
    September 25, 2019

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

    Brian Kling
    Senior
    September 26, 2019

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

    Simon V.
    ST Employee
    September 26, 2019

    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.