AnsweredAssumed Answered

STM32 Cortex M3 assembly with Keil uVision

Question asked by hathaway.kelly on Jan 9, 2013
Latest reply on Jan 11, 2013 by Andrew Neil
I have been working for a couple of weeks trying to simulate a simple assembly program using Keil uVision 4.60. I have tried the Cortex M3 for a target and I have tried a few of the STM32F10x devices for the target, particularly the STM32F103RC. All with the same results. The program builds with only one warning:

Test3.sct(8): warning: L6314W: No section matches pattern *(InRoot$$Sections).

When I run the program the program starts execution at 0x0, but the code is at 0x8000000 where it is supposed to be according to the default Read/Only Memory section. What needs to be done to execute at the instructions?

        AREA    RESET, CODE, READONLY
                 
        ENTRY
 
start      MOV     r0, #3
        MOV     r1, #7
        ADD     r2, r1, r0
                 
loop       B       loop
 
     END

Outcomes