Re: [Ovmsdev] OVMS v3.1 crashes during boot continuously
welcome :)
Thanks :-)
See https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/148 ?and the new 12V section in the user guide.
Ok, I will look into that when I have a functioning module.
So the Soul doesn't top up the 12V battery from the main battery? How much capacity does the 12V battery have on the Soul?
Kia Soul EV does not top up the 12 Volt battery when off. The capacity is 50 Ah. If I recall correctly, the original battery had 48 Ah.
See https://github.com/espressif/esptool/wiki/espefuse -- you can try the dump command and send the results to Espressif. If your ESP32 really lost its efuses, I think that's a warranty issue.
I ran the dump. It did not report CRC error, nor all1’s or 0’s. Is there any reason not to share the output from the dump command publicly? I am guessing the current rebooting issue could be an issue with my build. It is my first OVMS build, based on sources pulled Aug 4, and I may have done something wrong, have the wrong version of some tool installed, or something may have changed in the repos since the developer guide was last tested by someone. Can I download bootloader.bin, ovms3.bin and partitions.bin from somewhere, and flash those instead of my build? Henriks-MBP:OVMS.V3 henrik$ make print_flash_cmd --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin 0x10000 ovms3.bin 0x8000 partitions.bin Is “make flash” always supposed to bring the device to a functioning state, when configured and built as described in the developer config (i.e. by cp support/sdkconfig.default.hw31 sdkconfig and then make menuconfig)? I seem to get errors when connecting to the device, e.g. when flashing: … AR build/xtensa-debug-module/libxtensa-debug-module.a LD build/ovms3.elf esptool.py v2.3.1 Flashing binaries to serial port /dev/tty.SLAB_USBtoUART (app at offset 0x10000 )... esptool.py v2.3.1 Traceback (most recent call last): File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2637, in <module> _main() File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2630, in _main main() File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2355, in main esp = chip_class(args.port, initial_baud, args.trace) File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 193, in __init__ self._port = serial.serial_for_url(port) File "/Library/Python/2.7/site-packages/serial/__init__.py", line 88, in serial_for_url instance.open() File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 272, in open self._reconfigure_port(force_update=True) File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 438, in _reconfigure_port [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) termios.error: (22, 'Invalid argument') make: *** [flash] Error 1 Henriks-MBP:OVMS.V3 henrik$ make flash Flashing binaries to serial port /dev/tty.SLAB_USBtoUART (app at offset 0x10000 )... esptool.py v2.3.1 Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____ A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header make: *** [flash] Error 2 Henriks-MBP:OVMS.V3 henrik$ Could all of this conceivably be caused by “bad” USB hardware? I connect the device via a cheap Hama device for converting my thunderbolt port to standard USB. Best regards, Henrik -- Venlig hilsen / best regards Henrik R. Scheel Spjeldager Consult ApS Spjeldager 9 DK-2630 Taastrup CVR: 34491399 T: +45 2720 9828 http://www.spjeldager.dk/
Henrik,
See https://github.com/espressif/esptool/wiki/espefuse -- you can try the dump command and send the results to Espressif. If your ESP32 really lost its efuses, I think that's a warranty issue.
I ran the dump. It did not report CRC error, nor all1’s or 0’s. Is there any reason not to share the output from the dump command publicly?
The CRC check is done on the data level. The dump should not contain sensible data, but unless Mark can read it (?) there is no reason to post it here. Espressif should check it and possibly tell you what to do.
I am guessing the current rebooting issue could be an issue with my build. It is my first OVMS build, based on sources pulled Aug 4, and I may have done something wrong, have the wrong version of some tool installed, or something may have changed in the repos since the developer guide was last tested by someone.
Can I download bootloader.bin, ovms3.bin and partitions.bin from somewhere, and flash those instead of my build?
We normally only publish ovms3.bin, I created a directory with all three files for you: https://dexters-web.de/firmware/henrik/ But I doubt that's the reason.
Henriks-MBP:OVMS.V3 henrik$ make print_flash_cmd --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin 0x10000 ovms3.bin 0x8000 partitions.bin
Is “make flash” always supposed to bring the device to a functioning state, when configured and built as described in the developer config (i.e. by cp support/sdkconfig.default.hw31 sdkconfigand thenmake menuconfig)?
Yes.
I seem to get errors when connecting to the device, e.g. when flashing:
Flashing binaries to serial port /dev/tty.SLAB_USBtoUART (app at offset 0x10000 )... esptool.py v2.3.1 … File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 438, in _reconfigure_port [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) termios.error: (22, 'Invalid argument') make: *** [flash] Error 1 Henriks-MBP:OVMS.V3 henrik$ make flash Flashing binaries to serial port /dev/tty.SLAB_USBtoUART (app at offset 0x10000 )... esptool.py v2.3.1 Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header make: *** [flash] Error 2 Henriks-MBP:OVMS.V3 henrik$
Could all of this conceivably be caused by “bad” USB hardware? I connect the device via a cheap Hama device for converting my thunderbolt port to standard USB.
Yes, but maybe you can solve that by using another speed setting for the port? (see "make menuconfig") However, this cannot affect the efuse data. Regards, Michael
Best regards, Henrik --
Venlig hilsen / best regards Henrik R. Scheel
Spjeldager Consult ApS Spjeldager 9 DK-2630 Taastrup CVR: 34491399 T: +45 2720 9828 http://www.spjeldager.dk/
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
My OVMS v3.1 module is failing to boot due to e-fuse CRC error. I am trying to open a support ticket at https://www.espressif.com/en/company/contact-extra/technical-inquiries-hardw... <https://www.espressif.com/en/company/contact-extra/technical-inquiries-hardware>. First I had to confirm that I had done 76 advanced checks, ensuring that the hardware design is correct. Then I have to fill in a form, requesting information like: Name Work email Job Position Country Company Website Project Name Customer Product Part Number Design Version Espressif Product SDK Version And PCB layout So I guess I am using the wrong form. How do I contact Espressif regarding the e-fuse problem? Best regards, Henrik -- Venlig hilsen / best regards Henrik R. Scheel Spjeldager Consult ApS Spjeldager 9 DK-2630 Taastrup CVR: 34491399 T: +45 2720 9828 http://www.spjeldager.dk/
Henrik, try the forum: https://www.esp32.com/ Regards, Michael Am 08.08.2018 um 08:05 schrieb Henrik Scheel:
My OVMS v3.1 module is failing to boot due to e-fuse CRC error.
I am trying to open a support ticket at https://www.espressif.com/en/company/contact-extra/technical-inquiries-hardw....
First I had to confirm that I had done 76 advanced checks, ensuring that the hardware design is correct.
Then I have to fill in a form, requesting information like: Name Work email Job Position Country Company Website Project Name Customer Product Part Number Design Version Espressif Product SDK Version And PCB layout
So I guess I am using the wrong form.
How do I contact Espressif regarding the e-fuse problem?
Best regards, Henrik --
Venlig hilsen / best regards Henrik R. Scheel
Spjeldager Consult ApS Spjeldager 9 DK-2630 Taastrup CVR: 34491399 T: +45 2720 9828 http://www.spjeldager.dk/
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
I don’t think Espressif will help once the module has been put in a device/board. They’ve probably just direct you back to the supplier. Anyway, let’s just confirm we don’t have another issue causing this (either corrupt firmware, or power issues): Please power the device either from a powered USB hub, or from 12V. Best to also disconnect the modem board if you can. Then: Please try to erase the chip, then re-flash from the standard firmware here: $ make erase_flash http://api.openvehicles.com/firmware/ota/v3.1/main/20180321.bootloader.bin <http://api.openvehicles.com/firmware/ota/v3.1/main/20180321.bootloader.bin> http://api.openvehicles.com/firmware/ota/v3.1/main/20180321.partitions.bin <http://api.openvehicles.com/firmware/ota/v3.1/main/20180321.partitions.bin> http://api.openvehicles.com/firmware/ota/v3.1/main/3.1.008.ovms3.bin <http://api.openvehicles.com/firmware/ota/v3.1/main/3.1.008.ovms3.bin> … --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 <BOOTLOADER> 0x10000 <BIN> 0x8000 <PARTITIONS> Reboot without a SD card in the slot and show me the output. Also, please give the output of: $ ~/esp/esp-idf/components/esptool_py/esptool/espefuse.py … summary $ ~/esp/esp-idf/components/esptool_py/esptool/espefuse.py … dump Regards, Mark.
On 8 Aug 2018, at 2:05 PM, Henrik Scheel <henrik.scheel@spjeldager.dk> wrote:
My OVMS v3.1 module is failing to boot due to e-fuse CRC error.
I am trying to open a support ticket at https://www.espressif.com/en/company/contact-extra/technical-inquiries-hardw... <https://www.espressif.com/en/company/contact-extra/technical-inquiries-hardware>.
First I had to confirm that I had done 76 advanced checks, ensuring that the hardware design is correct.
Then I have to fill in a form, requesting information like: Name Work email Job Position Country Company Website Project Name Customer Product Part Number Design Version Espressif Product SDK Version And PCB layout
So I guess I am using the wrong form.
How do I contact Espressif regarding the e-fuse problem?
Best regards, Henrik --
Venlig hilsen / best regards Henrik R. Scheel
Spjeldager Consult ApS Spjeldager 9 DK-2630 Taastrup CVR: 34491399 T: +45 2720 9828 http://www.spjeldager.dk/ <http://www.spjeldager.dk/>
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
participants (3)
-
Henrik Scheel -
Mark Webb-Johnson -
Michael Balzer