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

µVISION 5 Debugger: error 65: access violation at 0x40048100 : no 'write' permission

I am using the µVision Simulator on a FRDM KL25z device.

When I start the simulator via the debugger, I get the following error:

      *** error 65: access violation at 0x40048100 : no 'write' permission

The debugger runs well with the FRDM KL25z device.

How can I configure the simulator to run?

Thanks


  • This is how I got the simulator to work:

    I created a simulator debug initialization file, and added the line:

              MAP 0x40000000, 0x400FFFFF read write

    I then updated the Initialization File: section of the Options for Target debug window, so that it will read my initialization file when it starts the simulator.

    I also commented out the following lines in the system_MKL25Z4.c  file:

       while((MCG->S & MCG_S_IREFST_MASK) == 0x00U) { /* Check that the source of the FLL reference clock is the internal reference clock. */

       }

       while((MCG->S & 0x0CU) != 0x00U) {    /* Wait until output of the FLL is selected */

       }

  • This will help to run the simulator, but as the address range is reserved for peripherals, they will become mere RW memory locations as there is no simulation available for your device!