-
Notifications
You must be signed in to change notification settings - Fork 35
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
using more program space with 4m flash? #121
Comments
@tius2000 : On your issue. : Not clear what happens.
Especially in the irom0_0_seg the length value is not for 4M devices. -> What is the SPI size of the esp you are using ? You are mentioning a crash on boot-up. There can be multiple reasons for issues on that. |
@hreintke: thank you for the fast feedback!
Unfortunately do not have experience with awk. As a start some comment or a conditionals statement within the makefile might be of help already ...
Thank you for the hint, I did not realize that!
SPI size is 4M. I get the following messages during linking and startup:
It looks to me like a checksum error caused by wrong linker settings. After reducing the code size a bit (~700 bytes) everything works fine. |
@tius2000 :
The iram1_0_seg is to small.
|
Unfortunately this did not help :-(
resulted in
changing it to
resulted in
|
@tius2000 : At first : The beta UDK is using an updated compiler. You can try using the previous one and see if it solves your issue. |
I added ICACHE_FLASH_ATTR to all of my functions. However, this does not have any impact as ICACHE_FLASH_ATTR seems to be the default within the Sming build system anyway. So perhaps the RAM is be used up by the SDK already :-( |
@tius2000 : In the generated "out\firmware\firmware.map" file is the detailed information on functions and rom/ram locations. Do not have yet the complete knowledge on identifying "unnecessary ram located" functions. |
Thank you very much @hreintke! I will have a look at this and will report any success :-) |
Please excuse if this is a stupid or frequently asked question - I'm new to both SmingRTOS and GitHub :-)
First of all many thanks to everyone who contributed to SmingRTOS!
I'm using UDK 1.0 beta on windows (should be ESP8266_RTOS_SDK 1.40). Everything I tried seems to work fine after changing some sdk paths in Makefile-project.mk. However, after enabling WPS I soon ran out of program memory:
SmingRTOS seems to use the larger flash memory of 4M devices for SPIFFS only. So I tried to change eagle.app.v6.hr.ld:
irom0_0_seg : org = 0x4020A000, len = 0xF0000
This way I was able to compile run a simple test program using WPS. However, for bigger programs the EPS8266 now crashes on boot-up, like the the flash memory is corrupted somehow.
Is there a way to configure SmingRTOS to use more flash memory for program space? It would be great if one could choose between different common flash memory layouts ...
Thanks for any help!
The text was updated successfully, but these errors were encountered: