Open-Agriculture / AgIsoStack-plus-plus

AgIsoStack++ is the completely free open-source C++ ISOBUS library for everyone
https://agisostack.com/
MIT License
204 stars 47 forks source link

ESP32-WROOM-32 Can't upload #480

Open bartdereu opened 4 months ago

bartdereu commented 4 months ago

Hi all,

I've followed the guidelines to open a project in PlatformIO and the build was succesfull , but i'm having issues with my ESP32-DEVKitC , i can't seem to find a solid way to upload to it.

In the Arduino enviroment, i could upload to it after i added a 10mF capacitor between EN and GND. But in PlatformIO, it tries to connect to my comport without luck.

I've tried :

i'm at the end of this and start to think the ESP is defect .could this be?

Matthieu-Poulain commented 4 months ago

Hi ,

Did you try pushing button 'reset', then 'boot' then release reset and after 'boot' in that exact sequence order?

Note that if you are using platformIO, you must not use the IDF shortcuts but platformIO ones;

A few months ago i started using it with plateform.io, but i decided to switch to a project using only esp IDF and visual studio code Espressif extension because it did not support the lattest IDF versions.

Everything works just fine, except that the example gave the following error:

VirtualTerminalClientInterface->set_object_pool(0, ObjectPool, (object_pool_end - object_pool_start) -1 , "V1.X.1"); but i had to switch it to VirtualTerminalClientInterface->set_object_pool(0, ObjectPool, (object_pool_end - object_pool_start) , "V1.X.1"); as it cause and error when uploading my custom ObjectPool.

bartdereu commented 4 months ago

Yes, i have tried that combination , same result :

Uploading .pio\build\esp32dev\firmware.bin
esptool.py v4.5.1
Serial port COM4
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Matthieu-Poulain commented 4 months ago

Hmm... Did you ever try flashing it using a simple example from the IDF, without platformIO? Also that may sound silly but make sure that it really is port COM4 that is used by your esp (Does it disappear when unplugged?)