<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Olivier,<div class=""><br class=""></div><div class="">I think this is two different issues.</div><div class=""><br class=""></div><div class=""><ol class="MailOutline"><li class="">SD card issue<br class=""><br class="">Are there any system-level errors shown in the logs when you try this? Please try on local console to see what is shown there.<br class=""><br class="">Are you powered from USB or vehicle power?<br class=""><br class="">Can you show the output of ‘config list sdcard’ and ’sd status’?<br class=""><br class=""></li><li class="">DBC load issue<br class=""><br class="">Can you send me the Vectrix.dbc file you are using, please. Most likely something in the structure of this file is causing the crash. It seems that one of the messages (BO_) cannot be parsed correctly.</li></ol><div><br class=""></div><div>What version of IDF are you using now? Just master head, right?</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""></div><div><blockquote type="cite" class=""><div class="">On 6 Dec 2018, at 4:29 AM, Olivier <<a href="mailto:ogrums@gmail.com" class="">ogrums@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">I have some issue with SD Card on OVMS 3.1 I don't know how to fix the "bug"</div><div class=""><br class=""></div><div class="">I can't write or read file on SD Card, but I can make directory :</div><div class=""><br class=""></div><div class=""><div class=""><i class="">OVMS# vfs ls /sd</i></div><div class=""><i class="">[DIR] 05-Nov-2018 20:46 logs/</i></div><div class=""><i class=""> 13.5k 23-Nov-2018 19:45 Vectrix_bak.dbc</i></div><div class=""><i class=""> 14.0k 11-Nov-2018 22:04 Vectrix.dbc</i></div><div class=""><i class=""> 13 01-Jan-1980 00:00 FOO.TXT</i></div><div class=""><i class=""> 13.5k 23-Nov-2018 19:45 vx1.dbc</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">OVMS# vfs mkdir /sd/testdir</i></div><div class=""><i class="">VFS directory created</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">OVMS# vfs ls /sd</i></div><div class=""><i class="">[DIR] 05-Nov-2018 20:46 logs/</i></div><div class=""><i class=""> 13.5k 23-Nov-2018 19:45 Vectrix_bak.dbc</i></div><div class=""><i class=""> 14.0k 11-Nov-2018 22:04 Vectrix.dbc</i></div><div class=""><i class="">[DIR] 05-Dec-2018 21:14 testdir/</i></div><div class=""><i class=""> 13 01-Jan-1980 00:00 FOO.TXT</i></div><div class=""><i class=""> 13.5k 23-Nov-2018 19:45 vx1.dbc</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">OVMS# config backup /sd/cfg.zip</i></div><div class=""><i class="">Creating config backup '/sd/cfg.zip'...</i></div><div class=""><i class="">Error: zip failed: No such file or directory</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">OVMS# vfs rmdir /sd/testdir</i></div><div class=""><i class="">VFS directory removed</i></div></div><div class=""><i class=""><br class=""></i></div><div class="">And If I try do load dbc file it's crash </div><div class=""><br class=""></div><div class=""><div class=""><i class="">OVMS# dbc load test /sd/vx1.dbc</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.</i></div><div class=""><i class="">Core 1 register dump:</i></div><div class=""><i class="">PC : 0x40271023 PS : 0x00060730 A0 : 0x800e38f1 A1 : 0x3ffd4540</i></div><div class=""><i class="">0x40271023: dbcMessage::SetID(unsigned int) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc.cpp:935</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">A2 : 0x00000000 A3 : 0x80feda4d A4 : 0x3ffe5360 A5 : 0x3ffe5363</i></div><div class=""><i class="">A6 : 0x00000000 A7 : 0x00000000 A8 : 0x00000020 A9 : 0x3f4055b0</i></div><div class=""><i class="">A10 : 0x00000001 A11 : 0x3f4061ce A12 : 0x3f81ec50 A13 : 0x00000000</i></div><div class=""><i class="">A14 : 0x3ffd4524 A15 : 0x00000000 SAR : 0x00000008 EXCCAUSE: 0x0000001d</i></div><div class=""><i class="">EXCVADDR: 0x0000001c LBEG : 0x4009bd69 LEND : 0x4009bd9d LCOUNT : 0xffffffff</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">0x4009bd69: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:291</i></div><div class=""><i class="">0x4009bd9d: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:324</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">Backtrace: 0x40271023:0x3ffd4540 0x400e38ee:0x3ffd4560 0x400dfeba:0x3ffd4ea0 0x400dea49:0x3ffd4ee0 0x400dec48:0x3ffd4f80 0x400f118a:0x3ffd4fa0 0x400f129b:0x3ffd4fd0 0x400f129b:0x3ffd5000 0x400f12</i></div><div class=""><i class="">d1:0x3ffd5030 0x400ecae8:0x3ffd5050 0x4010601d:0x3ffd5070 0x4010608e:0x3ffd50d0 0x400ecb1f:0x3ffd5110 0x40271193:0x3ffd5130 0x401010a9:0x3ffd5150 0x400fa5cd:0x3ffd5180 0x400fa7e1:0x3ffd51b0 0x401</i></div><div class=""><i class="">00f35:0x3ffd51d0 0x40100f44:0x3ffd51f0 0x400f2489:0x3ffd5210</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">0x40271023: dbcMessage::SetID(unsigned int) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc.cpp:935</i></div><div class=""><i class="">0x400e38ee: yyparse(void*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc_parser.y:306</i></div><div class=""><i class="">0x400dfeba: dbcfile::LoadFile(char const*, __sFILE*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc.cpp:935</i></div><div class=""><i class="">0x400dea49: dbc::LoadFile(char const*, char const*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc_app.cpp:198</i></div><div class=""><i class="">0x400dec48: dbc_load(int, OvmsWriter*, OvmsCommand*, int, char const* const*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/dbc/src/dbc_app.cpp:62</i></div><div class=""><i class="">0x400f118a: OvmsCommand::Execute(int, OvmsWriter*, int, char const* const*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/ovms_command.cpp:73</i></div><div class=""><i class="">0x400f129b: OvmsCommand::Execute(int, OvmsWriter*, int, char const* const*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/ovms_command.cpp:73</i></div><div class=""><i class="">0x400f129b: OvmsCommand::Execute(int, OvmsWriter*, int, char const* const*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/ovms_command.cpp:73</i></div><div class=""><i class="">0x400f12d1: OvmsCommandApp::Execute(int, OvmsWriter*, int, char const* const*) at ?????/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/ovms_command.cpp:73</i></div><div class=""><br class=""></div></div><div class="">I Have try my SD Card on a PC is working, I have try example code "sd_card_example_main.c" from SDK "esp-idf\examples\storage\sd_card\main", It's working to, no crash. </div><div class="">My guest, is the hardware is OK, esp-idf is OK, but they is something in OVMS main code make this bug.</div><div class=""><br class=""></div><div class="">I have delete both esp-idf, and OVMS folder and clone again, compiled again, but it's the same issue.</div><div class=""><br class=""></div><div class="">Thank you for your help.</div><div class="">Olivier</div></div></div></div></div>
_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>