-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Description
Describe the bug
I have a bug about logging
when I set SDLOG_MODE to when armed until dosarm , an error message is displayed when executing sd_bench on the terminal. The error message is as follows
` nsh> sd_bench
INFO [sd_bench] Using block size = 4096 bytes, sync=0
INFO [sd_bench]
INFO [sd_bench] Testing Sequential Write Speed...
ERROR [sd_bench] Write error: 22
nsh> `
when I set SDLOG_MODE to from boot until shutdown , sd bench on the terminal is normal,The message is as follows
` nsh> sd_bench
INFO [sd_bench] Using block size = 4096 bytes, sync=0
INFO [sd_bench]
INFO [sd_bench] Testing Sequential Write Speed...
INFO [sd_bench] Run 0: 673.40 KB/s, max write time: 231 ms (= 17.32 KB/s), fsync: 3 ms
INFO [sd_bench] Run 1: 830.76 KB/s, max write time: 12 ms (= 333.33 KB/s), fsync: 2 ms
INFO [sd_bench] Run 2: 837.24 KB/s, max write time: 12 ms (= 333.33 KB/s), fsync: 3 ms
INFO [sd_bench] Run 3: 829.56 KB/s, max write time: 16 ms (= 250.00 KB/s), fsync: 3 ms
INFO [sd_bench] Run 4: 828.15 KB/s, max write time: 12 ms (= 333.33 KB/s), fsync: 2 ms
INFO [sd_bench] Avg : 799.79 KB/s
nsh> `
Of course, I have occasionally encountered different errors, as shown below
eg1:
` nsh> sd_bench
ERROR [sd_bench] Can't open benchmark file /fs/microsd/benchmark.tmp
nsh> `
eg2:
` nsh> sd_bench
INFO [sd_bench] Using block size = 4096 bytes, sync=0
INFO [sd_bench]
INFO [sd_bench] Testing Sequential Write Speed...
ERROR [sd_bench] Write error: 5
nsh> `
To Reproduce
Modify the SDLOG_MODE parameter and run the test command on the terminal
Expected behavior
No response
Screenshot / Media
Flight Log
Exceptions cannot be logged
Software Version
Flight controller
We made the hardware ourselves
Vehicle type
None
How are the different components wired up (including port information)
No response
Additional context
No response






