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

ldr (register, several values)

Hello,

I've a small simple question:

ldr     r4, =||Image$$ER_IROM1$$RO$$Length||+||Image$$RW_IRAM1$$RW$$Length||

At the moment I get an error message from Keil, using this code in the startup file. Maybe an syntax error?

If I write

ldr     r4, =||Image$$ER_IROM1$$RO$$Length||
ldr     r4, =||Image$$RW_IRAM1$$RW$$Length||

there's no such error message.

best regards
David

Parents
  • So post the full text of the complete error message!

    If I use this syntax, I get no error message.

            EXPORT  Reset_Handler
            IMPORT  ||Image$$ER_IROM1$$RO$$Length||
            IMPORT  ||Image$$RW_IRAM1$$RW$$Length||
    
    Reset_Handler
    
    ; this part is always equal
    
    ldr     r4, =||Image$$ER_IROM1$$RO$$Length||
    ldr     r4, =||Image$$RW_IRAM1$$RW$$Length||
    

    best regards
    David

Reply
  • So post the full text of the complete error message!

    If I use this syntax, I get no error message.

            EXPORT  Reset_Handler
            IMPORT  ||Image$$ER_IROM1$$RO$$Length||
            IMPORT  ||Image$$RW_IRAM1$$RW$$Length||
    
    Reset_Handler
    
    ; this part is always equal
    
    ldr     r4, =||Image$$ER_IROM1$$RO$$Length||
    ldr     r4, =||Image$$RW_IRAM1$$RW$$Length||
    

    best regards
    David

Children