Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors #15

Open
jwulf opened this issue Dec 9, 2020 · 1 comment
Open

Build errors #15

jwulf opened this issue Dec 9, 2020 · 1 comment

Comments

@jwulf
Copy link

jwulf commented Dec 9, 2020

I'm getting the following errors when building:

ESP32_ePaper_example on  epd2in13support [✘!] 
➜ make all && make flash


/Users/sitapati/workspace/ESP32_ePaper_example/components/mkspiffs/Makefile.projbuild:13: warning: overriding commands for target `clean'
/Users/sitapati/esp/esp-idf/components/app_update/Makefile.projbuild:53: warning: ignoring old commands for target `clean'
Toolchain path: /Users/sitapati/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp-2020r3
Compiler version: 8.4.0
Python requirements from /Users/sitapati/esp/esp-idf/requirements.txt are satisfied.

App "ePaper" version: 00b4e1b-dirty
CC build/epaper/EPDspi.o
In file included from /Users/sitapati/esp/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
                 from /Users/sitapati/workspace/ESP32_ePaper_example/components/spidriver/spi_master_lobo.h:19,
                 from /Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c:11:
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c: In function 'SPI_send_data':
/Users/sitapati/esp/esp-idf/components/freertos/include/freertos/portable.h:179:22: error: too many arguments to function 'malloc'
 #define pvPortMalloc malloc
                      ^~~~~~
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c:171:23: note: in expansion of macro 'pvPortMalloc'
   uint8_t *transbuf = pvPortMalloc(len, MALLOC_CAP_DMA);
                       ^~~~~~~~~~~~
In file included from /Users/sitapati/esp/esp-idf/components/newlib/platform_include/assert.h:21,
                 from /Users/sitapati/esp/esp-idf/components/esp_common/include/esp_err.h:18,
                 from /Users/sitapati/workspace/ESP32_ePaper_example/components/spidriver/spi_master_lobo.h:18,
                 from /Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c:11:
/Users/sitapati/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:108:8: note: declared here
 void * malloc (size_t __size) _NOTHROW;
        ^~~~~~
In file included from /Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c:21:
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c: In function 'ReadBusy':
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.h:63:20: error: implicit declaration of function 'gpio_get_level'; did you mean '_xtos_set_intlevel'? [-Werror=implicit-function-declaration]
 #define isEPD_BUSY gpio_get_level(BUSY_Pin)
                    ^~~~~~~~~~~~~~
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c:206:7: note: in expansion of macro 'isEPD_BUSY'
   if (isEPD_BUSY == EPD_BUSY_LEVEL)
       ^~~~~~~~~~
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c: In function 'EPD_WriteCMD':
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.h:60:18: error: implicit declaration of function 'gpio_set_level'; did you mean '_xtos_set_intlevel'? [-Werror=implicit-function-declaration]
 #define EPD_DC_0 gpio_set_level(DC_Pin, 0)
                  ^~~~~~~~~~~~~~
/Users/sitapati/workspace/ESP32_ePaper_example/components/epaper/EPDspi.c:229:2: note: in expansion of macro 'EPD_DC_0'
  EPD_DC_0; // command write
  ^~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [EPDspi.o] Error 1
make: *** [component-epaper-build] Error 2
@daniello13
Copy link

Hello, bro, I get the same error. Did you find any working code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants