This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to load and execute from RAM

As I understand we must define both RAM_MODE and REMAP in ASM settings, but what about the linker settings ?

Parents
  • In the startup.s file for this project (section included below) it appears that if 'REMAP' isn't set, then RAM_MODE isn't even checked (and the MEMMAP register is never set). So I think REMAP also needs to be defined.

    --------------------------------------------
    ; Memory Mapping (when Interrupt Vectors are in RAM)
    MEMMAP EQU 0xE01FC040 ; Memory Mapping Control
    IF :DEF:REMAP
    LDR R0, =MEMMAP
    IF :DEF:RAM_MODE
    MOV R1, #2
    ELSE
    MOV R1, #1
    ENDIF
    STR R1, [R0]
    ENDIF

Reply
  • In the startup.s file for this project (section included below) it appears that if 'REMAP' isn't set, then RAM_MODE isn't even checked (and the MEMMAP register is never set). So I think REMAP also needs to be defined.

    --------------------------------------------
    ; Memory Mapping (when Interrupt Vectors are in RAM)
    MEMMAP EQU 0xE01FC040 ; Memory Mapping Control
    IF :DEF:REMAP
    LDR R0, =MEMMAP
    IF :DEF:RAM_MODE
    MOV R1, #2
    ELSE
    MOV R1, #1
    ENDIF
    STR R1, [R0]
    ENDIF

Children
No data