Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By piersfinlayson
#56330
martinayotte wrote:esptool.py has already been patched for > 4MB in ESP31 branch :

https://github.com/themadinventor/espto ... 753496b529


As far as I can see that branch only adds support for > 4MB for ESP31 (32?) devices, not for ESP8266 - that still supports:

Code: Select all    FLASH_SIZES = {
        '512KB':0x00,
        '256KB':0x10,
        '1MB':0x20,
        '2MB':0x30,
        '4MB':0x40,
        '2MB-c1': 0x50,
        '4MB-c1':0x60,
        '4MB-c2':0x70}


I'm trying to dig out the values the 8266 ROM is expecting for flash sizes in byte[3] of the flash memory when 16MB is used.

EDIT:

Doh - I see you linked to igrr's commit to esptool-ck as well, and 0x60 and 0x70 are used for 8MB and 16MB (presumably when the SDK OTA aren't being used), so looks like I want 0x60 for 16MB.

The SDK just resets if you set the value to 0x80 or above!
User avatar
By piersfinlayson
#56334
piersfinlayson wrote:Doh - I see you linked to igrr's commit to esptool-ck as well, and 0x60 and 0x70 are used for 8MB and 16MB (presumably when the SDK OTA aren't being used), so looks like I want 0x60 for 16MB.

The SDK just resets if you set the value to 0x80 or above!


Can successfully read and write to > 4MB flash using a hacked esptool.py but SPIRead on the ROM is failing any reads from > 4MB areas. So 0x60 doesn't seem to be the right setting. I've also tried 0x90 and hit the same issue.
User avatar
By KevinA
#56335
martinayotte wrote:esptool.py has already been patched for > 4MB in ESP31 branch :

https://github.com/themadinventor/espto ... 753496b529

Arduino framework too :

https://github.com/esp8266/Arduino/comm ... 992ba89df3
https://github.com/igrr/esptool-ck/comm ... 6b27a7cd8f


" Add support for 8 and 16 MB Flash "
So I started to try and figure out how to use the above:

I visited Github and garbed the staging branch since I couldn't find anything about running stable and staging I deleted C:/user/me/appdata/local/arduino15/packages/esp8266 and all files that contained esp8266 I expanded the zip from git and following their directions "Clone this repository into hardware/esp8266com/esp8266 directory" C:\Users\Kevin\Documents\Arduino\hardware\esp8266com\esp8266\ all the files from the zip.

Fired up Arduino, zip, nothing > 4MB
It would be a good thing to list the information on how to update.