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

How to make circuitpython work? #121

Open
zbynekwinkler opened this issue Oct 12, 2023 · 3 comments
Open

How to make circuitpython work? #121

zbynekwinkler opened this issue Oct 12, 2023 · 3 comments

Comments

@zbynekwinkler
Copy link

I am trying circuitpython 8.2.6 firmware but it is not working for me.

I see that support for the board has been added to circuitpython here

so it seems that someone has it working.

I am able to flash the firmware (using esptool or the firmware downloader from this repository) but that's about it. The blue LED is blinking furiously, the LCD is off and the only data on the serial line is this:

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (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:1184
load:0x40078000,len:12748
load:0x40080400,len:3024
entry 0x400805dc

So, what am I doing wrong? Is it even supposed to work?

@zbynekwinkler
Copy link
Author

When I flash the testing firmware, it works, so it does suggest the board and the flashing process is working.

@zbynekwinkler
Copy link
Author

So the problem is that my board is 4MB variant and the board supported by circuitpython is 16MB variant. I've found out by trying different images to see which one will work (adafruit_feather_huzzah32 worked). The difference was the info about SPI memory. The working board has

CIRCUITPY_ESP_FLASH_MODE = dio
CIRCUITPY_ESP_FLASH_FREQ = 40m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

while the non-working has

CIRCUITPY_ESP_FLASH_MODE = qio
CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 16MB

Creating my own board in ports/espressif/boards with the right config and building circuitpython gave me a working firmware.

@asiorgad
Copy link

@zwn Can you provide the firmware please ?

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

No branches or pull requests

2 participants