将ESP32与多个传感器连接,
如温度, 震动….
会定期(温度约10分钟, 震动2分钟)的纪录数据存在SD卡上,
但常造成SD卡损坏,
请问这可能的原因是?
谢谢
ESP32存取SD Card容易造成损毁
Moderator: ESP_Bob
-
- Posts: 290
- Joined: Wed Sep 05, 2018 6:23 am
Re: ESP32存取SD Card容易造成损毁
损坏是指什么?是SD卡不能用了还是文件系统损坏,需要重新格式化?另外,你的应用场景需要经常断电吗?
Re: ESP32存取SD Card容易造成损毁
系统不会常断电, 几乎是长时间开机.
长时间执行后,有问题的情况下会出现这个error message(如图01)
损坏时, 会认不到卡, 需要重新格式化,
此时将损坏的卡片插到WINDOWS时的讯息(如图02)
长时间执行后,有问题的情况下会出现这个error message(如图01)
损坏时, 会认不到卡, 需要重新格式化,
此时将损坏的卡片插到WINDOWS时的讯息(如图02)
- Attachments
-
- PIC 02.png (97.58 KiB) Viewed 9394 times
-
- PIC 01.jpg (398.07 KiB) Viewed 9394 times
Re: ESP32存取SD Card容易造成损毁
我們會看到下面的ERROR MESSAGE
Code: Select all
E (34147) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (34148) diskio_sdmmc: sdmmc_read_blocks failed (263)
I (35003) [MAIN_APP]: FREE ESP_HEAD 11016
E (35010) [Gen_Sen]: 04edh004:get data timeout
E (35149) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (35149) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (35150) diskio_sdmmc: sdmmc_read_blocks failed (263)
E (35155) [LoggerUt]: open /sdcard/log/03edd001.log failed
I (35953) [MAIN_APP]: FREE ESP_HEAD 11016
E (35997) [Gen_Sen]: 04edh005:get data timeout
E (36155) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (36156) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (36157) diskio_sdmmc: sdmmc_read_blocks failed (263)
I (36903) [MAIN_APP]: FREE ESP_HEAD 11016
E (36984) [Gen_Sen]: 04edh006:get data timeout
E (37162) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (37162) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (37163) diskio_sdmmc: sdmmc_read_blocks failed (263)
E (37168) [LoggerUt]: open /sdcard/log/04edh001.log failed
I (37853) [MAIN_APP]: FREE ESP_HEAD 11016
E (37971) [Gen_Sen]: 04edt001:get data timeout
E (38168) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (38169) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (38169) diskio_sdmmc: sdmmc_read_blocks failed (263)
I (38803) [MAIN_APP]: FREE ESP_HEAD 11016
E (38958) [Gen_Sen]: 04edt002:get data timeout
E (39175) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (39175) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (39176) diskio_sdmmc: sdmmc_read_blocks failed (263)
E (39181) [LoggerUt]: open /sdcard/log/04edh002.log failed
I (39753) [MAIN_APP]: FREE ESP_HEAD 11016
E (39945) [Gen_Sen]: 04edt003:get data timeout
E (40181) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (40182) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (40182) diskio_sdmmc: sdmmc_read_blocks failed (263)
I (40703) [MAIN_APP]: FREE ESP_HEAD 11016
E (40932) [Gen_Sen]: 04edt004:get data timeout
E (41188) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (41188) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (41189) diskio_sdmmc: sdmmc_read_blocks failed (263)
E (41194) [LoggerUt]: open /sdcard/log/04edh003.log failed
I (41653) [MAIN_APP]: FREE ESP_HEAD 11016
E (41919) [Gen_Sen]: 04edt005:get data timeout
E (42194) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (42195) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (42195) diskio_sdmmc: sdmmc_read_blocks failed (263)
I (42603) [MAIN_APP]: FREE ESP_HEAD 11016
E (42906) [Gen_Sen]: 04edt006:get data timeout
E (43201) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (43201) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (43202) diskio_sdmmc: sdmmc_read_blocks failed (263)
E (43207) [LoggerUt]: open /sdcard/log/04edh004.log failed
I (43553) [MAIN_APP]: FREE ESP_HEAD 11016
E (43988) [Gen_Sen]: 03edd001:get data timeout
E (44207) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (44208) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (44208) diskio_sdmmc: sdmmc_read_blocks failed (263)
C:/Users/rong.tsai/__++__!!next_layer/workspace/tangram/toolchain/esp2020r2_toolchain-20200601/esp-idf/components/newlib/locks.c:113 (_lock_close)- assert failed!
abort() was called at PC 0x40085945 on core 1
Who is online
Users browsing this forum: No registered users and 41 guests