EVTV/Collin80 CAN Due Issues

Introduction and miscellaneous that we haven't created categories for, yet
Post Reply
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

I've been attempting to set up an EVTV CAN Due v2 board for CAN sniffing. After wrestling with my Arduino IDE and missing or double libraries, I ended up removing everything from my laptop and reinstalling. When I attempted to compile the ESP32RET code, it left me a massive error message that I am at a loss to understand.

I'd appreciate any help in figuring out what I screwed up, I'm sure it was something simple. As I mentioned above, everything was a fresh download today.

Code: Select all

Arduino: 1.8.18 (Windows 10), Board: "ESP32 Dev Module, Disabled, Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,

                 from C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET-master\ESP32RET-master\ESP32RET\ESP32RET.ino:32:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET-master\ESP32RET-master\ESP32RET\ESP32RET.ino:32:

C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

 #    pragma message "FastLED version 3.004.000"

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:65,

                 from C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET-master\ESP32RET-master\ESP32RET\ESP32RET.ino:32:

C:\Users\psman\Documents\Arduino\libraries\FastLED\src/fastspi.h:135:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\esp32_can-master\src\esp32_can_builtin_lowlevel.cpp:32:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\bitswap.cpp:2:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\colorutils.cpp:7:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.cpp:2:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\colorpalettes.cpp:4:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\hsv2rgb.cpp:4:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\lib8tion.cpp:3:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\noise.cpp:2:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\power_mgt.cpp:2:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\wiring.cpp:2:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:5:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp: In member function 'void ESP32RMTController::startOnChannel(int)':

C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:222:48: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]

     rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);

                                                ^

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:118,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:5:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here

 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)

           ^~~~~~~~~~~

C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:222:48: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]

     rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);

                                                ^

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:118,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:5:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here

 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)

           ^~~~~~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/platforms.h:36,

                 from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,

                 from C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:8:

C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]

 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

  ^~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:8:

C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

 #    pragma message "FastLED version 3.004.000"

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\psman\Documents\Arduino\libraries\FastLED\src/FastLED.h:65,

                 from C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:8:

C:\Users\psman\Documents\Arduino\libraries\FastLED\src/fastspi.h:135:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp: In lambda function:

C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:36:32: error: 'union arduino_event_info_t' has no member named 'disconnected'; did you mean 'eth_connected'?

            Serial.println(info.disconnected.reason);

                                ^~~~~~~~~~~~

                                eth_connected

C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:38:23: error: 'union arduino_event_info_t' has no member named 'disconnected'; did you mean 'eth_connected'?

            if ( (info.disconnected.reason == 202) || (info.disconnected.reason == 3))

                       ^~~~~~~~~~~~

                       eth_connected

C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:38:60: error: 'union arduino_event_info_t' has no member named 'disconnected'; did you mean 'eth_connected'?

            if ( (info.disconnected.reason == 202) || (info.disconnected.reason == 3))

                                                            ^~~~~~~~~~~~

                                                            eth_connected

C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp: In member function 'void WiFiManager::setup()':

C:\Users\psman\Documents\Arduino\libraries\ESP32RET-master\wifi_manager.cpp:45:25: error: 'SYSTEM_EVENT_STA_DISCONNECTED' is not a member of 'arduino_event_id_t'

         }, WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);

                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Multiple libraries were found for "WiFi.h"

 Used: C:\Users\psman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.1\libraries\WiFi

 Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

exit status 1

Error compiling for board ESP32 Dev Module.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
Mitchy
Posts: 82
Joined: Sun Nov 14, 2021 12:16 pm
Has thanked: 2 times
Been thanked: 35 times

Re: EVTV/Collin80 CAN Due Issues

Post by Mitchy »

One thing to note is that the ESP32RET codebase is for the ESP32 chipset.
You'll need the GVRET codebase.

As for the fastled errors, Pragma msgs are just for info.
The others should vanish with the correct codebase and board selected in the IDE (the Due - AT91SAM)
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

Re: EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

