Skip to content

H801 with 512KB flash supported #2982

@RoganDawes

Description

@RoganDawes

Make sure these boxes are checked [x] before submitting your issue - Thank you!

12:21:05 CMD: status 0
12:21:05 MQT: stat/sonoff/STATUS = {"Status":{"Module":20,"FriendlyName":["Sonoff"],"Topic":"sonoff","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
12:21:05 MQT: stat/sonoff/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"External System","Uptime":"0T00:00:15","StartupUTC":"2018-06-13T11:20:50","Sleep":0,"BootCount":1,"SaveCount":0,"SaveAddress":"FB000"}}
12:21:05 MQT: stat/sonoff/STATUS2 = {"StatusFWR":{"Version":"6.0.0a-minimal","BuildDateTime":"2018-06-13T13:20:30","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
12:21:05 MQT: stat/sonoff/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":2,"LogHost":"192.168.201.10","LogPort":514,"SSId":["Dawes",""],"TelePeriod":300,"SetOption":["00008009","55818000"]}}
12:21:05 MQT: stat/sonoff/STATUS4 = {"StatusMEM":{"ProgramSize":436,"Free":564,"Heap":22,"ProgramFlashSize":512,"FlashSize":512,"FlashMode":3,"Features":["00000809","04082580","0C000002","15021702","00000000"]}}
12:21:05 MQT: stat/sonoff/STATUS5 = {"StatusNET":{"Hostname":"sonoff-6212","IPAddress":"192.168.201.115","Gateway":"192.168.201.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.201.1","Mac":"18:FE:34:9D:98:44","Webserver":2,"WifiConfig":2}}
12:21:05 MQT: stat/sonoff/STATUS6 = {"StatusMQT":{"MqttHost":"home.dawes.za.net","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_9D9844","MqttUser":"DVES_USER","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
12:21:05 MQT: stat/sonoff/STATUS7 = {"StatusTIM":{"UTC":"Wed Jun 13 11:21:05 2018","Local":"Wed Jun 13 12:21:05 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":1}}
12:21:05 MQT: stat/sonoff/STATUS10 = {"StatusSNS":{"Time":"2018-06-13T12:21:05"}}
12:21:05 MQT: stat/sonoff/STATUS11 = {"StatusSTS":{"Time":"2018-06-13T12:21:05","Uptime":"0T00:00:15","Vcc":3.081,"POWER":"OFF","Dimmer":10,"Color":"1919191919","HSBColor":"0,0,10","Channel":[10,10,10,10,10],"CT":500,"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":1,"SSId":"Dawes","RSSI":58,"APMac":"F0:9F:C2:31:B1:57"}}}

Hi folks,

I have an H801 module that only has 512KB of flash. Trying to use any of the non-minimal firmwares (unsurprisingly?) results in a reboot loop.

I guess this is not so much a troubleshooting issue, as a "Hey, I solved it myself", because I copied a linker script for a 512kB flash with no SPIFFS, reduced the size of the module by commenting out some features that I didn't need, and rebuilding.

Here is the linker script, if there is anyone else in the same boat:

/* Flash Split for 512K chips */
/* sketch 487KB */
/* eeprom 20KB */

MEMORY
{
  dport0_0_seg :                        org = 0x3FF00000, len = 0x10
  dram0_0_seg :                         org = 0x3FFE8000, len = 0x14000
  iram1_0_seg :                         org = 0x40100000, len = 0x8000
  irom0_0_seg :                         org = 0x40201010, len = 0x79ff0
}

PROVIDE ( _SPIFFS_start = 0x4027B000 );
PROVIDE ( _SPIFFS_end = 0x4027B000 );
PROVIDE ( _SPIFFS_page = 0x0 );
PROVIDE ( _SPIFFS_block = 0x0 );

INCLUDE "esp8266.flash.common.ld"

Obviously, I also had to update platformio.ini to refer to the new linker file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions