Skip to content

Commit ca3678f

Browse files
alwint3rd-a-v
authored andcommitted
ESPectro Core board support (#5419)
1 parent 6280e98 commit ca3678f

File tree

5 files changed

+259
-0
lines changed

5 files changed

+259
-0
lines changed

boards.txt

+177
Original file line numberDiff line numberDiff line change
@@ -5718,3 +5718,180 @@ wiolink.menu.baud.512000.upload.speed=512000
57185718
wiolink.menu.baud.921600=921600
57195719
wiolink.menu.baud.921600.upload.speed=921600
57205720

5721+
##############################################################
5722+
espectro.name=ESPectro Core
5723+
espectro.build.board=ESP8266_ESPECTRO_CORE
5724+
espectro.build.variant=espectro
5725+
espectro.upload.tool=esptool
5726+
espectro.upload.maximum_data_size=81920
5727+
espectro.upload.wait_for_upload_port=true
5728+
espectro.upload.erase_cmd=
5729+
espectro.serial.disableDTR=true
5730+
espectro.serial.disableRTS=true
5731+
espectro.build.mcu=esp8266
5732+
espectro.build.core=esp8266
5733+
espectro.build.spiffs_pagesize=256
5734+
espectro.build.debug_port=
5735+
espectro.build.debug_level=
5736+
espectro.menu.xtal.80=80 MHz
5737+
espectro.menu.xtal.80.build.f_cpu=80000000L
5738+
espectro.menu.xtal.160=160 MHz
5739+
espectro.menu.xtal.160.build.f_cpu=160000000L
5740+
espectro.menu.vt.flash=Flash
5741+
espectro.menu.vt.flash.build.vtable_flags=-DVTABLES_IN_FLASH
5742+
espectro.menu.vt.heap=Heap
5743+
espectro.menu.vt.heap.build.vtable_flags=-DVTABLES_IN_DRAM
5744+
espectro.menu.vt.iram=IRAM
5745+
espectro.menu.vt.iram.build.vtable_flags=-DVTABLES_IN_IRAM
5746+
espectro.upload.resetmethod=nodemcu
5747+
espectro.build.flash_mode=dio
5748+
espectro.build.flash_freq=40
5749+
espectro.menu.eesz.4M=4M (no SPIFFS)
5750+
espectro.menu.eesz.4M.build.flash_size=4M
5751+
espectro.menu.eesz.4M.build.flash_size_bytes=0x400000
5752+
espectro.menu.eesz.4M.build.flash_ld=eagle.flash.4m.ld
5753+
espectro.menu.eesz.4M.build.spiffs_pagesize=256
5754+
espectro.menu.eesz.4M.upload.maximum_size=1044464
5755+
espectro.menu.eesz.4M.build.rfcal_addr=0x3FC000
5756+
espectro.menu.eesz.4M1M=4M (1M SPIFFS)
5757+
espectro.menu.eesz.4M1M.build.flash_size=4M
5758+
espectro.menu.eesz.4M1M.build.flash_size_bytes=0x400000
5759+
espectro.menu.eesz.4M1M.build.flash_ld=eagle.flash.4m1m.ld
5760+
espectro.menu.eesz.4M1M.build.spiffs_pagesize=256
5761+
espectro.menu.eesz.4M1M.upload.maximum_size=1044464
5762+
espectro.menu.eesz.4M1M.build.rfcal_addr=0x3FC000
5763+
espectro.menu.eesz.4M1M.build.spiffs_start=0x300000
5764+
espectro.menu.eesz.4M1M.build.spiffs_end=0x3FB000
5765+
espectro.menu.eesz.4M1M.build.spiffs_blocksize=8192
5766+
espectro.menu.eesz.4M2M=4M (2M SPIFFS)
5767+
espectro.menu.eesz.4M2M.build.flash_size=4M
5768+
espectro.menu.eesz.4M2M.build.flash_size_bytes=0x400000
5769+
espectro.menu.eesz.4M2M.build.flash_ld=eagle.flash.4m2m.ld
5770+
espectro.menu.eesz.4M2M.build.spiffs_pagesize=256
5771+
espectro.menu.eesz.4M2M.upload.maximum_size=1044464
5772+
espectro.menu.eesz.4M2M.build.rfcal_addr=0x3FC000
5773+
espectro.menu.eesz.4M2M.build.spiffs_start=0x200000
5774+
espectro.menu.eesz.4M2M.build.spiffs_end=0x3FB000
5775+
espectro.menu.eesz.4M2M.build.spiffs_blocksize=8192
5776+
espectro.menu.eesz.4M3M=4M (3M SPIFFS)
5777+
espectro.menu.eesz.4M3M.build.flash_size=4M
5778+
espectro.menu.eesz.4M3M.build.flash_size_bytes=0x400000
5779+
espectro.menu.eesz.4M3M.build.flash_ld=eagle.flash.4m3m.ld
5780+
espectro.menu.eesz.4M3M.build.spiffs_pagesize=256
5781+
espectro.menu.eesz.4M3M.upload.maximum_size=1044464
5782+
espectro.menu.eesz.4M3M.build.rfcal_addr=0x3FC000
5783+
espectro.menu.eesz.4M3M.build.spiffs_start=0x100000
5784+
espectro.menu.eesz.4M3M.build.spiffs_end=0x3FB000
5785+
espectro.menu.eesz.4M3M.build.spiffs_blocksize=8192
5786+
espectro.menu.ip.lm2f=v2 Lower Memory
5787+
espectro.menu.ip.lm2f.build.lwip_include=lwip2/include
5788+
espectro.menu.ip.lm2f.build.lwip_lib=-llwip2-536-feat
5789+
espectro.menu.ip.lm2f.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0
5790+
espectro.menu.ip.hb2f=v2 Higher Bandwidth
5791+
espectro.menu.ip.hb2f.build.lwip_include=lwip2/include
5792+
espectro.menu.ip.hb2f.build.lwip_lib=-llwip2-1460-feat
5793+
espectro.menu.ip.hb2f.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=1460 -DLWIP_FEATURES=1 -DLWIP_IPV6=0
5794+
espectro.menu.ip.lm2n=v2 Lower Memory (no features)
5795+
espectro.menu.ip.lm2n.build.lwip_include=lwip2/include
5796+
espectro.menu.ip.lm2n.build.lwip_lib=-llwip2-536
5797+
espectro.menu.ip.lm2n.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=0 -DLWIP_IPV6=0
5798+
espectro.menu.ip.hb2n=v2 Higher Bandwidth (no features)
5799+
espectro.menu.ip.hb2n.build.lwip_include=lwip2/include
5800+
espectro.menu.ip.hb2n.build.lwip_lib=-llwip2-1460
5801+
espectro.menu.ip.hb2n.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=1460 -DLWIP_FEATURES=0 -DLWIP_IPV6=0
5802+
espectro.menu.ip.lm6f=v2 IPv6 Lower Memory
5803+
espectro.menu.ip.lm6f.build.lwip_include=lwip2/include
5804+
espectro.menu.ip.lm6f.build.lwip_lib=-llwip6-536-feat
5805+
espectro.menu.ip.lm6f.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=1
5806+
espectro.menu.ip.hb6f=v2 IPv6 Higher Bandwidth
5807+
espectro.menu.ip.hb6f.build.lwip_include=lwip2/include
5808+
espectro.menu.ip.hb6f.build.lwip_lib=-llwip6-1460-feat
5809+
espectro.menu.ip.hb6f.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=1460 -DLWIP_FEATURES=1 -DLWIP_IPV6=1
5810+
espectro.menu.ip.hb1=v1.4 Higher Bandwidth
5811+
espectro.menu.ip.hb1.build.lwip_lib=-llwip_gcc
5812+
espectro.menu.ip.hb1.build.lwip_flags=-DLWIP_OPEN_SRC
5813+
espectro.menu.ip.src=v1.4 Compile from source
5814+
espectro.menu.ip.src.build.lwip_lib=-llwip_src
5815+
espectro.menu.ip.src.build.lwip_flags=-DLWIP_OPEN_SRC
5816+
espectro.menu.ip.src.recipe.hooks.sketch.prebuild.1.pattern=make -C "{runtime.platform.path}/tools/sdk/lwip/src" install TOOLS_PATH="{runtime.tools.xtensa-lx106-elf-gcc.path}/bin/xtensa-lx106-elf-"
5817+
espectro.menu.dbg.Disabled=Disabled
5818+
espectro.menu.dbg.Disabled.build.debug_port=
5819+
espectro.menu.dbg.Serial=Serial
5820+
espectro.menu.dbg.Serial.build.debug_port=-DDEBUG_ESP_PORT=Serial
5821+
espectro.menu.dbg.Serial1=Serial1
5822+
espectro.menu.dbg.Serial1.build.debug_port=-DDEBUG_ESP_PORT=Serial1
5823+
espectro.menu.lvl.None____=None
5824+
espectro.menu.lvl.None____.build.debug_level=
5825+
espectro.menu.lvl.SSL=SSL
5826+
espectro.menu.lvl.SSL.build.debug_level= -DDEBUG_ESP_SSL
5827+
espectro.menu.lvl.TLS_MEM=TLS_MEM
5828+
espectro.menu.lvl.TLS_MEM.build.debug_level= -DDEBUG_ESP_TLS_MEM
5829+
espectro.menu.lvl.HTTP_CLIENT=HTTP_CLIENT
5830+
espectro.menu.lvl.HTTP_CLIENT.build.debug_level= -DDEBUG_ESP_HTTP_CLIENT
5831+
espectro.menu.lvl.HTTP_SERVER=HTTP_SERVER
5832+
espectro.menu.lvl.HTTP_SERVER.build.debug_level= -DDEBUG_ESP_HTTP_SERVER
5833+
espectro.menu.lvl.SSLTLS_MEM=SSL+TLS_MEM
5834+
espectro.menu.lvl.SSLTLS_MEM.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM
5835+
espectro.menu.lvl.SSLHTTP_CLIENT=SSL+HTTP_CLIENT
5836+
espectro.menu.lvl.SSLHTTP_CLIENT.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_HTTP_CLIENT
5837+
espectro.menu.lvl.SSLHTTP_SERVER=SSL+HTTP_SERVER
5838+
espectro.menu.lvl.SSLHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_HTTP_SERVER
5839+
espectro.menu.lvl.TLS_MEMHTTP_CLIENT=TLS_MEM+HTTP_CLIENT
5840+
espectro.menu.lvl.TLS_MEMHTTP_CLIENT.build.debug_level= -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT
5841+
espectro.menu.lvl.TLS_MEMHTTP_SERVER=TLS_MEM+HTTP_SERVER
5842+
espectro.menu.lvl.TLS_MEMHTTP_SERVER.build.debug_level= -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_SERVER
5843+
espectro.menu.lvl.HTTP_CLIENTHTTP_SERVER=HTTP_CLIENT+HTTP_SERVER
5844+
espectro.menu.lvl.HTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
5845+
espectro.menu.lvl.SSLTLS_MEMHTTP_CLIENT=SSL+TLS_MEM+HTTP_CLIENT
5846+
espectro.menu.lvl.SSLTLS_MEMHTTP_CLIENT.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT
5847+
espectro.menu.lvl.SSLTLS_MEMHTTP_SERVER=SSL+TLS_MEM+HTTP_SERVER
5848+
espectro.menu.lvl.SSLTLS_MEMHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_SERVER
5849+
espectro.menu.lvl.SSLHTTP_CLIENTHTTP_SERVER=SSL+HTTP_CLIENT+HTTP_SERVER
5850+
espectro.menu.lvl.SSLHTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
5851+
espectro.menu.lvl.TLS_MEMHTTP_CLIENTHTTP_SERVER=TLS_MEM+HTTP_CLIENT+HTTP_SERVER
5852+
espectro.menu.lvl.TLS_MEMHTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
5853+
espectro.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVER=SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER
5854+
espectro.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
5855+
espectro.menu.lvl.CORE=CORE
5856+
espectro.menu.lvl.CORE.build.debug_level= -DDEBUG_ESP_CORE
5857+
espectro.menu.lvl.WIFI=WIFI
5858+
espectro.menu.lvl.WIFI.build.debug_level= -DDEBUG_ESP_WIFI
5859+
espectro.menu.lvl.HTTP_UPDATE=HTTP_UPDATE
5860+
espectro.menu.lvl.HTTP_UPDATE.build.debug_level= -DDEBUG_ESP_HTTP_UPDATE
5861+
espectro.menu.lvl.UPDATER=UPDATER
5862+
espectro.menu.lvl.UPDATER.build.debug_level= -DDEBUG_ESP_UPDATER
5863+
espectro.menu.lvl.OTA=OTA
5864+
espectro.menu.lvl.OTA.build.debug_level= -DDEBUG_ESP_OTA
5865+
espectro.menu.lvl.OOM=OOM
5866+
espectro.menu.lvl.OOM.build.debug_level= -DDEBUG_ESP_OOM
5867+
espectro.menu.lvl.COREWIFIHTTP_UPDATEUPDATEROTAOOM=CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM
5868+
espectro.menu.lvl.COREWIFIHTTP_UPDATEUPDATEROTAOOM.build.debug_level= -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_OOM
5869+
espectro.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVERCOREWIFIHTTP_UPDATEUPDATEROTAOOM=SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER+CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM
5870+
espectro.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVERCOREWIFIHTTP_UPDATEUPDATEROTAOOM.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_OOM
5871+
espectro.menu.lvl.NoAssert-NDEBUG=NoAssert-NDEBUG
5872+
espectro.menu.lvl.NoAssert-NDEBUG.build.debug_level= -DNDEBUG
5873+
espectro.menu.wipe.none=Only Sketch
5874+
espectro.menu.wipe.none.upload.erase_cmd=
5875+
espectro.menu.wipe.sdk=Sketch + WiFi Settings
5876+
espectro.menu.wipe.sdk.upload.erase_cmd=-ca "{build.rfcal_addr}" -cz 0x4000
5877+
espectro.menu.wipe.all=All Flash Contents
5878+
espectro.menu.wipe.all.upload.erase_cmd=-ca 0x0 -cz "{build.flash_size_bytes}"
5879+
espectro.menu.baud.115200=115200
5880+
espectro.menu.baud.115200.upload.speed=115200
5881+
espectro.menu.baud.9600=9600
5882+
espectro.menu.baud.9600.upload.speed=9600
5883+
espectro.menu.baud.57600=57600
5884+
espectro.menu.baud.57600.upload.speed=57600
5885+
espectro.menu.baud.230400.linux=230400
5886+
espectro.menu.baud.230400.macosx=230400
5887+
espectro.menu.baud.230400.upload.speed=230400
5888+
espectro.menu.baud.256000.windows=256000
5889+
espectro.menu.baud.256000.upload.speed=256000
5890+
espectro.menu.baud.460800.linux=460800
5891+
espectro.menu.baud.460800.macosx=460800
5892+
espectro.menu.baud.460800.upload.speed=460800
5893+
espectro.menu.baud.512000.windows=512000
5894+
espectro.menu.baud.512000.upload.speed=512000
5895+
espectro.menu.baud.921600=921600
5896+
espectro.menu.baud.921600.upload.speed=921600
5897+

doc/boards.rst

+9
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,12 @@ Please DO NOTICE that you MUST pull up pin 15 to enable the power for Grove port
439439

440440
Product page: https://www.seeedstudio.com/Wio-Link-p-2604.html
441441

442+
ESPectro Core
443+
-------------
444+
445+
ESPectro Core is ESP8266 development board as the culmination of our 3+ year experience in exploring and developing products with ESP8266 MCU.
446+
447+
Initially designed for kids in mind, everybody should be able to use it. Yet it's still hacker-friendly as we break out all ESP8266 ESP-12F pins.
448+
449+
More details at https://shop.makestro.com/product/espectrocore/
450+

package/package_esp8266com_index.template.json

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
},
102102
{
103103
"name": "Seeed Wio Link"
104+
},
105+
{
106+
"name": "ESPectro Core"
104107
}
105108
],
106109
"toolsDependencies": [

tools/boards.txt.py

+20
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,26 @@
820820
'',
821821
'Product page: https://www.seeedstudio.com/Wio-Link-p-2604.html'
822822
],
823+
}),
824+
('espectro', {
825+
'name': 'ESPectro Core',
826+
'opts': {
827+
'.build.board': 'ESP8266_ESPECTRO_CORE',
828+
'.build.variant': 'espectro',
829+
},
830+
'macro': [
831+
'resetmethod_nodemcu',
832+
'flashmode_dio',
833+
'flashfreq_40',
834+
'4M',
835+
],
836+
'desc': [
837+
'ESPectro Core is ESP8266 development board as the culmination of our 3+ year experience in exploring and developing products with ESP8266 MCU.',
838+
'',
839+
'Initially designed for kids in mind, everybody should be able to use it. Yet it\'s still hacker-friendly as we break out all ESP8266 ESP-12F pins.',
840+
'',
841+
'More details at https://shop.makestro.com/product/espectrocore/',
842+
],
823843
})
824844
])
825845