Mitchy wrote: Mon Dec 20, 2021 2:31 am One thing to note is that the ESP32RET codebase is for the ESP32 chipset.
You'll need the GVRET codebase.

As for the fastled errors, Pragma msgs are just for info.
The others should vanish with the correct codebase and board selected in the IDE (the Due - AT91SAM)
Apologies if I'm missing something, but the EVTV CAN Due is based on the ESP32 chipset. I literally used the links from their site to the ESP32RET codebase.

http://store.evtv.me/proddetail.php?prod=ESP32

What am I missing? why would I need to use a different codebase?
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
collin80
Posts: 110
Joined: Sun Aug 30, 2020 3:28 pm
Location: United States, Michigan
Been thanked: 4 times
Contact:

Re: EVTV/Collin80 CAN Due Issues

Post by collin80 »

The problem is that the Arduino-ESP32 board files updated the WiFi library and it breaks the existing ESP32RET codebase. You can use the binary at www.savvycan.com to get a good, working copy.

I ought to update the github repo to fix this problem. I knew about it but haven't gotten around to fixing that at github yet. Sorry!
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

Re: EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

collin80 wrote: Tue Dec 21, 2021 2:56 am The problem is that the Arduino-ESP32 board files updated the WiFi library and it breaks the existing ESP32RET codebase. You can use the binary at www.savvycan.com to get a good, working copy.

I ought to update the github repo to fix this problem. I knew about it but haven't gotten around to fixing that at github yet. Sorry!
Got it, thanks for the explanation. I'll attempt that tonight.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

Re: EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

collin80 wrote: Tue Dec 21, 2021 2:56 am You can use the binary at www.savvycan.com to get a good, working copy.
Ok so this seems like a dumb question, but I've downloaded the ESP32RET firmware updater from SavvyCAN, and when I try to open the application, it flashes on my screen briefly and then disappears. Is that normal behavior? It seems like I am missing something.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
collin80
Posts: 110
Joined: Sun Aug 30, 2020 3:28 pm
Location: United States, Michigan
Been thanked: 4 times
Contact:

Re: EVTV/Collin80 CAN Due Issues

Post by collin80 »

P.S.Mangelsdorf wrote: Wed Dec 22, 2021 1:24 am
collin80 wrote: Tue Dec 21, 2021 2:56 am You can use the binary at www.savvycan.com to get a good, working copy.
Ok so this seems like a dumb question, but I've downloaded the ESP32RET firmware updater from SavvyCAN, and when I try to open the application, it flashes on my screen briefly and then disappears. Is that normal behavior? It seems like I am missing something.
Yeah, that's not quite right. If it found your ESP32 it would flash it and that would take a few seconds. During that time you'd see a progress bar filling up. If it flashes really quickly then it isn't working for some reason. You might run the script from the command line to see what it is saying.
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

Re: EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

Ok so from the command line, I tried running the updater and listing the com ports. It's see the ports, but the updater is giving an error.

Shown below is the directory, an attempt to run the updater, running the listcomports, and then another attempt of the updater.

Code: Select all

 Directory of C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater

12/21/2021  08:15 PM    <DIR>          .
12/21/2021  08:15 PM    <DIR>          ..
12/21/2021  08:15 PM            17,664 bootloader_qio_80m.bin
12/21/2021  08:15 PM             8,192 boot_app0.bin
12/21/2021  08:15 PM           813,008 ESP32RET.bin
12/21/2021  08:15 PM         3,896,636 esptool
12/21/2021  08:15 PM         3,490,037 esptool.exe
12/21/2021  08:15 PM           128,307 esptool.py
12/21/2021  08:15 PM            45,608 listComPorts.exe
12/21/2021  08:15 PM             3,072 partitions.bin
12/21/2021  08:15 PM               343 updater.bat
12/21/2021  08:15 PM               369 updater.command
12/21/2021  08:15 PM               323 updater.sh
              11 File(s)      8,403,559 bytes
               2 Dir(s)  71,443,144,704 bytes free

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>esptool
usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD]
               [--before {default_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset}] [--no-stub]
               [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version}
               ...
