Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CRIO Crash with PSoc code (http://www.chiefdelphi.com/forums/showthread.php?t=109023)

enrique 07-10-2012 19:55

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?

enrique 04-01-2013 18:56

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();

slijin 04-01-2013 19:19

Re: CRIO Crash with PSoc code
 
What do you mean, "crashes the cRIO"?

Radical Pi 04-01-2013 23:11

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


All times are GMT -5. The time now is 00:47.

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