View Single Post
  #2   Spotlight this post!  
Unread 15-02-2011, 14:30
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 674
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Problems with Deploying code

You need to connect to the debug console either by COM port or using the netconsole so that you can see the messages from the cRIO. It will tell you why the code doesn't deploy. But in our case for last year, our code was loaded too far away from the WPI library so it need to use longcall in order to resolve the links. To fix it, you need to add "-mlongcall" to your linker option. In Workbench IDE, right click on the project in project explorer on the left. Select "Properties". In the project properties dialog, click build properties on the left and click the "Build Macros" tab on the right. Make sure your Active Build Spec is "PPC603gnu". Select the "CC_ARCH_SPEC" name and click the Edit... button. If the "-mlongcall" option is not there, append it to the end. Save it and recompile.
__________________
Reply With Quote