amatron
New member
Не компилируется Web_base:
Код:
c:/Espressif/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Os -ffunction-sections -fno-jump-tables -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -I include -I ./ -I ../include -I ../include/ -o .output///obj/spi.o -c spi.c
In file included from ../include/driver/spi.h:6:0,
from spi.c:1:
spi.c: In function 'spi_slave_init':
../include/osapi.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ICACHE_RODATA_ATTR'
static const char flash_str[] ICACHE_RODATA_ATTR = fmt; \
^
spi.c:229:5: note: in expansion of macro 'os_printf'
os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
^
../include/osapi.h:49:32: error: 'ICACHE_RODATA_ATTR' undeclared (first use in this function)
static const char flash_str[] ICACHE_RODATA_ATTR = fmt; \
^
spi.c:229:5: note: in expansion of macro 'os_printf'
os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
^
../include/osapi.h:49:32: note: each undeclared identifier is reported only once for each function it appears in
static const char flash_str[] ICACHE_RODATA_ATTR = fmt; \
^
spi.c:229:5: note: in expansion of macro 'os_printf'
os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
^
../include/osapi.h:50:17: error: 'flash_str' undeclared (first use in this function)
os_printf_plus(flash_str, ##__VA_ARGS__); \
^
spi.c:229:5: note: in expansion of macro 'os_printf'
os_printf("SPI_CTRL2 is %08x\n",READ_PERI_REG(SPI_CTRL2(spi_no)));
^
../Makefile:142: recipe for target '.output///obj/spi.o' failed
mingw32-make[1]: Leaving directory 'C:/Espressif/workspace/Web_base/driver'
mingw32-make[1]: *** [.output///obj/spi.o] Error 1
C:/Espressif/workspace/Web_base/Makefile:131: recipe for target '.subdirs' failed
mingw32-make.exe: *** [.subdirs] Error 2
22:43:14 Build Finished (took 20s.119ms)