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 i am reading the book and coding the examples from it , but the problem is, it does not provide for Keil wise explanation , only asm lang codes and simple programs to begin with are given

    the STR r0,[r9], kind of instructions are reporting error 65, which is not the case in other arm compilers , i know the error is in AREA ,CODE ."READONLY" and it cant write into rom , i changed the addreess of iram and irom in options for target and tried to write into iram using STR instructions ,but the error persists, i just want to know how to configure KEIL! to read and write into RAM ,or access the onchip ram ! i hope i ve made myself clear :)

Reply
  • SIR i am reading the book and coding the examples from it , but the problem is, it does not provide for Keil wise explanation , only asm lang codes and simple programs to begin with are given

    the STR r0,[r9], kind of instructions are reporting error 65, which is not the case in other arm compilers , i know the error is in AREA ,CODE ."READONLY" and it cant write into rom , i changed the addreess of iram and irom in options for target and tried to write into iram using STR instructions ,but the error persists, i just want to know how to configure KEIL! to read and write into RAM ,or access the onchip ram ! i hope i ve made myself clear :)

Children