diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 6a657d6..8c87557 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -36,7 +36,7 @@ If applicable, add screenshots to help explain your problem. Please ensure to specify the following: * Arduino IDE version (e.g. 1.8.19) or Platform.io version -* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.4, ESP8266 core v3.0.2, ArduinoCore-mbed v3.1.1, etc.) +* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.5, ESP8266 core v3.0.2, ArduinoCore-mbed v3.3.0, etc.) * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce * Anything that might be relevant in your opinion, such as: @@ -49,7 +49,7 @@ Please ensure to specify the following: ``` Arduino IDE version: 1.8.19 RASPBERRY_PI_PICO board -ArduinoCore-mbed v3.1.1 +ArduinoCore-mbed v3.3.0 OS: Ubuntu 20.04 LTS Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a79bed1..9090d92 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p Please ensure to specify the following: * Arduino IDE version (e.g. 1.8.19) or Platform.io version -* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.4, ESP8266 core v3.0.2, ArduinoCore-mbed v3.1.1, etc.) +* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.5, ESP8266 core v3.0.2, ArduinoCore-mbed v3.3.0, etc.) * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce * Anything that might be relevant in your opinion, such as: @@ -28,7 +28,7 @@ Please ensure to specify the following: ``` Arduino IDE version: 1.8.19 RASPBERRY_PI_PICO board -ArduinoCore-mbed v3.1.1 +ArduinoCore-mbed v3.3.0 OS: Ubuntu 20.04 LTS Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux diff --git a/Packages_Patches/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh b/Packages_Patches/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh new file mode 100644 index 0000000..7fe71d6 --- /dev/null +++ b/Packages_Patches/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +portenta_h7_rules () { + echo "" + echo "# Portenta H7 bootloader mode UDEV rules" + echo "" +cat < /etc/udev/rules.d/49-portenta_h7.rules + +# reload udev rules +echo "Reload rules..." +udevadm trigger +udevadm control --reload-rules diff --git a/Packages_Patches/realtek/hardware/AmebaD/3.1.4/cores/ambd/avr/pgmspace.h b/Packages_Patches/realtek/hardware/AmebaD/3.1.4/cores/ambd/avr/pgmspace.h new file mode 100644 index 0000000..bf87a94 --- /dev/null +++ b/Packages_Patches/realtek/hardware/AmebaD/3.1.4/cores/ambd/avr/pgmspace.h @@ -0,0 +1,122 @@ +/* + pgmspace.h - Definitions for compatibility with AVR pgmspace macros + + Copyright (c) 2015 Arduino LLC + + Based on work of Paul Stoffregen on Teensy 3 (http://pjrc.com) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE +*/ + +#ifndef __PGMSPACE_H_ +#define __PGMSPACE_H_ 1 + +#include + +#define PROGMEM +#define PGM_P const char * +#define PSTR(str) (str) + +#define _SFR_BYTE(n) (n) + +typedef void prog_void; +typedef char prog_char; +typedef unsigned char prog_uchar; +typedef int8_t prog_int8_t; +typedef uint8_t prog_uint8_t; +typedef int16_t prog_int16_t; +typedef uint16_t prog_uint16_t; +typedef int32_t prog_int32_t; +typedef uint32_t prog_uint32_t; +typedef int64_t prog_int64_t; +typedef uint64_t prog_uint64_t; + +typedef const void* int_farptr_t; +typedef const void* uint_farptr_t; + +#define memchr_P(s, c, n) memchr((s), (c), (n)) +#define memcmp_P(s1, s2, n) memcmp((s1), (s2), (n)) +#define memccpy_P(dest, src, c, n) memccpy((dest), (src), (c), (n)) +#define memcpy_P(dest, src, n) memcpy((dest), (src), (n)) +#define memmem_P(haystack, haystacklen, needle, needlelen) memmem((haystack), (haystacklen), (needle), (needlelen)) +#define memrchr_P(s, c, n) memrchr((s), (c), (n)) +#define strcat_P(dest, src) strcat((dest), (src)) +#define strchr_P(s, c) strchr((s), (c)) +#define strchrnul_P(s, c) strchrnul((s), (c)) +#define strcmp_P(a, b) strcmp((a), (b)) +#define strcpy_P(dest, src) strcpy((dest), (src)) +#define strcasecmp_P(s1, s2) strcasecmp((s1), (s2)) +#define strcasestr_P(haystack, needle) strcasestr((haystack), (needle)) +#define strcspn_P(s, accept) strcspn((s), (accept)) +#define strlcat_P(s1, s2, n) strlcat((s1), (s2), (n)) +#define strlcpy_P(s1, s2, n) strlcpy((s1), (s2), (n)) +#define strlen_P(a) strlen((a)) +#define strnlen_P(s, n) strnlen((s), (n)) +#define strncmp_P(s1, s2, n) strncmp((s1), (s2), (n)) +#define strncasecmp_P(s1, s2, n) strncasecmp((s1), (s2), (n)) +#define strncat_P(s1, s2, n) strncat((s1), (s2), (n)) +#define strncpy_P(s1, s2, n) strncpy((s1), (s2), (n)) +#define strpbrk_P(s, accept) strpbrk((s), (accept)) +#define strrchr_P(s, c) strrchr((s), (c)) +#define strsep_P(sp, delim) strsep((sp), (delim)) +#define strspn_P(s, accept) strspn((s), (accept)) +#define strstr_P(a, b) strstr((a), (b)) +#define strtok_P(s, delim) strtok((s), (delim)) +#define strtok_rP(s, delim, last) strtok((s), (delim), (last)) + +#define strlen_PF(a) strlen((a)) +#define strnlen_PF(src, len) strnlen((src), (len)) +#define memcpy_PF(dest, src, len) memcpy((dest), (src), (len)) +#define strcpy_PF(dest, src) strcpy((dest), (src)) +#define strncpy_PF(dest, src, len) strncpy((dest), (src), (len)) +#define strcat_PF(dest, src) strcat((dest), (src)) +#define strlcat_PF(dest, src, len) strlcat((dest), (src), (len)) +#define strncat_PF(dest, src, len) strncat((dest), (src), (len)) +#define strcmp_PF(s1, s2) strcmp((s1), (s2)) +#define strncmp_PF(s1, s2, n) strncmp((s1), (s2), (n)) +#define strcasecmp_PF(s1, s2) strcasecmp((s1), (s2)) +#define strncasecmp_PF(s1, s2, n) strncasecmp((s1), (s2), (n)) +#define strstr_PF(s1, s2) strstr((s1), (s2)) +#define strlcpy_PF(dest, src, n) strlcpy((dest), (src), (n)) +#define memcmp_PF(s1, s2, n) memcmp((s1), (s2), (n)) + +#define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__) +#define snprintf_P(s, f, ...) snprintf((s), (f), __VA_ARGS__) + +#define pgm_read_byte(addr) (*(const unsigned char *)(addr)) +#define pgm_read_word(addr) (*(const unsigned short *)(addr)) +#define pgm_read_dword(addr) (*(const unsigned long *)(addr)) +#define pgm_read_float(addr) (*(const float *)(addr)) +#define pgm_read_ptr(addr) (*(const void **)(addr)) + +#define pgm_read_byte_near(addr) pgm_read_byte(addr) +#define pgm_read_word_near(addr) pgm_read_word(addr) +#define pgm_read_dword_near(addr) pgm_read_dword(addr) +#define pgm_read_float_near(addr) pgm_read_float(addr) +#define pgm_read_ptr_near(addr) pgm_read_ptr(addr) + +#define pgm_read_byte_far(addr) pgm_read_byte(addr) +#define pgm_read_word_far(addr) pgm_read_word(addr) +#define pgm_read_dword_far(addr) pgm_read_dword(addr) +#define pgm_read_float_far(addr) pgm_read_float(addr) +#define pgm_read_ptr_far(addr) pgm_read_ptr(addr) + +#define pgm_get_far_address(addr) (&(addr)) + +#endif diff --git a/README.md b/README.md index e3b518a..0deca51 100644 --- a/README.md +++ b/README.md @@ -232,10 +232,10 @@ This [**Ethernet_Generic** library](https://github.com/khoih-prog/Ethernet_Gener 6. [`Adafruit SAMD core 1.7.10+`](https://github.com/adafruit/ArduinoCore-samd) for SAMD ARM Cortex-M0+ and M4 boards (Nano 33 IoT, etc.). [![GitHub release](https://img.shields.io/github/release/adafruit/ArduinoCore-samd.svg)](https://github.com/adafruit/ArduinoCore-samd/releases/latest) 7. [`Seeeduino SAMD core 1.8.3+`](https://github.com/Seeed-Studio/ArduinoCore-samd) for SAMD21/SAMD51 boards (XIAO M0, Wio Terminal, etc.). [![Latest release](https://img.shields.io/github/release/Seeed-Studio/ArduinoCore-samd.svg)](https://github.com/Seeed-Studio/ArduinoCore-samd/releases/latest/) 8. [`Adafruit nRF52 v1.3.0+`](https://github.com/adafruit/Adafruit_nRF52_Arduino) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest) - 9. [`ESP32 Core 2.0.4+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/) + 9. [`ESP32 Core 2.0.5+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/) 10. [`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS. -11. [`ArduinoCore-mbed mbed_rp2040, mbed_nano, mbed_portenta core 3.1.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) **Portenta_H7, RP2040-based boards, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) -12. [`Earle Philhower's arduino-pico core v2.5.2+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) +11. [`ArduinoCore-mbed mbed_rp2040, mbed_nano, mbed_portenta core 3.3.0+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) **Portenta_H7, RP2040-based boards, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) +12. [`Earle Philhower's arduino-pico core v2.5.4+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) 13. [`Arduino megaAVR core 1.8.7+`](https://github.com/arduino/ArduinoCore-megaavr/releases) for Arduino megaAVR boards such as **Arduino UNO WiFi Rev2, AVR_NANO_EVERY, etc.** 14. [`Arduino Core for STM32 v2.3.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest) 15. [`SpenceKonde DxCore core 1.4.10+`](https://github.com/SpenceKonde/DxCore) for Arduino AVRDx boards. [![GitHub release](https://img.shields.io/github/release/SpenceKonde/DxCore.svg)](https://github.com/SpenceKonde/DxCore/releases/latest). Follow [**DxCore Installation**](https://github.com/SpenceKonde/DxCore/blob/master/Installation.md). @@ -479,12 +479,12 @@ With core after v1.5.0, this step is not necessary anymore thanks to the PR [Add #### 9. For Portenta_H7 boards using Arduino IDE in Linux - **To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh). + **To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh). Then run the following command using `sudo` ``` -$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.1.1 +$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0 $ chmod 755 portenta_post_install.sh $ sudo ./portenta_post_install.sh ``` @@ -497,9 +497,9 @@ This will create the file `/etc/udev/rules.d/49-portenta_h7.rules` as follows: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666" ``` -Supposing the ArduinoCore-mbed core version is 3.1.1. Now only one file must be copied into the directory: +Supposing the ArduinoCore-mbed core version is 3.3.0. Now only one file must be copied into the directory: -- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh` +- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh` Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz @@ -510,11 +510,11 @@ This file must be copied into the directory: #### 10. For RTL8720DN boards using AmebaD core - To avoid compile error relating to PROGMEM, you have to copy the file [Realtek AmebaD core pgmspace.h](Packages_Patches/realtek/hardware/AmebaD/3.1.3/cores/arduino/avr/pgmspace.h) into Realtek AmebaD directory (~/.arduino15/packages/realtek/hardware/AmebaD/3.1.3/cores/arduino/avr/pgmspace.h). + To avoid compile error relating to PROGMEM, you have to copy the file [Realtek AmebaD core pgmspace.h](Packages_Patches/realtek/hardware/AmebaD/3.1.4/cores/ambd/avr/pgmspace.h) into Realtek AmebaD directory (~/.arduino15/packages/realtek/hardware/AmebaD/3.1.4/cores/arduino/avr/pgmspace.h). -Supposing the Realtek AmebaD core version is 3.1.3. This file must be copied into the directory: +Supposing the Realtek AmebaD core version is 3.1.4. This file must be copied into the directory: -- `~/.arduino15/packages/realtek/hardware/AmebaD/3.1.3/cores/arduino/avr/pgmspace.h` +- `~/.arduino15/packages/realtek/hardware/AmebaD/3.1.4/cores/arduino/avr/pgmspace.h` Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz This file must be copied into the directory: @@ -900,7 +900,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating_ESP on ESP32_DEV with W5x00 using Ethernet_Generic Library on SPI -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:23 @@ -981,7 +981,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating_ESP_SPI2 on ESP32_DEV with W5x00 using Ethernet_Generic Library on SPI2 -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:13 @@ -1063,7 +1063,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on AVR Mega with W5x00 using Ethernet_Generic Library -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:51 @@ -1141,7 +1141,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on NRF52840_FEATHER with W5x00 using Ethernet_Generic Library -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:25 @@ -1221,7 +1221,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on SAM DUE with W5x00 using Ethernet_Generic Library -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:75 @@ -1301,7 +1301,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on ITSYBITSY_M4 with W5x00 using Ethernet_Generic Library -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:25 @@ -1381,7 +1381,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on NUCLEO_F767ZI with W5x00 using Ethernet_Generic Library -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:11 @@ -1462,7 +1462,7 @@ The following are debug terminal output when running example [UdpNTPClient](exam ``` Start UdpNTPClient on AVR Mega with W5x00 using Ethernet_Generic Library -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:51 @@ -1473,22 +1473,17 @@ SS:53 Using mac index = 2 Connected! IP address: 192.168.2.103 Speed: 100 MB, Duplex: FULL DUPLEX, Link status: LINK + UDP Packet received, size 48 -From 132.163.97.2, port 123 -Seconds since Jan 1 1900 = 3859592315 -Unix time = 1650603515 -The UTC time is 4:58:35 -UDP Packet received, size 48 -From 132.163.97.2, port 123 -Seconds since Jan 1 1900 = 3859592327 -Unix time = 1650603527 -The UTC time is 4:58:47 +From 132.163.97.3, port 123 +Seconds since Jan 1 1900 = 3872943720 +Unix time = 1663954920 +The UTC time is 17:42:00 UDP Packet received, size 48 -From 132.163.97.2, port 123 -Seconds since Jan 1 1900 = 3859592339 -Unix time = 1650603539 -The UTC time is 4:58:59 - +From 132.163.97.3, port 123 +Seconds since Jan 1 1900 = 3872943732 +Unix time = 1663954932 +The UTC time is 17:42:12 ``` --- @@ -1499,7 +1494,7 @@ The following are debug terminal output when running example [WebClient](example ``` Starting WebClient on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:19 @@ -1583,7 +1578,7 @@ The following are debug terminal output when running example [WebClient](example ``` Starting WebClient on RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 ========================= Currently Used SPI pinout: MOSI:19 @@ -1667,7 +1662,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating_RP2040_SPI1 on RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 15 [ETG] MISO: 12 @@ -1756,7 +1751,7 @@ The following are debug terminal output when running example [WebClient](example ``` Starting WebClient on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 19 [ETG] MISO: 16 @@ -1848,7 +1843,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on NUCLEO_L552ZE_Q with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 22 [ETG] MISO: 25 @@ -1935,7 +1930,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Start WebClientRepeating on NUCLEO_F767ZI with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 22 [ETG] MISO: 25 @@ -2021,7 +2016,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating_RP2040_SPI1 on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 15 [ETG] MISO: 12 @@ -2109,7 +2104,7 @@ The following are debug terminal output when running example [SetDHCPHostName](e ``` Starting SetDHCPHostName on WIZNET_5100S_EVB_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 19 [ETG] MISO: 16 @@ -2207,7 +2202,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on WIZNET_5500_EVB_PICO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 19 [ETG] MISO: 16 @@ -2296,7 +2291,7 @@ The following are debug terminal output when running example [WebClientRepeating ``` Starting WebClientRepeating on SAMD_FEATHER_M0_EXPRESS with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 29 [ETG] MISO: 28 @@ -2385,7 +2380,7 @@ The following are debug terminal output when running example [UdpNTPClient](exam ``` Start UdpNTPClient on SAMD_ZERO with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 23 [ETG] MISO: 22 @@ -2405,10 +2400,20 @@ Ethernet_Generic v2.6.0 Using mac index = 2 Connected! IP address: 192.168.2.92 UDP Packet received, size 48 -From 128.138.141.172, port 123 -Seconds since Jan 1 1900 = 3871504317 -Unix time = 1662515517 -The UTC time is 1:51:57 +From 132.163.97.3, port 123 +Seconds since Jan 1 1900 = 3872943852 +Unix time = 1663955052 +The UTC time is 17:44:12 +UDP Packet received, size 48 +From 132.163.97.3, port 123 +Seconds since Jan 1 1900 = 3872943864 +Unix time = 1663955064 +The UTC time is 17:44:24 +UDP Packet received, size 48 +From 132.163.97.3, port 123 +Seconds since Jan 1 1900 = 3872943876 +Unix time = 1663955076 +The UTC time is 17:44:36 ``` --- @@ -2419,7 +2424,7 @@ The following are debug terminal output when running example [UdpNTPClient](exam ``` Starting WebClientRepeating on Curiosity AVR_AVR128DA48 with W5x00 using Ethernet_Generic Library with Large Buffer -Ethernet_Generic v2.6.0 +Ethernet_Generic v2.6.1 [ETG] Default SPI pinout: [ETG] MOSI: 4 [ETG] MISO: 5 @@ -2590,6 +2595,7 @@ Many thanks for everyone for bug reporting, new feature suggesting, testing and 4. [Adafruit](https://github.com/adafruit) for [Ethernet2](https://github.com/adafruit/Ethernet2) library 5. [Stefan Staub](https://github.com/sstaub) for [Ethernet3](https://github.com/sstaub/Ethernet3) library 6. [proasnet](https://github.com/proasnet) to report issue [AdvancedWebServer example give me wrong ip HTTP EthernetWebServer is @ IP : 0.0.0.0 #62](https://github.com/khoih-prog/EthernetWebServer/issues/62) leading to version v2.5.1 to fix the issue with `SAMD Zero` and `W5100` shield +7. [victorsonntag](https://github.com/victorsonntag) to report issue [ESP32 - Wiznet W5200 problem #13](https://github.com/khoih-prog/Ethernet_Generic/discussions/13) leading to version v2.6.1 to fix the issue with `Wiznet W5200 / wiz820io` shield Many thanks to so many authors as listed in [AUTHORS](AUTHORS) @@ -2600,6 +2606,7 @@ Many thanks to so many authors as listed in [AUTHORS](AUTHORS) adafruit
⭐️ Adafruit

sstaub
⭐️ Stefan Staub

proasnet
proasnet

+ victorsonntag
victorsonntag

diff --git a/changelog.md b/changelog.md index 25e530d..f5876f9 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ * [Changelog](#changelog) + * [Releases v2.6.1](#releases-v261) * [Releases v2.6.0](#releases-v260) * [Releases v2.5.2](#releases-v252) * [Releases v2.5.1](#releases-v251) @@ -30,6 +31,11 @@ ## Changelog +### Releases v2.6.1 + +1. Fix bug for `Wiznet W5200 / wiz820io`. Check [ESP32 - Wiznet W5200 problem #13](https://github.com/khoih-prog/Ethernet_Generic/discussions/13) +2. Update `Packages' Patches` + ### Releases v2.6.0 1. Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using [DxCore](https://github.com/SpenceKonde/DxCore) diff --git a/library.json b/library.json index 9e05a08..e912115 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Ethernet_Generic", - "version": "2.6.0", + "version": "2.6.1", "keywords": "WebServer, Ethernet, SPI2, Teensy, SAMD, STM32, SAM DUE, nRF52, ESP32, ESP8266, rpi-pico, rp2040, W5x00, W5500, LAN, Wiznet, WIZ550io, WIZ850io, USR-ES1", "description": "Simple Ethernet library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, W5100S. With this library, you can use the Arduino Ethernet (shield or board) to connect to Internet. The library provides both Client and server functionalities. The library permits you to connect to a local network also with DHCP and to resolve DNS. The h-only library now supporting SPI1/SPI2, EthernetLarge, Ethernet2 and Ethernet3 features by simply changing definitions in the sketch. RASPBERRY_PI_PICO using arduino-pico core now can use SPI1. Now STM32, Arduino_mbed boards can use any custom hardware / software SPI", "authors": [ diff --git a/library.properties b/library.properties index 0f2aa1c..e5eae19 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Ethernet_Generic -version=2.6.0 +version=2.6.1 author=Various (see AUTHORS file for details) maintainer=Khoi Hoang sentence=Simple Ethernet library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, W5100S diff --git a/platformio/platformio.ini b/platformio/platformio.ini index f3704b3..fc1879d 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -40,6 +40,7 @@ upload_speed = 921600 ;monitor_port = COM11 ; Checks for the compatibility with frameworks and dev/platforms +; You have to experiment to see which combination is working for you lib_compat_mode = strict lib_ldf_mode = chain+ ;lib_ldf_mode = deep+ diff --git a/src/Dhcp.h b/src/Dhcp.h index 0853993..ba235aa 100644 --- a/src/Dhcp.h +++ b/src/Dhcp.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // DHCP Library v0.3 - April 25, 2009 diff --git a/src/Dhcp_Impl.h b/src/Dhcp_Impl.h index b92e5e2..cd75fef 100644 --- a/src/Dhcp_Impl.h +++ b/src/Dhcp_Impl.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // DHCP Library v0.3 - April 25, 2009 diff --git a/src/Dns.h b/src/Dns.h index 03c9bce..9d9ab8c 100644 --- a/src/Dns.h +++ b/src/Dns.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // Arduino DNS client for WizNet5100-based Ethernet shield diff --git a/src/Dns_Impl.h b/src/Dns_Impl.h index a68d661..f2354e2 100644 --- a/src/Dns_Impl.h +++ b/src/Dns_Impl.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // Arduino DNS client for WizNet5100-based Ethernet shield // (c) Copyright 2009-2010 MCQN Ltd. diff --git a/src/EthernetClient.h b/src/EthernetClient.h index 96efed5..90951da 100644 --- a/src/EthernetClient.h +++ b/src/EthernetClient.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // This file is in the public domain. No copyright is claimed. diff --git a/src/EthernetClient_Impl.h b/src/EthernetClient_Impl.h index 3dfc23e..2041ec1 100644 --- a/src/EthernetClient_Impl.h +++ b/src/EthernetClient_Impl.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once diff --git a/src/EthernetServer.h b/src/EthernetServer.h index b96c4e8..3116f10 100644 --- a/src/EthernetServer.h +++ b/src/EthernetServer.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // This file is in the public domain. No copyright is claimed. diff --git a/src/EthernetServer_Impl.h b/src/EthernetServer_Impl.h index b29f6c0..4a46904 100644 --- a/src/EthernetServer_Impl.h +++ b/src/EthernetServer_Impl.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once diff --git a/src/EthernetUdp.h b/src/EthernetUdp.h index 35e2b26..ce68271 100644 --- a/src/EthernetUdp.h +++ b/src/EthernetUdp.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ /* * Udp.cpp: Library to send/receive UDP packets with the Arduino ethernet shield. diff --git a/src/EthernetUdp_Impl.h b/src/EthernetUdp_Impl.h index 06a4e0c..f7669db 100644 --- a/src/EthernetUdp_Impl.h +++ b/src/EthernetUdp_Impl.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ /* * Udp.cpp: Library to send/receive UDP packets with the Arduino ethernet shield. diff --git a/src/Ethernet_Generic.h b/src/Ethernet_Generic.h index dfc877a..f031d30 100644 --- a/src/Ethernet_Generic.h +++ b/src/Ethernet_Generic.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once @@ -58,13 +59,13 @@ ///////////////////////////////////////////////////////// -#define ETHERNET_GENERIC_VERSION "Ethernet_Generic v2.6.0" +#define ETHERNET_GENERIC_VERSION "Ethernet_Generic v2.6.1" #define ETHERNET_GENERIC_VERSION_MAJOR 2 #define ETHERNET_GENERIC_VERSION_MINOR 6 -#define ETHERNET_GENERIC_VERSION_PATCH 0 +#define ETHERNET_GENERIC_VERSION_PATCH 1 -#define ETHERNET_GENERIC_VERSION_INT 2006000 +#define ETHERNET_GENERIC_VERSION_INT 2006001 ///////////////////////////////////////////////////////// diff --git a/src/Ethernet_Generic.hpp b/src/Ethernet_Generic.hpp index 952a2be..30f9055 100644 --- a/src/Ethernet_Generic.hpp +++ b/src/Ethernet_Generic.hpp @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once diff --git a/src/Ethernet_Generic_Debug.h b/src/Ethernet_Generic_Debug.h index 2c0efb7..c8d35c0 100644 --- a/src/Ethernet_Generic_Debug.h +++ b/src/Ethernet_Generic_Debug.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once diff --git a/src/Ethernet_Generic_Impl.h b/src/Ethernet_Generic_Impl.h index 8eba9f7..db9a611 100644 --- a/src/Ethernet_Generic_Impl.h +++ b/src/Ethernet_Generic_Impl.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once diff --git a/src/socket_Impl.h b/src/socket_Impl.h index 5dccf4d..05327db 100644 --- a/src/socket_Impl.h +++ b/src/socket_Impl.h @@ -32,7 +32,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -48,6 +48,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once diff --git a/src/utility/w5100.h b/src/utility/w5100.h index 96a3716..abcaec0 100644 --- a/src/utility/w5100.h +++ b/src/utility/w5100.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ // w5100.h contains private W5x00 hardware "driver" level definitions diff --git a/src/utility/w5100_Impl.h b/src/utility/w5100_Impl.h index 3e4b650..bf0fb9b 100644 --- a/src/utility/w5100_Impl.h +++ b/src/utility/w5100_Impl.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer - Version: 2.6.0 + Version: 2.6.1 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -29,6 +29,7 @@ 2.5.1 K Hoang 01/09/2022 Slow SPI clock for old W5100 shield using SAMD Zero 2.5.2 K Hoang 06/09/2022 Slow SPI clock only when necessary. Improve support for SAMD21 2.6.0 K Hoang 11/09/2022 Add support to AVR Dx (AVR128Dx, AVR64Dx, AVR32Dx, etc.) using DxCore + 2.6.1 K Hoang 23/09/2022 Fix bug for W5200 *****************************************************************************************************************************/ #pragma once @@ -327,8 +328,9 @@ uint8_t W5100Class::init(uint8_t socketNumbers, uint8_t new_ss_pin) initSS(); resetSS(); - // New - softReset(); + // Removed from v2.6.1 for W5200. Tested OK with W5500, W5100S, W5100 + // Check https://github.com/khoih-prog/Ethernet_Generic/discussions/13 + //softReset(); ////// // From #define SPI_ETHERNET_SETTINGS SPISettings(14000000, MSBFIRST, SPI_MODE0)