LuaNode icon indicating copy to clipboard operation
LuaNode copied to clipboard

ESP-32 compiler error

Open mandoyj opened this issue 9 years ago • 5 comments

implicit declaration of function 'SPIParamCfg' [-Werror=implicit-function-declaration] SPIParamCfg ( ^

mandoyj avatar Apr 27 '17 08:04 mandoyj

@mandoyj Hi, this function is defined in esp-idf/components/esp32/include/rom/spi_flash.h. Maybe you forgot to include the head file like this #include "rom/spi_flash.h"

Nicholas3388 avatar Apr 27 '17 15:04 Nicholas3388

@Nicholas3388 Thank you for reply. The function 'SPIParamCfg' has been removed. which commit do you use?

mandoyj avatar Apr 27 '17 18:04 mandoyj

@mandoyj Hi, I think you should use esp_rom_spiflash_config_param instead of SPIParamCfg for ESP32

Nicholas3388 avatar May 03 '17 16:05 Nicholas3388

hi. i am getting two error. please help me out

gaurav@gaurav-Aspire-E5-573:~/Desktop/esp123/hello_world/main$ make menuconfig Makefile:8: /home/gaurav/bin:/home/gaurav/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/gaurav/esp/xtensa-esp32-elf/bin:/gaurav/esp/esp-idf/make/project.mk: No such file or directory make: *** No rule to make target `/home/gaurav/bin:/home/gaurav/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/gaurav/esp/xtensa-esp32-elf/bin:/gaurav/esp/esp-idf/make/project.mk'. Stop.

gaurav@gaurav-Aspire-E5-573:~/Desktop/esp123/hello_world/main$ gcc -o hello hello_world_main.c hello_world_main.c:10:31: fatal error: freertos/FreeRTOS.h: No such file or directory compilation terminated.

0203Gaurav avatar Sep 09 '17 07:09 0203Gaurav

@0203Gaurav Hi, For the first issue, maybe you didn't export IDF_PATH, export as follow: export IDF_PATH=/your_path. For the second issue, did you setup compile environment as the following link: http://esp-idf.readthedocs.io/en/latest/get-started/linux-setup.html

If you have setup, you just need to execute make in the directory of hello_world_main.c

Nicholas3388 avatar Sep 11 '17 10:09 Nicholas3388