Keil™, An ARM® Company

Discussion Forum

debugging error.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
sriram k
Posted
18-Jan-2008 01:03
Toolset
ARM
New! debugging error.

Hi all
I have just started to use AT91sam9260 in keil 3.5v
When i write a simple prog... the compilations gives no errors. When I start debug it displays

"Error 65: access violation at 0xFFFFEE40: no 'write' permission"

I checked the previous posts and tried to change the memory address locations in Target options. Still it gives the same error. I am facing this problem only with ARM-9series. ARM-7 is working fine
plz help me to solve with this problem.

Thanks in advance
sriram

Read-Only
Author
Per Westermark
Posted
18-Jan-2008 01:27
Toolset
ARM
New! RE: debugging error.

Different ARM chips have different behaviour with regard to invalid memory accesses. It is the glue logic outside the processor kernel that is generating exceptions.

Are there memory at the mentioned address? Is it writeable memory? If not, you will have to figure out why your application tries to perform a write access in that memory region.

Read-Only
Author
Andy Neil
Posted
18-Jan-2008 01:46
Toolset
ARM
New! RE: It is the glue logic outside the processor kernel that is generating exceptions.

Is it?

Isn't that message from the debugger (or the simulator)?

So it's the debugger (or the simulator) that is not correctly configured...?

See:
http://www.keil.com/forum/docs/thread10080.asp

http://www.keil.com/support/docs/814.htm

Read-Only
Author
Per Westermark
Posted
18-Jan-2008 03:01
Toolset
ARM
New! RE: It is the glue logic outside the processor kernel that is generating exceptions.

When running on the hardware, it's the memory controller glue that may (or may not) generate exceptions.

When running in a simulator, then it is obviously the Keil simulator (and the configuration to it) that decides if there will be a memory access violation or not.

The question is still if there is expected to be any writeable memory at that specific memory address.

Read-Only
Author
sriram k
Posted
22-Jan-2008 04:34
Toolset
ARM
New! RE: It is the glue logic outside the processor kernel that is generating exceptions.

Thanks for the reply...
I understood what you said.
How do I specify all the address ranges?
My compiler supports up to 16MB only, and my address range is up to 256MB...
Also where do i specify all these addressed. Address range and access type can be given in command line by MAP command. But entering all these ranges every time I compile is bit difficult. So how do I specify these to be fixed?

Read-Only
Author
Andy Neil
Posted
22-Jan-2008 05:19
Toolset
ARM
New! RE: How do I specify all the address ranges?"

The answer to that is given in the knowledgebase article linked earlier.

Read-Only
Author
Andy Neil
Posted
22-Jan-2008 05:22
Toolset
ARM
New! RE: entering all these ranges every time I compile is bit difficult

These are debugger commands - they have nothing to do with compiling or the compiler!

You can put commonly-used debugger command sequences into a debugger command file - See: http://www.keil.com/support/man/docs/uv3/uv3_cm_include.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings