-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU load on fresh build with SD card installed #7707
Comments
i know, that's whatI dont understand... I can't even get to the CLI when it does it as the configurator just takes absolutely ages. i'm going to try again later today |
@wx4cb it's super important that SD card is correctly placed in the slot. If there is any dirt inside it will cause problems |
I had a similar issue with my F765 Wing FC this morning. CPU usage was spiking to 1900% and trying to use the SpeedyBee configurator kept giving timeout errors. Here is a video I got of the CLI while I was waiting to be able to type in the "tasks" command to see what was causing the CPU spike. This was with a fresh 16GB PNY card and the issue was resolved simply by removing the card. The card now has a 0 byte FREESPAC.E file. Could iNav be having an issue with writing to the new card? |
it could just be that the cpu is tied up writing the freepsace file. I reformatted the card in guiformatter to make sure that it had a valid fat32 filesystem on it, put it back in the FC and just left it run... after about 5 minutes it stopped complaining and usage went back to normal. This could be just a side effect. but doesn't explain why it was doing ti with a card that was already used for BB from another 765 wing. |
Just did the same thing with the same results. Plugged in via USB and left alone for 5 or so minutes. Came back and everything is working perfectly. I can also confirm the FREESPAC.E file on the card is now 4GB. |
Should we add a message or something when it's doing this, so the user knows what's going on? |
that would be an idea, or even just (and i dunno the right term so i'll "linuxify" it) "nice" the process so that it doesn't hog the cpu |
It would be handy if we could "nice" the process, which tells the scheduler adjust the priority. Unfortunately, there is no process. And there is no scheduler. It looks like similar COULD be done by spawning a protothread and calling PT_YIELD() at the appropriate place. |
That would make the mess even worse.... |
Tested on a Matek F405-STD and I don't see this issue.
|
I have a user on Discord who is having this problem with INAV 5.1 on a SPEEDYBEE F405 V3. He says the quad flies great on default without the SD card inserted but is unusable as soon as it is inserted. I will see if he has high CPU usage. Perhaps the above solution will work for him... |
Related issue: |
Thanks PawelSent from Outlook for Android
|
Brand new F765 WSE with a 16 gig UHC3 sd card in the sd card slot, i get 75% cpu usage and cannot get into anything whhen the card is inserted. card removed evrything is fine.
tested with multiple sized and speeds of card, including working BB SD cards from other airframes with the same controller.
thoughts?
The text was updated successfully, but these errors were encountered: