Commit Graph

612 Commits

Author SHA1 Message Date
zipiju
3198f25c19 Set HSPI ports by default when HSPI is selected (#874)
When user selected HSPI with SPIClass name(HSPI) ESP was, by default,
still using VSPI ports (the ones defined in pins_arduino.h).
With this change when user selects HSPI then HSPI default ports will be
used.
If user won't specify HSPI then VSPI default ports will be used.
If user will specify SCLK, MOSI, MISO and SS with SPI.begin() then user
defined ports will be used no matter if VSPI or HSPI is selected.
With this change fe. SD library can use default HSPI ports. It was
possible to
pass HSPI SPI instance to SD lib, however even then it was using VSPI
ports which were (probably) GPIO matrixed to HSPI.
2017-11-28 11:12:39 +01:00
Ivan Kravets
aa83fca438 Update link to PIO Core (#877) 2017-11-28 11:10:36 +01:00
me-no-dev
1fae11a7f2 Merge branch 'master' of https://github.com/espressif/arduino-esp32 2017-11-28 11:09:44 +01:00
me-no-dev
823fb8fdbb Reword some instructions 2017-11-28 11:09:41 +01:00
Ivan Kravets
dac7ae757a Minor fixes for PlatformIO (#881)
* Don't escape folders which are already arguments

* Drop "stage" suffix from @platformio dev/platform
2017-11-26 19:35:21 +01:00
Me No Dev
6fe9202c6c
Update platformio-build.py 2017-11-26 19:35:01 +01:00
Ivan Kravets
8eecfd21b4 Sync flags with platform.txt; Custom partitions per board (#875)
* Sync flags with platform.txt

* Add support for custom partitions per board

* Add "-fstack-protector" to CCFLAGS
2017-11-26 01:22:42 +01:00
Ivan Kravets
a907113ba2 Use real flash mode and frequency for bootloader (#873)
* Use real flash mode and frequency for bootloader

* Use real flash mode and frequency for bootloader
2017-11-25 01:49:24 +01:00
me-no-dev
3300a346e8 fix upload for linux 2017-11-25 00:53:56 +01:00
me-no-dev
62c5f3337d fix bootloader for PIO 2017-11-24 19:55:08 +01:00
me-no-dev
a53d41f1c1 Fix bootloaders for different flash configs
fixes: https://github.com/espressif/arduino-esp32/issues/867
2017-11-24 19:51:48 +01:00
me-no-dev
cf45d51476 Add stack protector flag to build 2017-11-24 14:33:17 +01:00
me-no-dev
23cf233eca Remove unnecessary library from linking
Fixes: https://github.com/espressif/arduino-esp32/issues/866
2017-11-24 10:37:35 +01:00
Me No Dev
81a9c45a1e
Update IDF to e5b2c1c (#865)
* Update BLE Library

* Fix SD driver

* Update toolchain

* Update IDF to e5b2c1c
2017-11-23 23:26:53 +01:00
me-no-dev
a3a9dd3af9 Ignore .DS_Store 2017-11-23 13:58:36 +01:00
me-no-dev
b788da30a8 Update get.exe
Fixes: https://github.com/espressif/arduino-esp32/issues/860
2017-11-23 13:57:11 +01:00
张雷
80a7d6084b fix enable ADC on pin37,38 (#822) 2017-11-10 13:27:00 +02:00
copercini
8ba91b9453 Feed WDT (#817)
fix for https://github.com/espressif/arduino-esp32/issues/740
2017-11-06 20:17:10 +02:00
allex1978
47cdfff475 Now SmartConfig works! (#807)
* little fix to WiFiSTA.cpp

Now SmartConfig works! Tested on ESP32

* little fix to WiFiSTA.cpp

Now SmartConfig works! Tested on ESP32
2017-11-06 20:10:48 +02:00
me-no-dev
1b994d54be Fix wrong size reported for cards above 16GB
Fixes: https://github.com/espressif/arduino-esp32/issues/803
2017-11-06 16:20:42 +02:00
me-no-dev
45d5d9b360 Fix SD issue on failed mount
fixes: https://github.com/espressif/arduino-esp32/issues/613
2017-11-06 16:13:09 +02:00
copercini
14dd44ad06 Reduce net_would_block calls in handshake verification (#795)
This reduce net_would_block calls and CPU utilization
2017-11-06 15:28:37 +02:00
Chris Hobbs
c1ce87e0a5 Fix Heltec Wifi-LoRa kit pinout (#799)
Based on http://esp32.net/images/Heltec/WIFI-LoRa-32/Heltec_WIFI-LoRa-32_DiagramPinoutFromBottom.jpg
2017-11-06 15:27:46 +02:00
0xPIT
7890e1192b Allow chaining of methods for more concise code (#809) 2017-11-06 15:25:11 +02:00
Jochen Groppe
21026e2373 fix NodeMCU-32S .build.board property (#812)
The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx".

C macro names should never have a "-" sign.

* current: ARDUINO_NodeMCU-32S
* should be: ARDUINO_=NodeMCU_32S
2017-11-06 15:24:00 +02:00
Jochen Groppe
1b2eb443ef Fix compiler flags to be compatible with ESP8622/Arduino (#813)
* fix NodeMCU-32S .build.board property

The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx".

C macro names should never have a "-" sign.

* current: ARDUINO_NodeMCU-32S
* should be: ARDUINO_=NodeMCU_32S

* fix compiler flags to be compatible to ESP8622/Arduino

see also "fix NodeMCU-32S .build.board property" #812 (https://github.com/espressif/arduino-esp32/pull/812#issuecomment-341990261)

`-DARDUINO_BOARD={build.board}` **is missing**

* Revert "fix NodeMCU-32S .build.board property"

This reverts commit ea57b1496a2e87d3977a31a29a4cf7d63216f008.
2017-11-06 15:23:03 +02:00
davruet
126674c3b6 Fixes for zero length packet bug, buffer overflow in parseInt(), added end() method (#757)
* ArduinoOTA would stop receiving any packets if the port received a zero-length UDP packet, commonly sent by network scanners like nmap. Fixed to flush() after every call to parsePacket(), even if read length is 0.

Additionally, added length checking to fix a potential buffer overflow in parseInt().

Finally, added an end() method that stops the OTA listener and releases resources.

* Only end MDNS in end() if mdns mode is enabled.
2017-10-30 10:44:15 +01:00
Patas007
b7db2da17c Unicode support in get.py (#781)
Localized versions of Linux systems use Unicode characters in the names of standard directories like "Downloads".
2017-10-30 10:43:08 +01:00
Michael Ammann
a276ae0bf3 adjust partitions for 2MB (#780)
use minimal partitions
2017-10-30 10:29:10 +01:00
copercini
3dc30dce81 Add compatibility macros with esp8266 (#783) 2017-10-30 10:27:26 +01:00
Andreas Pokorny
36dba996c1 Extend HTTPClient to allow connecting with a client certificate (#788)
* Forward client certificate to wificlient secure

* remove comment
2017-10-30 09:37:33 +01:00
Michael Ammann
0768590332 Add new target u-blox nina-w10 (#771)
* Update boards.txt

* Create pins_arduino.h
2017-10-25 12:11:01 +02:00
me-no-dev
aa9111adfa Fix flash command for Windows and Linux 2017-10-24 20:38:55 +03:00
me-no-dev
84b8582acb Optimize esptool path for packaging and fix possible build errors in windows 2017-10-24 02:43:13 +03:00
me-no-dev
4f55293f59 change esptool path logic 2017-10-24 02:25:13 +03:00
Me No Dev
55289a45af Update IDF to 9274814 (#767)
* Update IDF to 9274814

* Fix error in i2c and Arduino
2017-10-24 00:21:00 +02:00
Jason K
95123681d5 Merge pull request #754 from stickbreaker/master
Correct 10bit Device address handling.
2017-10-23 15:25:19 -04:00
Jason K
11565343e6 Merge branch 'master' into master 2017-10-23 14:40:33 -04:00
Jason K
2a1a62a90a Merge pull request #751 from espressif/longReads
Add initial handling for long I2C reads.
2017-10-23 14:21:00 -04:00
me-no-dev
4470e28ca1 WiFiClientSecure fail if gethostbyname returns null 2017-10-23 16:19:46 +03:00
chuck todd
a695187de8 Correct 10bit Device address handling.
The existing code did not follow protocol with 10bit addressed devices.  Per _Philps/NXP Semiconductors UM10204 I2C-bus specification and user manual Rev. 6 4April2014_ pg.15 3.1.11 10-bit addressing:
~The first seven bits of the first byte are the combination of 1111 0xx of which the last two bits (xx) are the two Most-Significant Bits (MSB) of the 10-bit address; the eighth bit of the first byte is the R/!W! bit the determines the direction of the message~
2017-10-21 13:14:14 -06:00
Jason K
1270f40066 Add initial handling for long I2C reads. 2017-10-21 08:26:46 -04:00
Me No Dev
0c038b4063 Update WiFiGeneric.cpp
Missed definition
2017-10-21 09:50:43 +03:00
Me No Dev
43544d89c5 Run WiFi thread on the Arduino core
Fixes: https://github.com/espressif/arduino-esp32/issues/749

Works even when single core mode is selected
2017-10-21 09:47:24 +03:00
chuck todd
7eff707ba6 Fix Early return when Address NAK is received (#750)
The i2cWrite() function was returning to the app before the i2c transaction had completed.  This caused the next Wire() call to return a I2C_ERROR_BUSY.
2017-10-21 08:40:53 +02:00
me-no-dev
81f225a4c5 Fix ioctl undefined in latest IDF 2017-10-18 10:51:18 +02:00
rwaschhauser
c8ad79e3f3 Second occurace of parameter^Cfno-rtti removed (#736) 2017-10-17 05:38:05 +03:00
Testato
3261348e81 remove instead of delete (#730) 2017-10-16 21:27:19 +03:00
Ted Timmons
2f73dd7920 add alternate location of this directory (#732) 2017-10-16 21:26:59 +03:00
Me No Dev
7216977234 Update IDF to 3a271a4 (#735) 2017-10-16 21:25:41 +03:00