SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By PreciousRoy
#198189
Hi

I have a sparkfun esp32 and i am having problems programming when it is connected with a big easy stepper driver when it it powered.

i have switched the pins around now they are connected to

#define DIR 14
#define STEP 32
#define ENABLE 25
#define MS1 13
#define MS2 12
#define MS3 33

so when powered i get the message:
Code: Select all
Uploading 'StepperTest' to 'SparkFun ESP32 Thing' using 'COM13'
Uploader started for board SparkFun ESP32 Thing
Upload method will be: bootloader
Uploading via Bootloader 
C:\Users\Danie\Documents\Arduino\hardware\espressif\esp32\tools\esptool.exe --chip esp32 --port "COM13" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\Danie\DOCUME~1\Arduino\hardware\ESPRES~1\esp32/tools/PARTIT~1/BOOT_A~1.BIN 0x1000 C:\Users\Danie\DOCUME~1\Arduino\hardware\ESPRES~1\esp32/tools/sdk/bin/BOOTLO~2.BIN 0x10000 C:\Users\Danie\AppData\Local\Temp\VMBuilds\STEPPE~1\ESPRES~1\Release/STEPPE~2.BIN 0x8000 C:\Users\Danie\AppData\Local\Temp\VMBuilds\STEPPE~1\ESPRES~1\Release/STEPPE~1.BIN
esptool.py v2.1
Connecting.....
Chip is ESP32D0WDQ6 (revision 0)
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...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Compressed 12304 bytes to 8126...
Writing at 0x00001000... (100 %)
Wrote 12304 bytes (8126 compressed) at 0x00001000 in 0.1 seconds (effective 1036.1 kbit/s)...
Hash of data verified.
Compressed 143184 bytes to 80559...
Writing at 0x00010000... (20 %)
Writing at 0x00014000... (40 %)
Writing at 0x00018000... (60 %)
Writing at 0x0001c000... (80 %)
Writing at 0x00020000... (100 %)
Wrote 143184 bytes (80559 compressed) at 0x00010000 in 1.5 seconds (effective 762.1 kbit/s)...
A fatal error occurred: Timed out waiting for packet header
esptool.py v2.1
Connecting.....
Chip is ESP32D0WDQ6 (revision 0)
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...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Compressed 12304 bytes to 8126...
Writing at 0x00001000... (100 %)
Wrote 12304 bytes (8126 compressed) at 0x00001000 in 0.1 seconds (effective 1036.1 kbit/s)...
Hash of data verified.
Compressed 143184 bytes to 80559...
Writing at 0x00010000... (20 %)
Writing at 0x00014000... (40 %)
Writing at 0x00018000... (60 %)
Writing at 0x0001c000... (80 %)
Writing at 0x00020000... (100 %)
Wrote 143184 bytes (80559 compressed) at 0x00010000 in 1.5 seconds (effective 762.1 kbit/s)...
A fatal error occurred: Timed out waiting for packet header
and it does not work, when i unplug the power supply of the stepper driver it programs just fine.

any ideas why i am having these issues?