esptool: error: too few arguments

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>listcomports
COM5 - FTDI - FTDIBUS\VID_0403+PID_6010+6&3A757EEC&0&1&1\0000
COM6 - FTDI - FTDIBUS\VID_0403+PID_6010+6&3A757EEC&0&1&2\0000

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>esptool
usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD]
               [--before {default_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset}] [--no-stub]
               [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version}
               ...
esptool: error: too few arguments

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
collin80
Posts: 110
Joined: Sun Aug 30, 2020 3:28 pm
Location: United States, Michigan
Been thanked: 4 times
Contact:

Re: EVTV/Collin80 CAN Due Issues

Post by collin80 »

P.S.Mangelsdorf wrote: Thu Dec 23, 2021 2:04 am

Code: Select all

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>esptool
usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD]
               [--before {default_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset}] [--no-stub]
               [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version}
               ...
esptool: error: too few arguments
It looks to me that you typed "esptool" and pressed ENTER. You should try running updater.bat and see what the output is. That is supposed to properly update the board.
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

Re: EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

Ok it looks like I'm getting somewhere now, but I still end up with an error message.

I appreciate the help on this. I'm learning on the fly.

Code: Select all

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>updater.bat

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>for /F "tokens=1-2 delims=- " %i in ('listComPorts.exe') do (esptool.exe --chip esp32 --port %i --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 ./boot_app0.bin 0x1000 ./bootloader_qio_80m.bin 0x10000 ESP32RET.bin 0x8000 partitions.bin   )

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>(esptool.exe --chip esp32 --port COM5 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 ./boot_app0.bin 0x1000 ./bootloader_qio_80m.bin 0x10000 ESP32RET.bin 0x8000 partitions.bin   )
esptool.py v2.6-beta1
Serial port COM5
Connecting.....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: fc:f5:c4:2a:37:9c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Compressed 17664 bytes to 11528...
Wrote 17664 bytes (11528 compressed) at 0x00001000 in 0.1 seconds (effective 981.3 kbit/s)...
Hash of data verified.
Compressed 813008 bytes to 454797...
Wrote 813008 bytes (454797 compressed) at 0x00010000 in 6.9 seconds (effective 936.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1638.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>(esptool.exe --chip esp32 --port COM6 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 ./boot_app0.bin 0x1000 ./bootloader_qio_80m.bin 0x10000 ESP32RET.bin 0x8000 partitions.bin   )
esptool.py v2.6-beta1
Serial port COM6
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
C:\Users\psman\Documents\06_Projects\MSP\CAN Sniffing\ESP32RET_Updater\ESP32RET_Updater>
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
collin80
Posts: 110
Joined: Sun Aug 30, 2020 3:28 pm
Location: United States, Michigan
Been thanked: 4 times
Contact:

Re: EVTV/Collin80 CAN Due Issues

Post by collin80 »

No, actually it worked fine! I'm just an idiot. Here is the short version:

I used a dual serial port chip on that board. The first port connects to the ESP32. The second port connects... nowhere by default. It used to be connected to the ESP32 also but it took up pins we wanted to use for other things. So, now there are solder jumpers that must be closed in order to use those pins. They are actually routed to allow for the second serial to be a JTAG port. But, only if you close the solder jumpers. Since the updater batch file has no idea which serial port to use, it tries all of them. You will only succeed with one - the one the ESP32 actually answers on. You can safely ignore all the other ports that will fail. This happens if you have other serial devices hooked up too. It'll try them all. The updater script isn't advanced enough to actually query the port to see if it really is an ESP32 nor if it is the first or second port.

So, good news, you've successfully flashed the firmware!
P.S.Mangelsdorf
Posts: 753
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 89 times
Been thanked: 92 times

Re: EVTV/Collin80 CAN Due Issues

Post by P.S.Mangelsdorf »

collin80 wrote: Wed Dec 29, 2021 12:28 am So, good news, you've successfully flashed the firmware!
Fantastic! I'll be back home tomorrow and have some time in the shop to test it. Thanks again for the help!
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
Post Reply