Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

keil arm7 help in acess memory

Status
Not open for further replies.

kartikkg

Newbie level 5
Joined
Nov 17, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,353
i am a novice at keil , i am learning arm 7 assembly level program , i want to know hot to read and write into memory ,either rom or ram
AREA ARMex, CODE, READONLY
; Name this block of code ARMex
ENTRY ; Mark first instruction to execute

start

MOV R0,#0X00000000
MOV R1,#0X00000007
LDR R9,[R0]
STR R9,[R1]
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

This is my program , but i am unable to edit the memory regions 0x00000000
and this is *** error 65: access violation at 0x00000007 : no 'write' permission
for 0x00000007
sorry for ignorance
 

bobsanjose

Advanced Member level 1
Joined
Jan 13, 2006
Messages
416
Helped
56
Reputation
112
Reaction score
21
Trophy points
1,298
Location
Silicon Valley
Activity points
5,228
kartikkg said:
i am a novice at keil , i am learning arm 7 assembly level program , i want to know hot to read and write into memory ,either rom or ram
AREA ARMex, CODE, READONLY
---snip ---
but i am unable to edit the memory regions 0x00000000
and this is *** error 65: access violation at 0x00000007 : no 'write' permission
for 0x00000007
sorry for ignorance

Just a thought; did you ever wonder why this area is called READONLY?
Thee are no direct write operations into the ROM or Flash area. Only RAM cells can be written directly.
Writing to FlashROM is called programming and a totally different process.
A couple phrases to use in your favorite search engine
"Difference between ROM and RAM"
"Difference between Code space and Data Space in programs"
You need to cover the basics first. Writing a program in ARM ASM is not the basics.

hth. Bob
 

kartikkg

Newbie level 5
Joined
Nov 17, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,353
i know difference between ram , rom etc
what i want is a solution and not a weird lecture which addresses no issue ,
Can anybody who knows for real ,provide me with a solution?
i ve enable rom ram settings in the target device and given them address range too, but yet this problem persists , plz give me clear "instructions"

all the help is greatly appreciated

Added after 1 hours 41 minutes:

can somebody give me a simple way to configure the keil for this , i ve copied the example assembly language pgm from keil software example
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top