-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fixed error: unknown type name 'size_t' and added support for ESPD-12 4 Mbyte flash model #87
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
Conversation
Thanks! Although I would rather include <stddef.h> where necessary, as it
|
I had tried doing that, but at the time thought it was causing my In any case, You may still be interested in merging the ESPD-12 board changes. |
you also need adapt the linker file for the new size. the iram1_0_seg means the ram segment for code is full but not the flash |
Thanks for the info! I'm still new to all this, so still figuring things out. I'll try and get everything working this week. |
ok, is the ESPD-12 model identical to the boards sale as ESP-12? can you read the marking / naming on the 4MB chip? |
It appears that all new ESP-12 modules are actually the 4mbyte ESPD-12 modules, but just not advertised as such. I checked one that I got from a random aliexpress seller about a month ago that was advertised as ESP-12 and its 4 mbyte flash. And I recently purchased 20 ESPD-12 advertised modules from a supplier in alibaba, and that supplier indicated that his supplier no longer has 512kbyte models, and that all were now 4mbyte. I can't see the flash chip as its under the metal cover, but I checked in software and both modules reported 4 mbyte. I can post the code I used when I get home tonight. |
Adding ICACHE_FLASH_ATTR to all of the functions resolved that build issue |
Currently trying to adapt https://github.com/cnlohr/ws2812esp8266 for the Arduino IDE and ran into this compile error. Adding the definition to c_types.h fixed it.
Also, I added an option for the new ESPD-12 model to make the full 4 megabytes of flash available. Afaik all EDP-12 boards currently being sold are the new 4 megabyte models unless they're old stock. My supplier confirmed that the 512 kilobyte models are no longer available.