Go to Post "If you abuse the easy button, you become it." / "What does that mean?" / "We hit you and you say 'That was easy'" - ScoutingNerd175 [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 26-01-2011, 13:50
linuxboy linuxboy is offline
Registered User
AKA: Oliver Graff
FRC #3780
Team Role: Alumni
 
Join Date: Nov 2010
Rookie Year: 2009
Location: MI, USA
Posts: 217
linuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud of
Debugging on the cRIO

Hi everyone,
I had a question about running code on the cRIO right from the windriver interface. Say I run some code on the cRIO using right click run on target (that is probably not verbatim since I don't have windriver on here but it should be pretty correct) can I kill some tasks and be able to do it again without having to reset the cRIO?

Thanks,
Oliver
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2011, 14:15
kwojcik kwojcik is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Sep 2008
Rookie Year: 2009
Location: California
Posts: 24
kwojcik is a splendid one to beholdkwojcik is a splendid one to beholdkwojcik is a splendid one to beholdkwojcik is a splendid one to beholdkwojcik is a splendid one to beholdkwojcik is a splendid one to behold
Re: Debugging on the cRIO

I figured out how to do this 2 years ago but I highly recommend you do not try to do this. Reason being: one time we deleted the tasks and the robot started driving full speed... very dangerous.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2011, 10:34
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Debugging on the cRIO

Quote:
Originally Posted by kwojcik View Post
I figured out how to do this 2 years ago but I highly recommend you do not try to do this. Reason being: one time we deleted the tasks and the robot started driving full speed... very dangerous.
Really? I don't think this can happen due to the interface between the PPC and the FPGA - if the kernel crashes, the FPGA should disable the outputs.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2011, 10:42
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Debugging on the cRIO

If the DS is still sending packets to the robot, then the system watchdog is happy and fed and will keep the FPGA alive. You can use the DS to disable or estop.

The user watchdog needs to be enabled in order for a breakpoint to stop the robot. The safety features of 2011 are equivalent to having the watchdog enabled, but will only stop a specific output.

Greg McKaskle
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


All times are GMT -5. The time now is 20:30.

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