Go to Post REAL WORLD = TOP PERFORMANCE... otherwise, get used to Ramen Noodles dinner or living in your childhood bedroom. - Michael Blake [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-10-2012, 19:55
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Cool CRIO Crash with PSoc code

I'm trying to make the crio output to the cypress board. Instead it crashes. I have the boards that came in the kit and 2 more from andymark. I have tried putting the newest hex file, but they process fails. Not sure if the firmware is the problem. The driver station does make a connection and I do set it to enhanced.

DriverStationEnhancedIO &Cypress1 = m_ds->GetEnhancedIO();
Cypress1.SetDigitalOutput(9,true);

Anyone have any input?
  #2   Spotlight this post!  
Unread 04-01-2013, 18:56
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Unhappy Re: CRIO Crash with PSoc code

Was wondering if anyone out there can help on this. I got no answer before.
Basically this code crashes the crio II:

DriverStationEnhancedIO &Cypress1 = m_ds->GetEnhancedIO();
  #3   Spotlight this post!  
Unread 04-01-2013, 19:19
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: CRIO Crash with PSoc code

What do you mean, "crashes the cRIO"?
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #4   Spotlight this post!  
Unread 04-01-2013, 23:11
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: CRIO Crash with PSoc code

Are you sure that m_ds has been assigned using DriverStation::GetInstance()? Everything else looks fine

EDIT: The hex file on the cypress board shouldn't be able to crash it. The Driver Station sits between the cRIO and the cypress and handles the interfacing, so the cRIO never has a direct connection to the cypress
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Closed Thread


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 00:47.

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