Skip to content

Commit

Permalink
Enforce use of flash mode DOUT
Browse files Browse the repository at this point in the history
To solve boot problems on increasing amount of esp8285 based devices
using the wrong firmware image. Dout works fine with both esp8266 and
esp8285
  • Loading branch information
arendst committed Jul 14, 2017
1 parent 3a4210e commit 88ec2c6
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions platformio.ini
Expand Up @@ -12,42 +12,32 @@ src_dir = sonoff

; Uncomment one of the lines below to build/upload only one environment
;env_default = sonoff
;env_default = sonoff-touch-4ch-bnsz
;env_default = sonoff-minimal
;env_default = sonoff-ds18x20

; Sonoff et al (ESP8266 based)
; Sonoff et al
[env:sonoff]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = qio
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

; Sonoff Touch, Sonoff 4CH and Sonoff BN-SZ01 (ESP8285 based)
[env:sonoff-touch-4ch-bnsz]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

; Sonoff minimal (ESP8266 based)
; Sonoff minimal
[env:sonoff-minimal] ; Placeholder to be configured
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = qio
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512 -DBE_MINIMAL
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

; Sonoff multiple DS18x20 (ESP8266 based)
; Sonoff multiple DS18x20
[env:sonoff-ds18x20]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = qio
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=758 -DUSE_DS18x20 -DMESSZ=600
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON, OneWire

0 comments on commit 88ec2c6

Please sign in to comment.