CAN Due Upload Issues
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
CAN Due Upload Issues
Not sure if this is the best place for this question but I'm beating my head against a wall.
I'm attempting to use the EVTV CANDue V2 board with Damien's Ampera/Volt charger code. I'm having a problem with uploading from the Arduino IDE to the board.
I installed the FTDI driver, as recommended by the ESP32 documentation, and the IDE now sees the 2 COM ports. The problem is no matter which one I select, the Arduino IDE is telling me that no device is found on that COM port.
I'm sure this is something stupid I'm missing but I can't for the life of me figure out what it is.
I'm attempting to use the EVTV CANDue V2 board with Damien's Ampera/Volt charger code. I'm having a problem with uploading from the Arduino IDE to the board.
I installed the FTDI driver, as recommended by the ESP32 documentation, and the IDE now sees the 2 COM ports. The problem is no matter which one I select, the Arduino IDE is telling me that no device is found on that COM port.
I'm sure this is something stupid I'm missing but I can't for the life of me figure out what it is.
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
- Bratitude
- Posts: 965
- Joined: Thu Jan 02, 2020 7:35 pm
- Location: Canada
- Has thanked: 154 times
- Been thanked: 334 times
- Contact:
Re: CAN Due Upload Issues
which port on due are you physically connected to?
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
Re: CAN Due Upload Issues
The built in USB-B port
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
Re: CAN Due Upload Issues
Also, I tried setting the board as both Native USB and Programming Port, no difference.
I also tried holding down the boot button while uploading, no dice there either.
I also tried holding down the boot button while uploading, no dice there either.
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
- Bratitude
- Posts: 965
- Joined: Thu Jan 02, 2020 7:35 pm
- Location: Canada
- Has thanked: 154 times
- Been thanked: 334 times
- Contact:
Re: CAN Due Upload Issues
Are the due board cores installed in the ide?
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
Re: CAN Due Upload Issues
Yes, I have the Due board selected. Everything compiles fine but then when it attempts the upload it says it there's no board on the selected port. I had to install the FTDI usb driver just to get it to show the port at all.
The available ports change based on which USB port of my computer I use, so its detecting the board but then can't find it? If that makes sense.
The available ports change based on which USB port of my computer I use, so its detecting the board but then can't find it? If that makes sense.
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
- Bratitude
- Posts: 965
- Joined: Thu Jan 02, 2020 7:35 pm
- Location: Canada
- Has thanked: 154 times
- Been thanked: 334 times
- Contact:
Re: CAN Due Upload Issues
Okay good good, is the board wired up to anything else ? or is it just “raw” no additional changes other than the USB cable?
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
Re: CAN Due Upload Issues
I’ve been able to upload fine to my CAN DUE 2 board from evtv through the USB port.
Have you tried a different usb cable? I had an issue where one cable from an arduino uno kit that i bought used would not work. A different cable worked fine.
Posting my settings in case something stands out to you.
Board: ESP32 Dev Module
Upload speed: 921600
Cpu freq: 240mhz wifi/bt
Flash freq: 80mhz
Flash mode: QIO
Flash size: 4Mb (32Mb)
Partition scheme: Default 4Mb with spiffs
Core debug level: none
Psram: disabled
Have you tried a different usb cable? I had an issue where one cable from an arduino uno kit that i bought used would not work. A different cable worked fine.
Posting my settings in case something stands out to you.
Board: ESP32 Dev Module
Upload speed: 921600
Cpu freq: 240mhz wifi/bt
Flash freq: 80mhz
Flash mode: QIO
Flash size: 4Mb (32Mb)
Partition scheme: Default 4Mb with spiffs
Core debug level: none
Psram: disabled
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
Re: CAN Due Upload Issues
Ok, I was being dumb and had the board set to "Arduino Due" not ESP32. Now that I fixed that, I got a new compiling issue I didn't have before. Any thoughts?
Code: Select all
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
In file included from C:\Users\psman\Documents\06_Projects\MSP\Volt Charger gen1\AmperaCharger-main\Ampera_charger_V1\Ampera_charger_V1.ino:15:0:
C:\Users\psman\Documents\Arduino\libraries\due_wire-master/due_wire.h:25:25: fatal error: include/twi.h: No such file or directory
compilation terminated.
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 Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
- Bratitude
- Posts: 965
- Joined: Thu Jan 02, 2020 7:35 pm
- Location: Canada
- Has thanked: 154 times
- Been thanked: 334 times
- Contact:
Re: CAN Due Upload Issues
due_wire is ether not installed or corrupted
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
Re: CAN Due Upload Issues
Its installed and I've tried reinstalling it. It compiles fine for Arduino Due but doesn't compile for ESP32.
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
-
- Posts: 1049
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 222 times
- Been thanked: 256 times
Re: CAN Due Upload Issues
Ok so I ended up re-writing/simplifying the code, and got it to upload. Now to see if it actually works.
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed