Build Successful is displayed but robot code stays red

I will explain all details after this paragraph, but this is the most baffling thing: I have tested two projects, neither of which work on this year’s robot. However, both work on last year’s robot. So it can’t be the code, right? Despite that:

Everything on the laptop is updated (the IDE, frc update suite, driver station, all libraries used, gradlerio, etc.). The rio was flashed with the latest firmware earlier today. I am using a USB connection straight from the rio to the laptop, which has been tested to work on another robot. I am using gradlerio on both projects, which both work on last year’s robot.

I don’t know what else it could be, aside form the roborio. But it was just flashed. Anyone have any suggestions?

Did you update both the firmware and the image on the roboRIO?

Are there any errors or prints in the console? Make sure you add prints and warnings on the driver station.

Yes, with the latest firmware.

No errors.

I’m having the same problem - the Riolog in Eclipse says “Console output requires a Driver Station to be connected to the robot.”
Again, the code worked before and now suddenly doesn’t.

Do you have the console output disabled on the rio? Re- enabling it might let you se the output in eclipse,
Do you get a green when for robot code when you download , then it goes red?
It so, you might be trying to assign an IO port multiple times . We ran into a similar problem assigning the serial port to our sonar when console output was enabled . Green robot code until we enabled them suddenly red .

The next thing I would recommend is to go back to eclipse and a new-other-example-“tank drive” project. That should work with any rio and any lan/wifi/usb connection (even if its the wrong pwm-ports…), if that succeeds then you start to debug your own projects from the top (missing libs… missing .ini files…).

This is somewhat of a long shot, but make sure your driver station has the correct team number. I know my team has definitely messed that up and not understood why code wasn’t working. It won’t connect if the team number is wrong in the DS.