1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

96 Commits

Author SHA1 Message Date
Max Prokhorov
d6c743027d Fix negative SPIFFS size (#5522) 2018-12-18 23:33:41 -03:00
Earle F. Philhower, III
e44bcfe8e4 Make exceptions a configurable menu (#5434)
* Make exceptions a configurable menu

Add a menu, Exceptions, which allows exceptions to be disabled for ROM
sensitive scripts.  Default is enabled.

* Update to latest JSON builder
2018-12-04 22:31:40 -03:00
apicquot
ee3b374e4e inconsistent block size for spiffs in board.txt. and ld files (#5412)
block size of 4096 for all boads of flash size <= 1024, or
blocks size of 4096 for spiffs < 512, or
block size of 8192 for all other boards
2018-12-04 10:01:32 +01:00
Earle F. Philhower, III
2ec3daa225 Use Python JSON to format packages.json file (#5429)
The packages JSON file which includes the boards, tools, etc. and needs to
have consistent formatting to be reproducible.  The current boards.txt.py
uses a REGEX to string-replace a bit of it, but that bit has a different
indent than the rest of the file.

Use Python's JSON writer to format the whole file repeatably.
2018-12-04 00:26:18 -03:00
Alwin Arrasyid
ca3678f7c1 ESPectro Core board support (#5419) 2018-12-03 15:27:06 +01:00
apicquot
4b16fa0a33 Added 2M generic boards (#5404)
* added generic boards
2M (SPIFFS 128K)
2M (SPIFFS 256K)
2018-12-01 14:10:17 -08:00
david gauchard
5c4db3acf4
IPv6 on esp8266-nonos-sdk and arduino (#5136) 2018-11-27 23:07:47 +01:00
Invent Victor
d7ca884007 support new board (invent one) (#5286)
* add inventone to boards.txt.py

* add inventone pin mapping .h file to variants

* generate files running boards.txt.py via Python2

* delete .orig files
2018-10-28 15:44:31 -03:00
david gauchard
a1e59e9c01 update to lwIP-2.1.0: partial SACK support by default (de-selectable in menu) (#5126)
* update to lwIP-2.1.0rc1: partial SACK support
fix #4176

* hash fix

* get some flash back due to mistake in conf (fragmentation & reassembly was incorrectly enabled)
(ahah I scared you)

* add missing include files

* update to lwip-2.1.0(release) + remove unused lwIP's include files

* lwIP release 2.1.0, SACK is now default, bigger, no-SACK is selectable

* fix ldscript

* pio

* rename 'sack' option to 'feat'ure option, + IP fragmentation/reassembly

* merge, fix pio

* change internal/hidden string

* pio: more lwip2 configuration: + without sack for no change in flash footprint
2018-10-09 16:27:27 -03:00
david gauchard
88d0a15f0a cleanly restore spiffs data in boards.txt (#5195) 2018-10-01 11:10:24 -03:00
Earle F. Philhower, III
38779149d0 Move ICACHE_* to unique sections, local LD script (#5150)
* Move ICACHE_* to unique sections, local LD script

Similar to PROGMEM changes, make the name of each ICACHE_* variable/fuction
unique to avoid issues with section conflicts.

Also rename the generated LD linker script to avoid issue with older copies
of the eagle.app.v6.common.ld which were generated by the build process
in a global directory before being moved to the {build.path}.  The linker
would use the older, generated *.ld file instead of the generated one, which
would lead to runtime failures on some systems and cause the VTABLE location
to not correspond to the IDE menu selection.

Fixes #5115, and is an update to #5117 and #5116.

* Update boards.txt.py and platform.io build
2018-09-21 15:33:54 -03:00
Earle F. Philhower, III
bc2d4ec18b Allow GPIO 9 and 10 for waveform generation (#5055)
* Allow GPIO 9 and 10 for waveform generation

While most ESP8266 modules use quad-io mode for their SPI flash ROM,
there are some which only use dual-io mode.  Allow the unused pins
(GPIO 9 and 10) to have waveforms generated on them.  Should the user try
this on a quad-io mode board, expect very bad things to happen.

* Add variant for 8285 to init GPIO 9/10

The 8285 only has 2-bit flash IO, so the other two pins can be used as
inputs (9/10).  Set them to input to mirror the way other pins are set
up.

* Update waveform gen to only allow 9/10 on 8285

Update the common.h in both generic (remove TODO, it's done!) and the
8285 variant to make isFlashInterfacePin macro correct.  Use that macro
to disable pins 9 and 10 in the common, non-8285 case.
2018-09-17 22:58:06 -03:00
david gauchard
cee458a68e
restore SPIFFS symbols when null-sized (#5122)
fix comments
fix cc0bfa04d4 (commitcomment-30462616)
2018-09-11 14:25:05 +02:00
david gauchard
cc0bfa04d4
boards generator: updates (#5103)
boards generator updates:
* simplified mapping description: only flash and spiffs sizes are needed
* some ldscripts are renamed due to autogenerated names
* +2M/0, +2M/512K spiffs, +4M0
* reduce length of hidden strings in boards.txt (#5100, https://github.com/arduino/arduino-builder/issues/284)
* give more details in ldscripts (address, size,  +rf-cal, +sdk-wifi-settings)
2018-09-03 22:29:27 +02:00
david gauchard
85e68093e9
Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system (#5018)
Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system 

* enable dot_a_linkage on internal libraries
* add device tests
* boards generator: deprecate --noextra4k/--allowWPS and fix documentation
2018-08-20 14:35:52 +02:00
Ivan Grokhotkov
9f67d83907
build: place generated ld script into build directory (#5043)
arduino-builder 1.3.25 (shipped with Arduino 1.8.5) forces full
recompilation when any file in the core directory is modified. Avoid
full recompilation by placing generated ld script into build
directory, not source directory.

Also fix an issue where git version description would not be generated
if there were spaces in build path.
2018-08-20 17:17:49 +08:00
WEMOS Electronics
319adc6b8a Fix boards.txt.py compatible with python3 (#4998) 2018-08-03 10:45:03 +02:00
WEMOS Electronics
b1f0435fb3 change "WeMos" to new brand name "LOLIN" (#4984)
* change "WeMos" to new brand name "LOLIN"
2018-07-31 20:55:35 -04:00
Jack Shao
3906ee4d91 Add support for Seeed Wio Link board (#4943) 2018-07-20 14:51:32 -04:00
brendanvanbreda
e5648f3dfd Add support for XinaBox (#4929)
Add support for the XinaBox CW01;
2018-07-17 11:53:26 -07:00
david gauchard
ce33c2cffe
informative message on top of boards.txt (#4910) 2018-07-09 18:36:39 +02:00
david gauchard
e486887f18
optionally allow WPS (#4889) 2018-07-06 16:45:25 +02:00
david gauchard
672c3f8d79
boards updates: nodemcu doc update (@lrmoreno007 #4715) + 512k32spiffs (@carlymx #4871) (#4880)
* boards updates: nodemcu doc update (@lrmoreno007 #4715) + 512k32spiffs (@carlymx #4871)

* sometimes -> usually
2018-07-03 22:14:06 +02:00
harlock974
91bb97ddb3 update Wemos D1 Mini Lite informations (#4809) 2018-06-14 10:39:19 +02:00
acosinwork
9c5c16e9c8 add board WiFi Slot (#3916) 2018-06-04 18:42:11 +02:00
david gauchard
cc11b29ff1
board gen4iod: change flash mode from qio to dio (#4616)
on behalf of @4dsystems #4613:
Need to change flash mode from qio to dio, due to a change in supplier of Flash Memory.
Old modules work just the same with no speed difference noticed,
new modules will not work without the change to dio however.
2018-04-08 02:35:10 +02:00
david gauchard
149af7618c
boards generator: new option --allgen (#4614)
useful when changing and pushing updates
2018-04-07 20:16:04 +02:00
Earle F. Philhower, III
f2c7256539 Add flash for vtable destination, make it default, and add build menu to control options (#4582)
* Add flash for vtable destination, make it default

Add an option for placing vtables in flash to complement the existing
iram and heap options.  "make flash"

Now that there is a way to change it, move to vtables in flash as default
as only users with interrupts which use vtables require the vtable to
be in RAM.  For those users, if the tables are small enough they can put
them in IRAM and save heap space for their app.  If not, then the vtables
can be placed in HEAP which supports much larger tables.

* Add VTable menu, FLASH as default, remove Makefile

Convert from manual "make" operated app.ld creation to runtime creation
whose options are selected from the build menu.

Use a prelink recipe to create the output app.ld file each run, without
need for any special tools.

Update the boards.txt.py script to generate this new config.
2018-04-03 00:32:35 +02:00
i3water
7ae8f98e57 add board WiFiduino (#4590) 2018-04-01 18:51:59 +02:00
Marco Bisioli
e1ca870695 defined SDA and SCL pins for Olimex MOD-WIFI-ESP8266(-DEV) (#4562) 2018-03-26 22:47:11 +02:00
david gauchard
732e22ec37
OOM debug option: simplify its management and make it compatible with arduino-1.9beta (#4357) 2018-03-16 19:56:32 +01:00
david gauchard
c51c7b47ee
4m2m support in ldscripts (#4454)
* 4m2m support in ldscripts (fix boards generator for new ldscripts generation)
2018-03-13 00:35:16 +01:00
Ivan Grokhotkov
00c8b633df platform, boards: add menu to control what gets erased during upload 2018-02-20 21:51:53 +03:00
Ivan Grokhotkov
a020e8941a boards.txt.py: normalize script name in generated output 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
a358bce0d9 boards.txt.py: fix extra newline at the end of JSON output 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
f0787e7106 boards.txt.py: fix trailing comma in generated JSON 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
ce90037fca tools/boards.txt.py: make ldscript output same as the existing files 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
bc46db79c6 tools/boards.txt.py: remove tabs 2018-02-19 12:43:30 +03:00
david gauchard
85fb3d9b44
boards: Wemos D1 R1 needs a separate defined identifier (#4304) 2018-02-07 15:36:26 +01:00
david gauchard
4caf4878c7 LED_BUILTIN should be a #define (#4276)
* LED_BUILTIN should be a #define
deduplicate and hide BUILTIN_LED as a deprecated constant

* test for LED_BUILTIN existence

* board:espino:variant: rename button macro (naming coherence)
2018-02-07 10:42:57 -03:00
david gauchard
29c9ebea32
update lwip menu (#4286) 2018-02-03 22:02:29 +01:00
david gauchard
8b87491700
new board generator option: --nofloat (#4232) 2018-01-27 11:10:59 +01:00
Maurice Ribble
4e539b2618 Add a new resetmethod_menu_all macro (#4241)
* Add a new resetmethod_menu_extra macro to give the choice of all the reset options.  Then only offer all these options for the generic modules.
2018-01-27 02:04:22 +01:00
Maurice Ribble
8a24598d5d Add missing esptool upload modes for none and dtrset (#4228)
* Add missing esptool upload modes for none and dtrset
2018-01-24 15:20:04 +01:00
Peter
12f336fa5f Case change and and 'none' reset option for Digistump Oak (#4143)
* Case change and and 'none' reset option for Digistump Oak

The logo is 'digiStump', but is always written in text form as 'Digistump'. 

The generator fixed an issue with the release version of 2.4.0 not having a resetMethod for the Digistump Oak, and hence not being able to be uploaded to without modifying the boards.txt file. However, the Oak doesn't support auto-reset via serial - it was primarily designed to be a cloud-programmed board.

* Regenerated boards.txt
* Regeneration of doc/boards.rst
2018-01-15 04:19:52 +01:00
david gauchard
28253c5bd3 boards.txt generator (#3722)
+ generates boards.rst
+ generate and replace boards section in package.json
+ generate ldscripts
+ new debug option: OOM
+ new led menu for generic board
2018-01-08 11:06:01 -03:00