iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.12k stars 1.47k forks source link

SD Card doesn't work on MATEK F722 #2796

Closed StefanRvO closed 6 years ago

StefanRvO commented 6 years ago

I am using a MATEK F722 board with iNav 1.9.0-RC1.

When trying to use the SD-Card for blackbox logging, i get the following error in the configurator: "Fatal error. Reboot to retry", and blackbox logging does not work during flight.

Logging works in the newest betaflight, so there should be no issues with the hardware.

dleask commented 6 years ago

Confirmed, was also the same Fatal Error message with 1.8.1 and both Matek provided 1.8.1 hex's Works fine in Betadlight

StefanRvO commented 6 years ago

I am willing to try to find the reason for the issue myself, but as I haven't worked with iNav before, it would be helpfull if someone could give some hints at what parts of the code could cause the issue. As I guess the problem is probably some kind of misconfiguration of the MATEKF722 target, I have tried to compare the target files in iNav with the ones in betaflight, but didn't find any difference which I thought was likely to be the cause.

dleask commented 6 years ago

I’ve tried three different SD cards today and I can get one of them to work with the 1.9.0 firmware. Looks like it may be down to sensitivity of the card format. I’ll fry different formatters to see if there is some consistency.

MrAlfabet commented 6 years ago

I'm using the hex from this issue: https://github.com/iNavFlight/inav/issues/2686

It's working fine with blackbox logging. Just FYI.

StefanRvO commented 6 years ago

I just bought a Sandisk Ultra 16GB card as suggested by the Wiki. This one seems to work as opposed to the 1 GB no-name sdcard I used before. However, I still don't get why it would work in betaflight and not in iNav (i tried the build suggested by MrAlfabet with the same result).

digitalentity commented 6 years ago

It's possible that Betaflight uses lower SD-card clock.

putimir commented 6 years ago

Same to report as StefanRvO: Sandisk Ultra 16GB HC1 works, but none of the 8 noname older 1,2,4 GB cards... Not to much of a big deal as far as I'm concerned...

wilco1967 commented 6 years ago

Same here..... blackbox logging doesn't work on iNav with 2 different cards (1GB + 16 GB). Fatal error....

after Flashing with betaflight, it works... (but I'm not interested in betaflight.... ;-)

version: INAV/MATEKF722 1.9.1 Mar 27 2018 / 20:57:12 (3a5e34e6) (self compiled development version)

update Just tried newest development, with the same SD card, and now it seems to work (the one that started working with betaflight)... version: INAV/MATEKF722 1.9.1 Apr 3 2018 / 22:11:47 (af554014)

and going back to 27 mar version, still works.... Very strange...

I didn't remove the card in between various versions... started working with betaflight, and kept working since.... (for as long as the FC stayed powered.

BUT: after powering down the FC, same problem again.....

bs1957 commented 6 years ago

Can confirm the issue:

MATEK F722-STD iNav 1.9.1 SD card: Transcend 16GB MicroSDHC Class10 UHS-1. Reformatted with both Windows and SD Card Formatter, FAT32. Display: "Fatal Error. Reboot to retry". Works with Betaflight.

Response from Matek asked to post the issue.

bs1957 commented 6 years ago

Is there any solution/advice for the issue?

wilco1967 commented 6 years ago

Tried quite a few cards. Found one that works, but others that don't.

Some of the ones not working with iNav, do work with betaflight.... (on the same FC)

Somehow iNav is really picky.... But it does work, at least with some cards

bs1957 commented 6 years ago

Could you share actual card types it works with?

StefanRvO commented 6 years ago

I have blackbox logging working with two different Sandisk Ultra cards:

It did not work with:

wilco1967 commented 6 years ago

Also a SanDisk ultra 16 I got working

bs1957 commented 6 years ago

I can confirm that SanDisk microSDHC UHS-1 16GB works

Nicholas-81 commented 6 years ago

Здравствуйте. Подскажите, какая модель Sandisk Ultra 16GB microSDHC UHS class 1 действительно работает в Matek F722? SDSDUNB-016G-GN3IN SDSQUNB-016G-GN3MA SDSQUNB-016G-GN3MN SDSQUNS-016G-GN3MA SDSQUNS-016G-GN3MN

Хочу приобрести, но боюсь ошибиться. Ни одна microSD карта, которая у меня есть, в контроллере не определилась.

bs1957 commented 6 years ago

SDSQUSC-016G-ANCIA https://www.amazon.com/gp/product/B00APCMMEK/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

bs1957 commented 6 years ago

Did you try iNav? I cannot make poshold and althold work. Thanks, Boris

On Thursday, June 21, 2018, 6:07:46 AM EDT, Nicholas-81 <notifications@github.com> wrote:  

Здравствуйте. Подскажите, какая модель Sandisk Ultra 16GB microSDHC UHS class 1 действительно работает в Matek F722? SDSDUNB-016G-GN3IN SDSQUNB-016G-GN3MA SDSQUNB-016G-GN3MN SDSQUNS-016G-GN3MA SDSQUNS-016G-GN3MN

Хочу приобрести, но боюсь ошибиться. Ни одна microSD карта, которая у меня есть, в контроллере не определилась.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Dronitoni commented 6 years ago

I tried to use a Samsung Evo 64G, but did'nt work with my MATEK F722 STD. Switched to Sandisc Ultra 32G, works perfect. I'm using INAV 2.0.

stale[bot] commented 6 years ago

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] commented 6 years ago

Automatically closing as inactive.

mikko80 commented 5 years ago

Not work: Kingston micro SDHC V30 32GB (red label) Kingston micro SDHC 10 32GB (white label) Kingston micro SDHC I 10 64GB (white card, blue label)

Work: SanDisk Ultra 16GB micro sdhc I 10 A1 ( Red / Gray)

FlyingJonas commented 5 years ago

I have issues with my Matek F722Std as well. Cant get any of my SD-Cards to initialize. Sandisk Ultra 16GB and Samsung EVO 32GB and some no Name Cards, all Same result in my Case... Fatal SD Error... Can anybody post an freespace file somewhere? so people can try if it works when copy pasted to sd?

digitalentity commented 5 years ago

Fixed in development. Will be part of 2.1 release

expipiplus1 commented 5 years ago

@digitalentity What was the problem and fix?

DzikuVx commented 5 years ago

@expipiplus1 SD cards work as long as good Class 10 are used. LIke Sandisk Ultra 16GB

digitalentity commented 5 years ago

@expipiplus1 fixed by https://github.com/iNavFlight/inav/pull/3984

NSCOTTSTEVENS commented 5 years ago

I have a PNY 32 gig that returns the same error in INAV 2.2.0 on Matek 722se. I formatted with Tuxera formater. Will try windows FAT32

FlyingJonas commented 5 years ago

It turned out that my FC Matek F722 Std was faulty. I replaced it with Matek F722 SE. Check the connections of your sd card slot. try to resolder them or replace FC. I think its hardware problem.

NSCOTTSTEVENS commented 5 years ago

Must be...16 gig PNY also no go. I got it locally so I didn't have to wait. Will order recommended cards before tearing down and re-soldering PIA. I have another FC but that will be more of a project. Can't tune well without BB so whatever it takes.