W5500lwIP icon indicating copy to clipboard operation
W5500lwIP copied to clipboard

ESP32 support ?

Open psykokwak-com opened this issue 6 years ago • 29 comments

Hi, Do you plan to add ESP32 support ? I tried to build it but it failed.

Jyce@XPS15 MINGW32 ~/esp/arduino
$ make -j4 flash
CXX build/main/w5500.o
In file included from C:/msys32/home/Jyce/esp/esp-idf/components/esp32/include/xtensa/xtruntime.h:30:0,
                 from C:/msys32/home/Jyce/esp/esp-idf/components/freertos/include/freertos/portmacro.h:81,
                 from C:/msys32/home/Jyce/esp/esp-idf/components/freertos/include/freertos/portable.h:94,
                 from C:/msys32/home/Jyce/esp/esp-idf/components/freertos/include/freertos/FreeRTOS.h:105,
                 from C:/msys32/home/Jyce/esp/arduino/components/arduino/cores/esp32/Arduino.h:32,
                 from C:/msys32/home/Jyce/esp/arduino/main/w5500.h:37,
                 from C:/msys32/home/Jyce/esp/arduino/main/w5500.cpp:33:
C:/msys32/home/Jyce/esp/esp-idf/components/esp32/include/xtensa/config/specreg.h:102:13: error: expected identifier before numeric constant
 #define MR  32
             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:300:9: note: in expansion of macro 'MR'
         MR = 0x0000,        ///< Mode Register address (R/W)
         ^
C:/msys32/home/Jyce/esp/esp-idf/components/esp32/include/xtensa/config/specreg.h:102:13: error: expected '}' before numeric constant
 #define MR  32
             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:300:9: note: in expansion of macro 'MR'
         MR = 0x0000,        ///< Mode Register address (R/W)
         ^
C:/msys32/home/Jyce/esp/esp-idf/components/esp32/include/xtensa/config/specreg.h:102:13: error: expected unqualified-id before numeric constant
 #define MR  32
             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:300:9: note: in expansion of macro 'MR'
         MR = 0x0000,        ///< Mode Register address (R/W)
         ^
