Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By alon24
#22675
Ribeiro Santos wrote:Hi,


I added some text effects like scroll in the SSD1306 example (latest SMING version) and flashed to a nodemmcu board v0.9 connected with a I2C screen.

Aftert flash, the screen (and esp) works fine, but if I power off and power on (dettach and attach usb cable from pc) it begins to give the following error, rebooting again...again... until I have to flash again to work fine.

Display start

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 21668, room 16
tail 4
chksum 0xb3
load 0x3ffe8000, len 2392, room 4
tail 4
chksum 0x86
load 0x3ffe8960, len 2448, room 4
tail 12
chksum 0x77
csum 0x77
ÄÃÕMEM CHECK FAIL!!!
ä{lfs.start: size:272 Kb, offset:0x38000

mount res: 0

Display start
....

1. can u share the changes, enhancements?
2. I would recomend u try to flash it with latest espreiff flash tool, and latest 1.2 version (even once) like i did and it restored my esp
http://bbs.espressif.com/download/file.php?id=385
(download 1.2 too and flash files from it, look in the docs for the locations to flash)
User avatar
By anakod
#22933
Code: Select allThe Sming main app code is not prefixed with ICACHE_FLASH_ATTR. Does this mean that the code is may run out of space more easily even if I am using a module with plenty of flash space? To ensure sufficient space, should I add ICACHE_FLASH_ATTR to the user functions in my main app?

No, in Sming all code by default goind to flash without additional attributes. But you can add IRAM attribute instead (where it needed).

Code: Select allI am using 12e. Flash size is 4Mbit.

4Mb filesystem take some time to format. You can change parameters to 512 Kb if larger space isn't needed.