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

error 65: Access Violation

Hi,

I am simulating my code using the uVision v2.33.

When I am exiting a function i get the following error:

error 65: Access violation at address 0x00BA0180. and the simulator jumps to disassembly window.

I have read the forum and the doc abt access violation errors but am not able to understand why I am getting the error on exiting a function?

I am searching for an answer in the C166 manuals and the ST10f269 manual. But am directionless right now.

If anyone is familiar or knows the problem area, please share it with me.

Regards
Deepak

Parents
  • Why did you make another post?

    You need to put your trap routine at the proper address as the controller will jump to 0x000028 for any Class B trap. Perhaps you should include the Keil "traps.c" as an example and then add your specific code to each routine such as reading the TFR to see what the reason for the trap. If the bit ILLOPA is set then you have an odd word access problem.

    As far as your variable example I look at how the variables are being declared in the memory map for a clue. Perhaps you need to send a test case to Keil.

Reply
  • Why did you make another post?

    You need to put your trap routine at the proper address as the controller will jump to 0x000028 for any Class B trap. Perhaps you should include the Keil "traps.c" as an example and then add your specific code to each routine such as reading the TFR to see what the reason for the trap. If the bit ILLOPA is set then you have an odd word access problem.

    As far as your variable example I look at how the variables are being declared in the memory map for a clue. Perhaps you need to send a test case to Keil.

Children
No data