View unanswered posts | View active topics It is currently Sat Sep 26, 2020 6:59 am

Reply to topic  [ 1 post ] 
Exception Violation Report 
Author Message

Joined: Wed Jul 30, 2014 12:10 pm
Posts: 3
Location: Gallifrey
Post Exception Violation Report
Hello :)

I'm making a program in RobotC 4.10 with EV3, and every time I try to run it it comes up with this error
Exception Error in User Program:

Exception Type: 'Real Address Range Exception(59)'

Program Slot: 0, Task ID: main[0]
Error at PC: Task: main+0x0033
Task PC: Task: main+0x0000,
TaskState: 'Exception'

The code compiles fine. Does anyone know what is wrong with it?


#pragma config(Sensor, S4,     colour,         sensorI2CCustom)
#pragma config(Motor,  motorB,          left,          tmotorEV3_Large, PIDControl, encoder)
#pragma config(Motor,  motorC,          right,         tmotorEV3_Large, PIDControl, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

int current_speed;
string search = "266";
byte reply[10];
//byte test[4];

task main()
   while(true)   //forever
      sendI2CMsg(colour, search, 1);   //ask for colour
      readI2CReply(colour, &reply[0], 1);   //receive answer
      if(reply[0] == 0x04)   //green - for test
         current_speed = 100;
      else   //not green
         current_speed = 0;

      motor[left] = current_speed;
      motor[right] = current_speed;

      if(current_speed == 100)


Fri Aug 01, 2014 6:01 am
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.