Edzelf / Esp-radio

Internet radio based on Esp8266 and VS1053.
MIT License
620 stars 201 forks source link

How to install the ESP-Radio to ESP32 board? #150

Open wieb18 opened 5 years ago

wieb18 commented 5 years ago

Hello,

I am very very new to Arduino, just few days ago bought new ESP32 and VS1053 boards.

esp32

vs1053

Try installing ESP-Radio but never passed Arduino Compiler (although already choosed DUMMYTFT, didn't buy any LCD yet).

arduino

The error message:

Arduino: 1.8.7 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default, QIO, 80MHz, 4MB (32Mb), 115200, Info"

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/interrupt.h:38:0,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/io.h:635:6: warning: #warning "device type not defined" [-Wcpp]

 #    warning "device type not defined"

      ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:0:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:83:0: warning: "sei" redefined

 #define sei()

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/interrupt.h:81:0: note: this is the location of the previous definition

 # define sei()  __asm__ __volatile__ ("sei" ::: "memory")

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:0:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:84:0: warning: "cli" redefined

 #define cli()

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/interrupt.h:99:0: note: this is the location of the previous definition

 # define cli()  __asm__ __volatile__ ("cli" ::: "memory")

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:0:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:106:0: warning: "_BV" redefined

 #define _BV(b) (1UL << (b))

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/io.h:99:0,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/interrupt.h:38,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/sfr_defs.h:208:0: note: this is the location of the previous definition

 #define _BV(bit) (1 << (bit))

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:32:0: warning: "PROGMEM" redefined

 #define PROGMEM

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:113:0: note: this is the location of the previous definition

 #define PROGMEM __ATTR_PROGMEM__

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:36:0: warning: "PSTR" redefined

 #define PSTR(s)       (s)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:408:0: note: this is the location of the previous definition

 # define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:37:0: warning: "_SFR_BYTE" redefined

 #define _SFR_BYTE(n)  (n)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/io.h:99:0,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/interrupt.h:38,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/sfr_defs.h:190:0: note: this is the location of the previous definition

 #define _SFR_BYTE(sfr) _MMIO_BYTE(_SFR_ADDR(sfr))

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:39:0: warning: "pgm_read_byte" redefined

 #define pgm_read_byte(addr)   (*(const unsigned char *)(addr))

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1055:0: note: this is the location of the previous definition

 #define pgm_read_byte(address_short)    pgm_read_byte_near(address_short)

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:40:0: warning: "pgm_read_word" redefined

 #define pgm_read_word(addr) ({ \

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1064:0: note: this is the location of the previous definition

 #define pgm_read_word(address_short)    pgm_read_word_near(address_short)

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:44:0: warning: "pgm_read_dword" redefined

 #define pgm_read_dword(addr) ({ \

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1073:0: note: this is the location of the previous definition

 #define pgm_read_dword(address_short)   pgm_read_dword_near(address_short)

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:48:0: warning: "pgm_read_float" redefined

 #define pgm_read_float(addr) ({ \

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1082:0: note: this is the location of the previous definition

 #define pgm_read_float(address_short)   pgm_read_float_near(address_short)

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:52:0: warning: "pgm_read_ptr" redefined

 #define pgm_read_ptr(addr) ({ \

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1091:0: note: this is the location of the previous definition

 #define pgm_read_ptr(address_short)     pgm_read_ptr_near(address_short)

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:57:0: warning: "pgm_read_byte_near" redefined

 #define pgm_read_byte_near(addr)  pgm_read_byte(addr)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:645:0: note: this is the location of the previous definition

 #define pgm_read_byte_near(address_short) __LPM((uint16_t)(address_short))

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:58:0: warning: "pgm_read_word_near" redefined

 #define pgm_read_word_near(addr)  pgm_read_word(addr)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:653:0: note: this is the location of the previous definition

 #define pgm_read_word_near(address_short) __LPM_word((uint16_t)(address_short))

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:59:0: warning: "pgm_read_dword_near" redefined

 #define pgm_read_dword_near(addr) pgm_read_dword(addr)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:661:0: note: this is the location of the previous definition

 #define pgm_read_dword_near(address_short) \

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:60:0: warning: "pgm_read_float_near" redefined

 #define pgm_read_float_near(addr) pgm_read_float(addr)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:670:0: note: this is the location of the previous definition

 #define pgm_read_float_near(address_short) \

 ^

In file included from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/WString.h:29:0,

                 from C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:150,

                 from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/pgmspace.h:61:0: warning: "pgm_read_ptr_near" redefined

 #define pgm_read_ptr_near(addr)   pgm_read_ptr(addr)

 ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:679:0: note: this is the location of the previous definition

 #define pgm_read_ptr_near(address_short) \

 ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:260:2: error: #error This version of SoftwareSerial supports only 20, 16 and 8MHz processors

 #error This version of SoftwareSerial supports only 20, 16 and 8MHz processors

  ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:42:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1529:25: warning: 'strlen_PF' initialized and declared 'extern'

 extern size_t strlen_PF(uint_farptr_t src) __ATTR_CONST__; /* program memory can't change */

                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1529:25: error: 'uint_farptr_t' was not declared in this scope

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:94:49: warning: attributes after parenthesized initializer ignored [-Wattributes]

 #define __ATTR_CONST__ __attribute__((__const__))

                                                 ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1529:44: note: in expansion of macro '__ATTR_CONST__'

 extern size_t strlen_PF(uint_farptr_t src) __ATTR_CONST__; /* program memory can't change */

                                            ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1545:26: warning: 'strnlen_PF' initialized and declared 'extern'

 extern size_t strnlen_PF(uint_farptr_t src, size_t len) __ATTR_CONST__; /* program memory can't change */

                          ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1545:26: error: 'uint_farptr_t' was not declared in this scope

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1545:52: error: expected primary-expression before 'len'

 extern size_t strnlen_PF(uint_farptr_t src, size_t len) __ATTR_CONST__; /* program memory can't change */

                                                    ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:94:49: warning: attributes after parenthesized initializer ignored [-Wattributes]

 #define __ATTR_CONST__ __attribute__((__const__))

                                                 ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1545:57: note: in expansion of macro '__ATTR_CONST__'

 extern size_t strnlen_PF(uint_farptr_t src, size_t len) __ATTR_CONST__; /* program memory can't change */

                                                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:94:49: error: expression list treated as compound expression in initializer [-fpermissive]

 #define __ATTR_CONST__ __attribute__((__const__))

                                                 ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1545:57: note: in expansion of macro '__ATTR_CONST__'

 extern size_t strnlen_PF(uint_farptr_t src, size_t len) __ATTR_CONST__; /* program memory can't change */

                                                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1560:36: error: 'uint_farptr_t' has not been declared

 extern void *memcpy_PF(void *dest, uint_farptr_t src, size_t len);

                                    ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1575:36: error: 'uint_farptr_t' has not been declared

 extern char *strcpy_PF(char *dest, uint_farptr_t src);

                                    ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1595:37: error: 'uint_farptr_t' has not been declared

 extern char *strncpy_PF(char *dest, uint_farptr_t src, size_t len);

                                     ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1611:36: error: 'uint_farptr_t' has not been declared

 extern char *strcat_PF(char *dest, uint_farptr_t src);

                                    ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1632:37: error: 'uint_farptr_t' has not been declared

 extern size_t strlcat_PF(char *dst, uint_farptr_t src, size_t siz);

                                     ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1649:37: error: 'uint_farptr_t' has not been declared

 extern char *strncat_PF(char *dest, uint_farptr_t src, size_t len);

                                     ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1665:38: error: 'uint_farptr_t' has not been declared

 extern int strcmp_PF(const char *s1, uint_farptr_t s2) __ATTR_PURE__;

                                      ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1682:39: error: 'uint_farptr_t' has not been declared

 extern int strncmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__;

                                       ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1698:42: error: 'uint_farptr_t' has not been declared

 extern int strcasecmp_PF(const char *s1, uint_farptr_t s2) __ATTR_PURE__;

                                          ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1716:43: error: 'uint_farptr_t' has not been declared

 extern int strncasecmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__;

                                           ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1732:40: error: 'uint_farptr_t' has not been declared

 extern char *strstr_PF(const char *s1, uint_farptr_t s2);

                                        ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1744:37: error: 'uint_farptr_t' has not been declared

 extern size_t strlcpy_PF(char *dst, uint_farptr_t src, size_t siz);

                                     ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master/avr/pgmspace.h:1760:36: error: 'uint_farptr_t' has not been declared

 extern int memcmp_PF(const void *, uint_farptr_t, size_t) __ATTR_PURE__;

                                    ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp: In member function 'void SoftwareSerial::setTX(uint8_t)':

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:493:25: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment

   _transmitPortRegister = portOutputRegister(port);

                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp: In member function 'void SoftwareSerial::setRX(uint8_t)':

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:504:24: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment

   _receivePortRegister = portInputRegister(port);

                        ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:515:31: error: 'table' was not declared in this scope

   for (unsigned i=0; i<sizeof(table)/sizeof(table[0]); ++i)

                               ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:531:38: error: 'digitalPinToPCICR' was not declared in this scope

     if (digitalPinToPCICR(_receivePin))

                                      ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:533:78: error: 'digitalPinToPCICRbit' was not declared in this scope

       *digitalPinToPCICR(_receivePin) |= _BV(digitalPinToPCICRbit(_receivePin));

                                                                              ^

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:106:25: note: in definition of macro '_BV'

 #define _BV(b) (1UL << (b))

                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:534:37: error: 'digitalPinToPCMSK' was not declared in this scope

       *digitalPinToPCMSK(_receivePin) |= _BV(digitalPinToPCMSKbit(_receivePin));

                                     ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:534:78: error: 'digitalPinToPCMSKbit' was not declared in this scope

       *digitalPinToPCMSK(_receivePin) |= _BV(digitalPinToPCMSKbit(_receivePin));

                                                                              ^

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:106:25: note: in definition of macro '_BV'

 #define _BV(b) (1UL << (b))

                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp: In member function 'void SoftwareSerial::end()':

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:549:36: error: 'digitalPinToPCMSK' was not declared in this scope

   if (digitalPinToPCMSK(_receivePin))

                                    ^

In file included from C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:43:0:

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:550:77: error: 'digitalPinToPCMSKbit' was not declared in this scope

     *digitalPinToPCMSK(_receivePin) &= ~_BV(digitalPinToPCMSKbit(_receivePin));

                                                                             ^

C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/Arduino.h:106:25: note: in definition of macro '_BV'

 #define _BV(b) (1UL << (b))

                         ^

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp: In member function 'virtual size_t SoftwareSerial::write(uint8_t)':

C:\Users\wieb\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:590:26: error: 'XMIT_START_ADJUSTMENT' was not declared in this scope

   tunedDelay(_tx_delay + XMIT_START_ADJUSTMENT);

                          ^

Multiple libraries were found for "SD.h"
 Used: C:\Users\wieb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SDx
exit status 1
Error compiling for board ESP32 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This ESP-Radio using tons of library and I managed fill all the missing library files one by one. But the last compiler error above , I don't know how to solve it.

How to install the ESP-Radio to my ESP32 board?

Maybe my question is very dumb because I could see a lot people done installing without any issues. But I am sure there is many people like me who are very very new to Arduino and has the same issue like me.

Any help very appreciated and thanks in advance.

Edzelf commented 5 years ago

All errors point to softserial. That is not used in this program. Remove you softserial library and try to compile a simple example like "blinky" first.

wieb18 commented 5 years ago

Edzelf... thanks a lot for the guidance, finally ESP32-Radio able correctly compiled.

Previous error because of my mistake which include Nextion default display on the first run, then changed to DUMMYTFT on the last minute. That is why the compiler producing error because its still loaded with Nextion Display library which doesn't use anymore.

Maybe anyone experiencing issue like myself, here is the step for installing ESP32-Radio:

2018-11-25_15-17-50

  1. First... choose your display to prevent compiler error. If no display (like myself) then choose DUMMYTFT.

2018-11-25_15-19-30

  1. Load Esp32_radio_init.ino to Arduino IDE

2018-11-25_15-20-16

  1. Change Esp32_radio_init.ino Wifi credential to yours own Wifi network

2018-11-25_16-32-16

  1. Upload Esp32_radio_init.ino to ESP32

2018-11-25_16-28-02

  1. Finally... upload ESP32-Radio.ino to ESP32

Here is my Serial output:

D: Starting ESP32-radio running on CPU 1 at 240 MHz.  Version Thu, 04 Oct 2018 07:22:32 GMT.  Free memory 233752
D: Display type is DUMMYTFT
D: Partition nvs found, 20480 bytes
D: Read 31 keys from NVS
D: pin_ir set to -1
D: pin_enc_clk set to -1
D: pin_enc_dt set to -1
D: pin_enc_sw set to -1
D: pin_tft_cs set to -1
D: pin_tft_dc set to -1
D: pin_tft_scl set to -1
D: pin_tft_sda set to -1
D: pin_tft_bl set to -1
D: pin_tft_blx set to -1
D: pin_sd_cs set to -1
D: pin_vs_cs set to -1
D: pin_vs_dcs set to -1
D: pin_vs_dreq set to -1
D: pin_shutdown set to -1
D: pin_shutdownx set to -1
D: pin_spi_sck set to 18
D: pin_spi_miso set to 19
D: pin_spi_mosi set to 23
D: GPIO0 is HIGH
D: GPIO2 is HIGH
D: GPIO4 is HIGH
D: GPIO5 is HIGH
D: GPIO12 is HIGH
D: GPIO13 is HIGH
D: GPIO14 is HIGH
D: GPIO15 is HIGH
D: GPIO16 is HIGH
D: GPIO17 is HIGH
D: GPIO18 is HIGH
D: GPIO19 is HIGH
D: GPIO21 is HIGH
D: GPIO22 is HIGH
D: GPIO23 is HIGH
D: GPIO25 is HIGH
D: GPIO26 is HIGH
D: GPIO27 is HIGH
D: GPIO32 is HIGH
D: GPIO33 is HIGH
D: GPIO34 is LOW, probably no PULL-UP
D: GPIO35 is LOW, probably no PULL-UP
D: GPIO39 is LOW, probably no PULL-UP
D: gpio_00 will execute uppreset = 1
D: gpio_12 will execute upvolume = 2
D: gpio_13 will execute downvolume = 2
D: Create list with acceptable WiFi networks
D: Added BRAYCHUA to list of networks
D: Added BRAYCHUA to list of networks
D: End adding networks
D: Scan Networks
D: Scan completed
D: Number of available networks: 3
D:  1 - BRAYCHUA                  Signal: -49 dBm, Encryption WPA_WPA2_PSK, Acceptable
D:  2 - BRAYCHUA                  Signal: -84 dBm, Encryption WPA_WPA2_PSK, Acceptable
D:  3 - BRAYCHUA                  Signal: -89 dBm, Encryption WPA_WPA2_PSK, Acceptable
D: End of list
D: Command: clk_dst with parameter 1
D: Command: clk_offset with parameter 1
D: Command: clk_server with parameter pool.ntp.org
D: Command: gpio_00 with parameter uppreset = 1
D: Command: gpio_12 with parameter upvolume = 2
D: Command: gpio_13 with parameter downvolume = 2
D: Command: mqttbroker with parameter none
D: Command: mqttpasswd with parameter *******
D: Command: mqttport with parameter 1883
D: Command: mqtttpreset with parameter none
D: Command: mqttuser with parameter none
D: Command: preset with parameter 6
D: Command: preset_00 with parameter 109.206.96.34:8100
D: Command: preset_01 with parameter airspectrum.cdnstream1.com:8114/1648_128
D: Command: preset_02 with parameter us2.internet-radio.com:8050
D: Command: preset_03 with parameter airspectrum.cdnstream1.com:8000/1261_192
D: Command: preset_04 with parameter airspectrum.cdnstream1.com:8008/1604_128
D: Command: preset_05 with parameter us1.internet-radio.com:8105
D: Command: preset_06 with parameter icecast.omroep.nl:80/radio1-bb-mp3
D: Command: preset_07 with parameter 205.164.62.15:10032
D: Command: preset_08 with parameter skonto.ls.lv:8002/mp3
D: Command: preset_09 with parameter 94.23.66.155:8106
D: Command: preset_10 with parameter ihr/IHR_IEDM
D: Command: preset_11 with parameter ihr/IHR_TRAN
D: Command: toneha with parameter 0
D: Command: tonehf with parameter 0
D: Command: tonela with parameter 0
D: Command: tonelf with parameter 0
D: Command: volume with parameter 72
D: Slow SPI, Testing VS1053 read/write registers...
D: VS1053 not properly installed!
D: Connect to WiFi
Connecting to 1D: Connected to BRAYCHUA
D: IP = 192.168.0.7
D: Start server for commands
D: Network found. Starting mqtt and OTA
D: MDNS responder started
D: Rotary encoder is disabled (-1/-1/-1)
D: STOP requested
D: New preset/file requested (6/0) from icecast.omroep.nl:80/radio1-bb-mp3
D: Connect to new host icecast.omroep.nl:80/radio1-bb-mp3
D: Connect to icecast.omroep.nl on port 80, extension /radio1-bb-mp3
D: Connected to server
D: Duration mp3loop 1
D: Switch to HEADER
D: Headerline: Content-Type: audio/mpeg
D: audio/mpeg seen.
D: Headerline: Icy-Br: 192
D: Headerline: Ice-Audio-Info: samplerate=48000;channels=2;bitrate=192
D: Headerline: Icy-Br: 192
D: Headerline: Icy-Genre: Talk
D: Headerline: Icy-Metadata: 1
D: Headerline: Icy-Name: NPO Radio1
D: Headerline: Icy-Pub: 0
D: Headerline: Icy-Url: http://www.radio1.nl
D: Headerline: Server: Icecast 2.4.0-kh8
D: Headerline: Cache-Control: no-cache, no-store
D: Headerline: Access-Control-Allow-Origin: *
D: Headerline: Access-Control-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type
D: l-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type seen.
D: Headerline: Access-Control-Allow-Methods: GET, OPTIONS, HEAD
D: Headerline: Expires: Mon, 26 Jul 1997 05:00:00 GMT
D: Headerline: Icy-Metaint: 16000
D: Headerline: Connection: close
D: Switch to DATA, bitrate is 192, metaint is 16000
D: Duration mp3loop 72
D: STOP requested
D: Stopping client
[E][WiFiClient.cpp:427] flush(): 11
D: New preset/file requested (7/0) from 205.164.62.15:10032
D: Connect to new host 205.164.62.15:10032
D: Connect to 205.164.62.15 on port 10032, extension /
D: Connected to server
D: STOP requested
D: Stopping client
D: New preset/file requested (8/0) from skonto.ls.lv:8002/mp3

But now I have a new issue: VS1053 not properly installed!

Here is my wiring (following ESP32-Radio.ino guidance):

2018-11-25_15-38-59

WIRING:

  1. SCK to GPIO 18
  2. MISO to GPIO 19
  3. MOSI to GPIO 23
  4. XRESET to RESET
  5. XDCS to GPIO 32
  6. XCS to GPIO 5
  7. DREG to GPIO 4

Please help...

ybourdon commented 5 years ago

Hello, This is a nice job ! Finaly were you able to make esp-Radio work with ESP-32 CPU ? Regards.

Yves

Edzelf commented 5 years ago

This issue is on the wrong repository (for ESP8266 version). The ESP32 version has its own repository. See https://github.com/Edzelf/ESP32-Radio.