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

Access violation even after declaring .ini file.

Hi,

I use LM3S9B90 eval (cortex M3) board. When i run the code, I get an error when the code reaches the first executable statement after main(), which is used to configure the clock settings.

ERROR 65: access violation at 0x400FE000: no 'read' permission.

the execution stops there and when i run again i get a series of access violation errors and each time execution is stopped.

when i check hw_memmap.h file, i see that it is the base address of system control registers.

Iam using Keil IDE.

I also made a ini file using "options for target > Debug > Initialization file.

I compiled it using "debug > function editor" and it shows the address range in "Debug > memory map".

But still it gives the error: access violation.

Please help me to understand what is causing this problem and how to solve it.

regards,
vivek

Parents
  • Hello Vivek G,

    I guess you are using the simulater when you start your debug session.
    After you started the simulator debug session type the command map in the uVision command line to see the currently used mapping. You can add additional mapping with the command map 0x400FE000 , 0x400FFFFF read write. You can add this line also to your .INI file. Please notice that currently this device is not simulated.

    Best Regards,
    Martin Guenther

Reply
  • Hello Vivek G,

    I guess you are using the simulater when you start your debug session.
    After you started the simulator debug session type the command map in the uVision command line to see the currently used mapping. You can add additional mapping with the command map 0x400FE000 , 0x400FFFFF read write. You can add this line also to your .INI file. Please notice that currently this device is not simulated.

    Best Regards,
    Martin Guenther

Children
No data