-->
Page 48 of 49

Re: Sming Open Source Framework - native ESP8266 development

PostPosted: Tue Jul 07, 2015 5:39 am
by alon24
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)

Re: Sming Open Source Framework - native ESP8266 development

PostPosted: Tue Jul 07, 2015 5:40 am
by alon24
also if you are doing changes to ssd1306, can you/ do u know how, to add a cursor, flashing cursor, or flashing text, for manipulating text in a menu, (scroll over values).
also is there a way to add getting the location after doing println and print?

Re: Sming Open Source Framework - native ESP8266 development

PostPosted: Tue Jul 07, 2015 6:17 am
by Ribeiro Santos
alon24 wrote:1. can u share the changes, enhancements?)


I "just" copy/paste the code at ssd1306_128x64_i2c.ino in examples of SSD1306 library.

Someone could try to compile to see if gets same behavior?

Re: Sming Open Source Framework - native ESP8266 development

PostPosted: Fri Jul 10, 2015 12:46 pm
by anakod
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.