Troubleshooting Hardware

cancel
Showing results for 
Search instead for 
Did you mean: 

2x Roborio 2 software issue leading to hardware issue

We have two brand new roborio 2 units. During the last few weeks we encountered an issue where after a few deploys of code, the image of the rio would get corrupted and the SD card would have to be reformatted in order to deploy code properly again. This happened for both rios. We recently discovered this issue happening in the rio 1 as well. I guess it has to be something in our code that's doing something really bad? Linking the code below. This meant regularly changing SD cards. After a few swaps, the spring mechanism of the SD card holder on one of the units stopped working completely, and in order to take the card out we have to use a pin. After a few days, the other card holder in the other rio 2 stopped working as expected, but in a different way: when inserting a card, it wouldn't always hold it in, only after trying many times it would accept it and it would be properly seated inside. When we wanted to take out the card, it works as expected. This happened on the field at ISR #1 and was really embarrasing having to stop the match in order to replace the SD card and re deploy code.

 

Our code: https://github.com/Programming-TRIGON/RobotCode2023

0 Kudos
Message 1 of 12
(1,570 Views)

Hi Trigon-5990,

 

Thanks for posting on the forums. I'm Matthew with NI.


Are you able to grab the driver station logs from when this was happening?

If not, are you able to reproduce this on a test bench or on a practice bot? (i.e., are you able to try to debug this in between competitions?)

0 Kudos
Message 2 of 12
(1,537 Views)

Hi

The solution to the problem was the user button. It seems to stop the code.

Now we have 2 rios that work but their SD card holder is very hard to use. What should we do regarding that?

0 Kudos
Message 3 of 12
(1,515 Views)

When you say "hard to use", do you mean it takes a bit of umph to push the cards in all the way? or that they are having trouble keeping the cards seated in some way?

0 Kudos
Message 4 of 12
(1,502 Views)

Hi sorry for the wait

When I say it's hard to use i mean it takes a bit of umph to push the cards in all the way
when it's get in the sd port it's stay in but it's taking a lot time to get it in the sd port

0 Kudos
Message 5 of 12
(1,361 Views)

The SD card holder should use a strong spring and corresponding clip.

Are you doing any file input/output? Do you reference the user button in your code?

0 Kudos
Message 6 of 12
(1,346 Views)

The issue were talking about is purely mechanical, where with one of the rios it's easy to put in the micro SD card, but when pressed again it won't jump out, so we have to use a nail or something else to get it out, and with the other rio, it's almost impossible to get it to latch onto the card when putting it in, one has to try many many times until it will accept the card, but when pressed after inserting it jumps out just fine.

0 Kudos
Message 7 of 12
(1,334 Views)

Hi

Would love to get this sorted before our upcoming off-season competition 

0 Kudos
Message 8 of 12
(1,263 Views)

I'm sending you a DM on how to address the first one (the one you have to use a tool to remove).

 

I've pinged a colleague on the correct path forward for the one that's hard to insert.

0 Kudos
Message 9 of 12
(1,258 Views)

For the one that is hard to put in,

 

try using a *large* slotted screw driver to gently apply presser across the whole card to get it to insert (make sure to not force the card and break the slot, just a little leverage from the screw driver should be enough).

0 Kudos
Message 10 of 12
(1,225 Views)