Hello everyone!
I have never worked with the Arduino IDE or ESP32 boards before, but I'm trying to build a scale with a load cell. For this, I bought an ESP32 Dev Kit C v4 (ESP32 Dev Kit C V4 NodeMCU WLAN WiFi Development Board) and connected a load cell with an HX711 converter.
Now I want to upload code using the Arduino IDE. For this, I connected the board to my computer via USB, installed the universal CP210x drivers (CP210x USB to UART Bridge VCP Drivers - Silicon Labs) (on Windows), and checked if I could access it via Putty, which was no problem.
Next, I installed Arduino IDE 2.3.2, then installed the esp32 package from Espressif Systems via the Board Manager, and selected "ESP32 Dev Module" under Boards. After that, I only adjusted the Upload Speed to 115200 and then tried to upload code.
But no matter what I do or which code I upload, I always get the following error message during the upload:
Der Sketch verwendet 268769 Bytes (20%) des Programmspeicherplatzes. Das Maximum sind 1310720 Bytes.
Globale Variablen verwenden 17024 Bytes (5%) des dynamischen Speichers, 310656 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.
"C:\Users\Test\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM3" --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\Test\AppData\Local\Temp\arduino\sketches\C5B8A5B0F3399114B3DC0CE6CD770957/Waagen.ino.bootloader.bin" 0x8000 "C:\Users\Test\AppData\Local\Temp\arduino\sketches\C5B8A5B0F3399114B3DC0CE6CD770957/Waagen.ino.partitions.bin" 0xe000 "C:\Users\Test\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Test\AppData\Local\Temp\arduino\sketches\C5B8A5B0F3399114B3DC0CE6CD770957/Waagen.ino.bin"
esptool.py v4.6
Serial port COM3
Connecting.........Traceback (most recent call last):
File "esptool.py", line 37, in <module>
File "esptool_init_.py", line 1064, in main
File "esptool_init.py", line 859, in main
File "esptool\cmds.py", line 466, in write_flash
File "esptool\util.py", line 37, in flash_size_bytes
TypeError: argument of type 'NoneType' is not iterable
[9256] Failed to execute script 'esptool' due to unhandled exception!
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: a0:a3:b3:97:00:6c
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Fehlgeschlagenes Hochladen: Hochladefehler: exit status 1
I really don't know how to proceed from here. I've googled extensively, initially tried it under Ubuntu, used different versions of the Arduino IDE, and selected various boards. When I connect via Putty at the same baud rate, I can see that the board starts without any issues...
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x37 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x37 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7672
load:0x40078000,len:16432
load:0x40080400,len:3704
entry 0x4008067c
I (28) boot: ESP-IDF qa-test-v4.3.3-20220423 2nd stage bootloader
I (28) boot: compile time 11:11:52
I (28) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed : 40MHz
I (43) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 1 otadata OTA data 01 00 00010000 00002000
I (84) boot: 2 nvs WiFi data 01 02 00012000 0000e000
I (91) boot: 3 at_customize unknown 40 00 00020000 000e0000
I (99) boot: 4 ota_0 OTA app 00 10 00100000 00180000
I (106) boot: 5 ota_1 OTA app 00 11 00280000 00180000
I (114) boot: End of partition table
E (118) boot: ota data partition invalid and no factory, will try all partitions
I (126) boot_comm: chip revision: 3, min. application chip revision: 0
I (133) esp_image: segment 0: paddr=00100020 vaddr=3f400020 size=295d8h (169432) map
I (203) esp_image: segment 1: paddr=00129600 vaddr=3ffbdb60 size=04474h ( 17524) load
I (210) esp_image: segment 2: paddr=0012da7c vaddr=40080000 size=0259ch ( 9628) load
I (214) esp_image: segment 3: paddr=00130020 vaddr=400d0020 size=111630h (111979 2) map
I (623) esp_image: segment 4: paddr=00241658 vaddr=4008259c size=1b568h (111976) load
I (669) esp_image: segment 5: paddr=0025cbc8 vaddr=400c0000 size=00064h ( 100) load
I (669) esp_image: segment 6: paddr=0025cc34 vaddr=50000000 size=00010h ( 16) load
I (689) boot: Loaded app from partition at offset 0x100000
I (689) boot: Disabling RNG early entropy source...
module_name:WROOM-32
max tx power=78,ret=0
2.4.0
I hope someone here can point me in the right direction.. I would be grateful for any advice!
P.S.:
I don't know if it's relevant, but here's how I connected the scales (and the button for tare) to the board:
HX711 Module 1: DOUT (GPIO 32), SCK (GPIO 33)
HX711 Module 2: DOUT (GPIO 25), SCK (GPIO 26)
HX711 Module 3: DOUT (GPIO 27), SCK (GPIO 14)
HX711 Module 4: DOUT (GPIO 12), SCK (GPIO 13)
Button 1: Signal (GPIO 4)
Button 2: Signal (GPIO 16)
Button 3: Signal (GPIO 17)
Button 4: Signal (GPIO 18)
I hope someone can point me in the right direction.. I would be grateful for any advice!