variants/espectro/pins_arduino.h

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
/*
3+
pins_arduino.h - Pin definition functions for Arduino
4+
Part of Arduino - http://www.arduino.cc/
5+
Copyright (c) 2007 David A. Mellis
6+
Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
7+
This library is free software; you can redistribute it and/or
8+
modify it under the terms of the GNU Lesser General Public
9+
License as published by the Free Software Foundation; either
10+
version 2.1 of the License, or (at your option) any later version.
11+
This library is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
Lesser General Public License for more details.
15+
You should have received a copy of the GNU Lesser General
16+
Public License along with this library; if not, write to the
17+
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18+
Boston, MA 02111-1307 USA
19+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
20+
*/
21+
22+
#ifndef Pins_Arduino_h
23+
#define Pins_Arduino_h
24+
25+
#include "../generic/common.h"
26+
27+
#ifndef ESPECTRO_CORE_VERSION
28+
#define ESPECTRO_CORE_VERSION 3
29+
#endif
30+
31+
static const uint8_t SDA = 4;
32+
static const uint8_t SCL = 5;
33+
34+
#define LED_BUILTIN 15
35+
36+
#if ESPECTRO_CORE_VERSION == 3
37+
static const uint8_t BUTTON_BUILTIN = 0;
38+
static const uint8_t BUILTIN_BUTTON = 0;
39+
#else
40+
static const uint8_t BUTTON_BUILTIN = 2;
41+
static const uint8_t BUILTIN_BUTTON = 2;
42+
#endif
43+
44+
static const uint8_t RX = 3;
45+
static const uint8_t TX = 1;
46+
static const uint8_t RX0 = 3;
47+
static const uint8_t TX0 = 1;
48+
static const uint8_t TX1 = 2;
49+
50+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)