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

Code execution on Reset for ARM: info required

I want to write a program in assembly where my code is resident from location, say, 0x20000. On reset, code execution should start from location 0x20000. Kindly let us know how to write the initial code.

I tried the following:


AREA ARMex, CODE, AT 0x00000000
ENTRY

start
    B here
 org 0x20000

 here: MOV    r0, #10
    MOV     r1, #3
    ADD    r0, r0, r1
END
  

Parents
  • On reset, code execution should start from location 0x20000

    I never have programmed an ARM in my life, but: no way are you going to persuade any CPU to change the actual code execution start address for a reset. Certainly not by any means software could help you with. The location of the reset vector is hardwired into the processor --- it has to be.

Reply
  • On reset, code execution should start from location 0x20000

    I never have programmed an ARM in my life, but: no way are you going to persuade any CPU to change the actual code execution start address for a reset. Certainly not by any means software could help you with. The location of the reset vector is hardwired into the processor --- it has to be.

Children