kolban wrote:Have you seen the instructions here:
https://github.com/espressif/arduino-esp32
and look at the section called "Using as ESP-IDF component".
Can you validate that you have an ESP-IDF component created as described in that recipe? The error message you encounter would be appear (opinion) to be consistent with not being able to find the the Arduino component.
Sure. FIrst I'm trying this on ESP-IDF using the Arduino component:
Code: Select all
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, 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:0x3fff0010,len:4
load:0x3fff0014,len:7348
load:0x40078000,len:0
load:0x40078000,len:14024
entry 0x400792fc
[1B][0;32mI (46) boot: ESP-IDF v3.0-dev-253-gcd5cc992 2nd stage bootloader[1B][0m
[1B][0;32mI (46) boot: compile time 21:15:04[1B][0m
[1B][0;32mI (46) boot: Enabling RNG early entropy source...[1B][0m
D (64) bootloader_flash: mmu set block paddr=0x00000000 (was 0xffffffff)[1B][0m
D (85) boot: magic e9[1B][0m
D (92) boot: segments 04[1B][0m
D (100) boot: spi_mode 02[1B][0m
D (108) boot: spi_speed 00[1B][0m
D (117) boot: spi_size 01[1B][0m
[1B][0;32mI (125) boot: SPI Speed : 40MHz[1B][0m
[1B][0;32mI (138) boot: SPI Mode : DIO[1B][0m
[1B][0;32mI (151) boot: SPI Flash Size : 2MB[1B][0m
D (163) bootloader_flash: mmu set paddr=00000000 count=1[1B][0m
D (180) boot: mapped partition table 0x8000 at 0x3f408000[1B][0m
[1B][0;31mE (197) flash_parts: partition 3 invalid - offset 0x150000 size 0x140000 exceeds flash chip size 0x200000[1B][0m
[1B][0;31mE (228) boot: Failed to verify partition table[1B][0m
[1B][0;31mE (244) boot: load partition table error![1B][0m
user code done
Okay, that is quite an obvious error, the partition is wrong, so let's modify default.csv to something appropriate for 2MB of flash:
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x80000,
app1, app, ota_1, 0x90000, 0x80000,
eeprom, data, 0x99, 0x110000,0x1000,
spiffs, data, spiffs, 0x111000,0xEF000
(yes, it is a mess). So another make clean, make, make flash gives me:
Code: Select all
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
loop
Okay, 'arduino' now works if I use esp-idf to compile it. How about the Arduino IDE, which is what I'm actually after?
Code: Select all
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, 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:0x3fff0010,len:4
load:0x3fff0014,len:588
load:0x40078000,len:0
load:0x40078000,len:10472
entry 0x40078a28
user code done
Nope, the Arduino IDE still does nothing. Obviously. So I guess this is *some* config/include/whatever issue with the esp32 toolchain behind Arduino? Unfortunately with literally zero verbose output it's hard to figure out what the issue is. How about I copy my default.csv into the Arduino toolchain?
Code: Select all
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, 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:0x3fff0010,len:4
load:0x3fff0014,len:588
load:0x40078000,len:0
load:0x40078000,len:10472
entry 0x40078a28
[1F]ëë[0B]WHøloop
loop
loop
loop
loop
loop
Success!!
Thanks to WiFive and actually using esp-idf with its superior verbosity to find out what was the issue with Arduino.