WallaceWilliam / framework-esp8266-rtos-sdk-idf-platformio

Apache License 2.0
13 stars 18 forks source link

segment count exceeds max #6

Open BarronK47 opened 5 years ago

BarronK47 commented 5 years ago

After a recent update to Visual Studio Code and I assume PlatformIO I have been unable to get any code running on the ESP8266. I have tried different programs, including sample ones and get the same error each time from the ESP8266 when it is starting up.

D (210) esp_image: reading image header @ 0x10000 D (216) esp_image: image header: 0xe9 0xde 0x02 0x02 00000000 E (225) esp_image: image at 0x10000 segment count 222 exceeds max 16 E (234) boot: Factory app partition is not bootable D (241) boot: Can't boot from zero-length partition E (248) boot: No bootable app partitions in the partition table user code done

I have tested two different ESP8266s, Updated All in PlatformIO, manually updated esptool to the latest version. I have also successfully uploaded an Arduino based program to the ESP8266s.

BarronK47 commented 5 years ago

I uninstalled PlatformIO from VS:Code and deleted the entire .platformio directory. I then reinstalled and added the custom8266 from github through the Advanced Installation

Trying compile again I received a few errors: esp8266.common.ld is missing I had to add "#define CONFIG_LWIP_DHCP_DISCOVER_RETRANSMISSION_INTERVAL 250" to sdkconfig.h There was a tab/space issue on line 237 of esp8266-rtos-sdk.py

Still unable to compile without esp8266.common.ld. I tried using one from another FreeRTOS release. It does compile and the segment count error does not appear but it loads the app from the correct partition and then nothing happens.