View unanswered posts | View active topics It is currently Fri Aug 22, 2014 6:54 am






Reply to topic  [ 5 posts ] 
Cortex Problem? Start Task Unitialized 
Author Message
Rookie

Joined: Wed Jan 08, 2014 7:23 pm
Posts: 2
Post 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?


Wed Jan 08, 2014 7:29 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 564
Post 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?

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Thu Jan 09, 2014 1:12 am
Profile
Rookie

Joined: Wed Jan 08, 2014 7:23 pm
Posts: 2
Post 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.


Thu Jan 09, 2014 7:54 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3190
Location: Rotterdam, The Netherlands
Post Re: Cortex Problem? Start Task Unitialized
Without the code it's quite hard to help you.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Jan 12, 2014 2:06 am
Profile WWW
Rookie

Joined: Fri Mar 14, 2014 12:12 pm
Posts: 1
Post 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
      {
      }
    }
  }
}


Fri Mar 14, 2014 12:26 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.