ROBOTC.net forums
http://www.robotc.net/forums/

Cortex Problem? Start Task Unitialized
http://www.robotc.net/forums/viewtopic.php?f=11&t=7642
Page 1 of 1

Author:  jkamm [ Wed Jan 08, 2014 7:29 pm ]
Post subject:  Cortex Problem? Start Task Unitialized

I have a new cortex with updated firmware that gives the following error after a program is sent to it:

Failed to start program. Try redownloading
Start Task '0': Task is uninitialized

When I press START to begin the program debug, the message appears.
The computers and cords I am using work properly with other cortexs.
I am using a fully charged battery.

Any ideas?

Author:  JohnWatson [ Thu Jan 09, 2014 1:12 am ]
Post subject:  Re: Cortex Problem? Start Task Unitialized

There may be a problem with the code; can you post it for us to debug, using the [code] tags?

Author:  jkamm [ Thu Jan 09, 2014 7:54 am ]
Post subject:  Re: Cortex Problem? Start Task Unitialized

Thanks for your reply.
It is not a code issue. I have tried various programs that start correctly if a different cortex is used.

Author:  mightor [ Sun Jan 12, 2014 2:06 am ]
Post subject:  Re: Cortex Problem? Start Task Unitialized

Without the code it's quite hard to help you.

= Xander

Author:  KSchulze [ Fri Mar 14, 2014 12:26 pm ]
Post subject:  Re: Cortex Problem? Start Task Unitialized

We are having the same problem with our cortex. Here is a copy of one of the programs which I know works.
Code:
#pragma config(Sensor, in1,    linefollower,   sensorLineFollower)
#pragma config(Sensor, in2,    potentiometer,  sensorPotentiometer)
#pragma config(Sensor, in3,    lightsensor,    sensorReflection)
#pragma config(Sensor, dgtl1,  limitswitch,    sensorTouch)
#pragma config(Sensor, dgtl2,  bumpswitch,     sensorTouch)
#pragma config(Sensor, dgtl3,  quad,           sensorQuadEncoder)
#pragma config(Sensor, dgtl5,  sonar,          sensorSONAR_inch)
#pragma config(Sensor, dgtl8,  limitswitcha,   sensorTouch)
#pragma config(Sensor, dgtl11, green,          sensorLEDtoVCC)
#pragma config(Sensor, dgtl12, green,          sensorLEDtoVCC)
#pragma config(Motor,  port1,           flashlight,    tmotorVexFlashlight, openLoop, reversed)
#pragma config(Motor,  port2,           leftmotor,     tmotorServoContinuousRotation, openLoop)
#pragma config(Motor,  port3,           rightmotor,    tmotorServoContinuousRotation, openLoop)
#pragma config(Motor,  port9,           servomotor,    tmotorServoStandard, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

/*
Project Title:Soccer Goal
Team Members:Andrew Landacre, Austin Lane, Javier Romero
Date:3/11/14
Section:Period 2


Task Description:Your team has been asked to design a control system
for the local soccer that can detect when the ball has entered the
goal. A light must blink for 10 seconds after a goal is scored.
Remember, the goalie and other will also be crossing the goal
frequently. You may need to modify the ball so that you divice can
differentiate netween the soccer ball and other objects.


Pseudocode:

*/


//Program begins, insert code within curly braces

task main()
{
  while(true)
  {
    while(SensorValue[limitswitch]==1)
    {
      if (SensorValue[lightsensor]<500)
      {
        turnLEDOn(green);//turn green LED on
        wait(2);//wait 2 seconds
        turnLEDOff(green);//turn LED off
        wait(1);//wait 1 second
        turnLEDOn(green);//turn LED on
        wait(2);//wait 2 seconds
        turnLEDOff(green);//turn LED off
        wait(1);//wait 1 second
        turnLEDOn(green);//turn LED on
        wait(2);//wait 2 seconds
        turnLEDOff(green);//turn LED off
      }
      else//else do nothing
      {
      }
    }
  }
}

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/