In file included from C:/msys32/home/Jyce/esp/arduino/main/w5500.cpp:33:0:
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setMR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:459:23: error: 'BlockSelectCReg' was not declared in this scope
         wizchip_write(BlockSelectCReg, MR, mode);
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:459:48: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectCReg, MR, mode);
                                                ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getMR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:468:29: error: 'BlockSelectCReg' was not declared in this scope
         return wizchip_read(BlockSelectCReg, MR);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:468:48: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectCReg, MR);
                                                ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSHAR(const uint8_t*)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:477:27: error: 'BlockSelectCReg' was not declared in this scope
         wizchip_write_buf(BlockSelectCReg, SHAR, macaddr, 6);
                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:477:44: error: 'SHAR' was not declared in this scope
         wizchip_write_buf(BlockSelectCReg, SHAR, macaddr, 6);
                                            ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:477:60: error: 'wizchip_write_buf' was not declared in this scope
         wizchip_write_buf(BlockSelectCReg, SHAR, macaddr, 6);
                                                            ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void getSHAR(uint8_t*)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:486:26: error: 'BlockSelectCReg' was not declared in this scope
         wizchip_read_buf(BlockSelectCReg, SHAR, macaddr, 6);
                          ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:486:43: error: 'SHAR' was not declared in this scope
         wizchip_read_buf(BlockSelectCReg, SHAR, macaddr, 6);
                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:486:59: error: 'wizchip_read_buf' was not declared in this scope
         wizchip_read_buf(BlockSelectCReg, SHAR, macaddr, 6);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setIR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:495:23: error: 'BlockSelectCReg' was not declared in this scope
         wizchip_write(BlockSelectCReg, IR, (ir & 0xF0));
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:495:40: error: 'IR' was not declared in this scope
         wizchip_write(BlockSelectCReg, IR, (ir & 0xF0));
                                        ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:495:55: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectCReg, IR, (ir & 0xF0));
                                                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getIR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:504:29: error: 'BlockSelectCReg' was not declared in this scope
         return wizchip_read(BlockSelectCReg, IR) & 0xF0;
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:504:46: error: 'IR' was not declared in this scope
         return wizchip_read(BlockSelectCReg, IR) & 0xF0;
                                              ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:504:48: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectCReg, IR) & 0xF0;
                                                ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setIMR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:513:23: error: 'BlockSelectCReg' was not declared in this scope
         wizchip_write(BlockSelectCReg, _IMR_, imr);
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:513:40: error: '_IMR_' was not declared in this scope
         wizchip_write(BlockSelectCReg, _IMR_, imr);
                                        ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:513:50: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectCReg, _IMR_, imr);
                                                  ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getIMR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:522:29: error: 'BlockSelectCReg' was not declared in this scope
         return wizchip_read(BlockSelectCReg, _IMR_);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:522:46: error: '_IMR_' was not declared in this scope
         return wizchip_read(BlockSelectCReg, _IMR_);
                                              ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:522:51: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectCReg, _IMR_);
                                                   ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setPHYCFGR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:531:23: error: 'BlockSelectCReg' was not declared in this scope
         wizchip_write(BlockSelectCReg, PHYCFGR, phycfgr);
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:531:40: error: 'PHYCFGR' was not declared in this scope
         wizchip_write(BlockSelectCReg, PHYCFGR, phycfgr);
                                        ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:531:56: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectCReg, PHYCFGR, phycfgr);
                                                        ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getPHYCFGR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:540:29: error: 'BlockSelectCReg' was not declared in this scope
         return wizchip_read(BlockSelectCReg, PHYCFGR);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:540:46: error: 'PHYCFGR' was not declared in this scope
         return wizchip_read(BlockSelectCReg, PHYCFGR);
                                              ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:540:53: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectCReg, PHYCFGR);
                                                     ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getVERSIONR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:548:29: error: 'BlockSelectCReg' was not declared in this scope
         return wizchip_read(BlockSelectCReg, VERSIONR);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:548:46: error: 'VERSIONR' was not declared in this scope
         return wizchip_read(BlockSelectCReg, VERSIONR);
                                              ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:548:54: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectCReg, VERSIONR);
                                                      ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_MR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:557:23: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_MR, mr);
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:557:49: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_MR, mr);
                                                 ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_MR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:566:29: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_MR);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:566:51: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_MR);
                                                   ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_CR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:582:29: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_CR);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:582:51: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_CR);
                                                   ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_IR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:591:23: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_IR, (ir & 0x1F));
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:591:58: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_IR, (ir & 0x1F));
                                                          ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_IR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:600:30: error: 'BlockSelectSReg' was not declared in this scope
         return (wizchip_read(BlockSelectSReg, Sn_IR) & 0x1F);
                              ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:600:52: error: 'wizchip_read' was not declared in this scope
         return (wizchip_read(BlockSelectSReg, Sn_IR) & 0x1F);
                                                    ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_IMR(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:609:23: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_IMR, (imr & 0x1F));
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:609:60: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_IMR, (imr & 0x1F));
                                                            ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_IMR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:618:30: error: 'BlockSelectSReg' was not declared in this scope
         return (wizchip_read(BlockSelectSReg, Sn_IMR) & 0x1F);
                              ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:618:53: error: 'wizchip_read' was not declared in this scope
         return (wizchip_read(BlockSelectSReg, Sn_IMR) & 0x1F);
                                                     ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_SR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:626:29: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_SR);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:626:51: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_SR);
                                                   ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_RXBUF_SIZE(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:635:23: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_RXBUF_SIZE, rxbufsize);
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:635:64: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_RXBUF_SIZE, rxbufsize);
                                                                ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_RXBUF_SIZE()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:644:29: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_RXBUF_SIZE);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:644:59: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_RXBUF_SIZE);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_TXBUF_SIZE(uint8_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:653:23: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_TXBUF_SIZE, txbufsize);
                       ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:653:64: error: 'wizchip_write' was not declared in this scope
         wizchip_write(BlockSelectSReg, Sn_TXBUF_SIZE, txbufsize);
                                                                ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint8_t getSn_TXBUF_SIZE()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:662:29: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_TXBUF_SIZE);
                             ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:662:59: error: 'wizchip_read' was not declared in this scope
         return wizchip_read(BlockSelectSReg, Sn_TXBUF_SIZE);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint16_t getSn_TX_RD()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:670:34: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_TX_RD);
                                  ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:670:59: error: 'wizchip_read_word' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_TX_RD);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_TX_WR(uint16_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:679:28: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write_word(BlockSelectSReg, Sn_TX_WR, txwr);
                            ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:679:59: error: 'wizchip_write_word' was not declared in this scope
         wizchip_write_word(BlockSelectSReg, Sn_TX_WR, txwr);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint16_t getSn_TX_WR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:688:34: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_TX_WR);
                                  ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:688:59: error: 'wizchip_read_word' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_TX_WR);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'void setSn_RX_RD(uint16_t)':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:697:28: error: 'BlockSelectSReg' was not declared in this scope
         wizchip_write_word(BlockSelectSReg, Sn_RX_RD, rxrd);
                            ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:697:59: error: 'wizchip_write_word' was not declared in this scope
         wizchip_write_word(BlockSelectSReg, Sn_RX_RD, rxrd);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint16_t getSn_RX_RD()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:706:34: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_RX_RD);
                                  ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:706:59: error: 'wizchip_read_word' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_RX_RD);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: In function 'uint16_t getSn_RX_WR()':
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:714:34: error: 'BlockSelectSReg' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_RX_WR);
                                  ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:714:59: error: 'wizchip_read_word' was not declared in this scope
         return wizchip_read_word(BlockSelectSReg, Sn_RX_WR);
                                                           ^
C:/msys32/home/Jyce/esp/arduino/main/w5500.h: At global scope:
C:/msys32/home/Jyce/esp/arduino/main/w5500.h:716:1: error: expected declaration before '}' token
 };
 ^
make[1]: *** [/home/Jyce/esp/esp-idf/make/component_wrapper.mk:285: w5500.o] Error 1
make: *** [C:/msys32/home/Jyce/esp/esp-idf/make/project.mk:467: component-main-build] Error 2
make: *** Attente des tâches non terminées....

Jyce@XPS15 MINGW32 ~/esp/arduino

psykokwak-com avatar Jun 05 '18 14:06 psykokwak-com