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

memory access restricitions

i am a novice ,and i am doing basic arm coding ,i ve the following program

AREA ARMex, CODE, READONLY ; Name this block of code ARMex ENTRY ; Mark first instruction to execute

start MOV R0,#0X00000067 MOV R1,#0X00000068 LDR R2,[R0] END

stop

MOV r0,#0x18 ; angel_SWIreason_ReportException LDR r1,=0x20026 ; ADP_Stopped_ApplicationExit SVC #0x123456 ; ARM semihosting (formerly SWI) END ; Mark end of file
everything above 'start' & below 'stop' was copied from keil example 2.1 of ARM error is
*** error 65: access violation at 0x00000011 : no 'write' permission

plz dont say ro include me startup.s or other complicated things , i am using this only for learning purpose ,any simple thing will be appreciated

Parents
  • sir its a very simple program ,i am reading the keil manual and other stuff too,
    its a very simple pgm to see how STR & LDR instructions work in ASSEMBLY LEVEL ,
    i know the problem is with READONLY and CODE pre-processor attribute
    in simple what would u write instead of them so that the code fetches instruction from memory (IRAM) or (RAM) and writes into them?

Reply
  • sir its a very simple program ,i am reading the keil manual and other stuff too,
    its a very simple pgm to see how STR & LDR instructions work in ASSEMBLY LEVEL ,
    i know the problem is with READONLY and CODE pre-processor attribute
    in simple what would u write instead of them so that the code fetches instruction from memory (IRAM) or (RAM) and writes into them?

Children
No data