Go to Post The championship event is a meta-game of inches. People will complain about unbalanced/unequal divisions, whether you think it's silly or not. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2010, 10:54
frenchie4111 frenchie4111 is offline
Registered User
None #1111
 
Join Date: Jan 2010
Location: Southriver
Posts: 23
frenchie4111 is an unknown quantity at this point
Running Code in Debug Mode | Power Hawks 1111

Hey Frenchie Here from team 1111,

We are just starting to jump into the world of C++ on the cRIO and have heard about a code debugging mode where it does not actually burn to the cRIO but saves in ram? We have looked through documents and have not found a way to do this. Help please.

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2010, 14:26
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Running Code in Debug Mode | Power Hawks 1111

First you must undeploy any code set for startup using the First menu. Then right click on the project after you have built it and select "Execute Kernal Process" or "Debug Kernal Process". Its on page 11 of the file "GettingStartedWithC.pdf" from WPI

From the document:
To start a debug session first make sure that the PC is connected to the target. Right-click on the project name in the “Project Explorer” window and select “Debug Kernel Task…” The Debug dialog is displayed.
Figure 1: Setting the entry point on a Debug Configuration for a robot program.
Change the name of the debug target to something meaningful like “2010TargetTest” shown in the example. Select as the entry point the function FRC_UserProgram_StartupLibraryInit. On the debug options tab, select “Break on Entry” and “Automatically attach spawned Kernel Tasks”. This tells the debugger to stop at the first instruction, and to make the spawned task (your robot task) available to debug.

Brian
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2010, 17:18
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Running Code in Debug Mode | Power Hawks 1111

its Run Kernel Task and Debug Kernel task not Execute Kernal Process and Debug Kernal Process
they have a green play icon with a gear in the corner and bug icon with a gear in the corner (respectively)

I would normally use Run Kernel Task instead of Debug Kernel Task
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2010, 19:37
frenchie4111 frenchie4111 is offline
Registered User
None #1111
 
Join Date: Jan 2010
Location: Southriver
Posts: 23
frenchie4111 is an unknown quantity at this point
Re: Running Code in Debug Mode | Power Hawks 1111

Ok, i have downloaded the .pdf and on the very first set up (The Debug Settings window) it says "Connection to use: " and our drop down menu is empty, although the direstions seem to assume that there is already an entry there.

Thanks guys for helping the noobs out
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2010, 19:42
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Running Code in Debug Mode | Power Hawks 1111

http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf page 4-6
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2010, 20:10
frenchie4111 frenchie4111 is offline
Registered User
None #1111
 
Join Date: Jan 2010
Location: Southriver
Posts: 23
frenchie4111 is an unknown quantity at this point
Re: Running Code in Debug Mode | Power Hawks 1111

Quote:
Originally Posted by byteit101 View Post
It worked byteit thanks a bunch, this si the second time you have helped us.
__________________
[url="http://mylifeisnerdy.co.cc"]My Life Is NerdyURL]
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2010, 20:27
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Running Code in Debug Mode | Power Hawks 1111

Quote:
Originally Posted by frenchie4111 View Post
It worked byteit thanks a bunch, this si the second time you have helped us.
You're welcome. If you want to, you can add to my reputation with the little scale on the orange bar above this post
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cRIO Not Running Code?!? JohnFogarty Programming 11 17-01-2010 19:08
Running camera code wirelessly windell747 NI LabVIEW 4 09-02-2009 21:27
code example to set 4x encoder decoding mode mode fdelagarza C/C++ 1 02-02-2009 17:14
Problem running compiled code jskene Programming 10 23-01-2005 21:13
auton mode running motors incorrectly BK36 Programming 2 12-03-2003 02:43


All times are GMT -5. The time now is 14:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi