Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESP8285 (2MB flash) #7161

Closed
ghost opened this issue Mar 21, 2020 · 5 comments · Fixed by #7163
Closed

Support ESP8285 (2MB flash) #7161

ghost opened this issue Mar 21, 2020 · 5 comments · Fixed by #7163

Comments

@ghost
Copy link

ghost commented Mar 21, 2020

Hello!
I have ESP8285 installed with 2MB flash (new version of chips).
I understand you need to edit the file boards.txt
How to make support for these chips?

@d-a-v
Copy link
Collaborator

d-a-v commented Mar 21, 2020

tools/boards.txt.py needs to be updated (it generates boards.txt)
I wasn't aware of this new version, that's nice

@TD-er
Copy link
Contributor

TD-er commented Mar 21, 2020

Hmm that's a nice development.
What products do use this new version and how can we distinguish them?

Ah apparently it is called ESP8285H16 where the 1M version was ESP8285N08 or ESP8285H08

@Tech-TX
Copy link
Contributor

Tech-TX commented Mar 21, 2020

If it's as simple as this in boards.txt.py, I can do a quick PR for it:

    ( 'esp8285', {
        'name': 'Generic ESP8285 Module',
        'opts': {
            '.build.board': 'ESP8266_ESP01',
            '.build.variant': 'esp8285'
            },
        'macro': [
            'resetmethod_menu',
            'resetmethod_menu_extra',
            'crystalfreq_menu',
            'flashmode_dout',
            'flashfreq_40',
            '1M', '2M',  <<<
            'led',
            ],

I only have the N08 chips, so I can't verity it works correctly.

@ghost
Copy link
Author

ghost commented Mar 21, 2020

ESP8285N08 - 1 MB (–40°C ~ 85°C)
ESP8285H08 - 1 MB (–40°C ~ 105°C)
ESP8285H16 - 2 MB (–40°C ~ 105°C)

@d-a-v
Copy link
Collaborator

d-a-v commented Mar 22, 2020

@Tech-TX I guess you're right
Also #6690 would help to have flash-size agnostic sketches

earlephilhower added a commit to earlephilhower/Arduino that referenced this issue Mar 22, 2020
The ESP8285H16 is reported to have 2MB of flash, so add an option the
the Generic 8285 board for 2MB.

Fixes esp8266#7161
d-a-v pushed a commit that referenced this issue Mar 22, 2020
The ESP8285H16 is reported to have 2MB of flash, so add an option the
the Generic 8285 board for 2MB.

Fixes #7161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants