Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Command-Based: No Robot Code (http://www.chiefdelphi.com/forums/showthread.php?t=133838)

CoffeeFlux 01-02-2015 16:13

Command-Based: No Robot Code
 
Hey everyone, I'm using a command-based bot, as my team has historically, but am having issues with this year's code.

When I just attempt to start it, or even restart the roboRIO, I get the "No Robot Code" error, and prints only "Launching /home/lvuser/FRCUserProgram". When I ssh in, the file FRCUserProgram exists, and when I run"/usr/local/frc/bin/netconsole-host /home/lvuser/FRCUserProgram" it simply prints out the same thing as it did on the DS. If I just attempt to run the program itself, I get a segfault, and the lack of gdb/gcc or the ability to connect the bot to the internet (thanks to my school) means that I'm unable to make use a of a debugger.

My code is available here: https://github.com/team422/FRC-15

For reference, I'm working in Eclipse and building the code on a Windows 8 laptop. Also, the roboRIO is capable of running code, as I put the "Getting Started" project on the bot and it successfully ran. Any help is greatly appreciated!

Joe Ross 01-02-2015 16:27

Re: Command-Based: No Robot Code
 
Have you tried the eclipse remote debugger? http://wpilib.screenstepslive.com/s/...-robot-program

CoffeeFlux 01-02-2015 16:30

Re: Command-Based: No Robot Code
 
Nope, I wasn't aware of that, thanks!

byteit101 01-02-2015 17:50

Re: Command-Based: No Robot Code
 
Quote:

Originally Posted by CoffeeFlux (Post 1437033)
, and the lack of gdb/gcc

because its not called gdb. It is called arm-frc-linux-gnueabi-gdb as it is a cross debugger. Though I would recommend using eclipse as that does all the proper magic for you to call arm-frc-linux-gnueabi-gdb

one_each 02-02-2015 12:06

Re: Command-Based: No Robot Code
 
We were seeing the same behavior in our code. For us, it turned out to be accessing a (NULL) pointer before it was initialized.


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

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