Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Could not compile, multiple errors #1

Open
clyra opened this issue Aug 22, 2017 · 4 comments
Open

Could not compile, multiple errors #1

clyra opened this issue Aug 22, 2017 · 4 comments

Comments

@clyra
Copy link

clyra commented Aug 22, 2017

Hi,

I'm trying to compile your code, but got multiple errors. What i got:

$ platformio run -e esp32dev --target upload
[Tue Aug 22 17:31:41 2017] Processing esp32dev (platform: espressif32; board: esp32doit-devkit-v1; framework: espidf)

Verbose mode can be enabled via -v, --verbose option
Collected 1 compatible libraries
Looking for dependencies...
Library Dependency Graph
|--
Compiling .pioenvs/esp32dev/src/main.o
In file included from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/osi/include/osi_arch.h:4:0,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/include/bt_defs.h:26,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/btcore/include/bdaddr.h:25,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:26,
from src/main.c:12:
/Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:244:3: error: #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
#error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
^
In file included from /Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:99:0,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/osi/include/osi_arch.h:4,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/include/bt_defs.h:26,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/btcore/include/bdaddr.h:25,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:26,
from src/main.c:12:
/Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOSConfig.h:192:37: error: 'CONFIG_FREERTOS_MAX_TASK_NAME_LEN' undeclared here (not in a function)
#define configMAX_TASK_NAME_LEN ( CONFIG_FREERTOS_MAX_TASK_NAME_LEN )
^
/Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:864:23: note: in expansion of macro 'configMAX_TASK_NAME_LEN'
uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ];
^
In file included from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:30:0,
from src/main.c:12:
/Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/hci/include/hci_packet_parser.h:42:9: error: unknown type name 'bt_version_t'
bt_version_t *bt_version_ptr
^
In file included from src/main.c:12:0:
/Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:38:11: error: unknown type name 'bt_version_t'
const bt_version_t *(*get_bt_version)(void);
^
Compiling .pioenvs/esp32dev/bootloader/bootloader_start.o
src/main.c:62:16: error: expected expression before ',' token
DEVICE_ADDR_1,
In file included from src/main.c:24:0:
src/main.c: In function 'wifi_conn_init':
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: error: 'CONFIG_ESP32_WIFI_TX_BUFFER_TYPE' undeclared (first use in this function)
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: note: each undeclared identifier is reported only once for each function it appears in
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: note: (near initialization for 'icfg.tx_buf_type')
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
src/main.c: In function 'app_main':
src/main.c:235:5: error: too few arguments to function 'esp_bt_controller_init'
esp_bt_controller_init();
^
In file included from src/main.c:14:0:
/Users/lyra/.platformio/packages/framework-espidf/components/bt/include/bt.h:85:11: note: declared here
esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg);
^
src/main.c:235:5: error: statement with no effect [-Werror=unused-value]
esp_bt_controller_init();
^
cc1: some warnings being treated as errors
Compiling .pioenvs/esp32dev/bootloaderSupport/src/bootloader_random.o
/Users/lyra/.platformio/packages/framework-espidf/components/bootloader/src/main/bootloader_start.c: In function 'clock_configure':
/Users/lyra/.platformio/packages/framework-espidf/components/bootloader/src/main/bootloader_start.c:719:25: error: 'CONFIG_ESP32_XTAL_FREQ' undeclared (first use in this function)
clk_cfg.xtal_freq = CONFIG_ESP32_XTAL_FREQ;
^
/Users/lyra/.platformio/packages/framework-espidf/components/bootloader/src/main/bootloader_start.c:719:25: note: each undeclared identifier is reported only once for each function it appears in
*** [.pioenvs/esp32dev/src/main.o] Error 1
Compiling .pioenvs/esp32dev/bootloaderSupport/src/efuse.o
*** [.pioenvs/esp32dev/bootloader/bootloader_start.o] Error 1
====================================================== [ERROR] Took 3.06 seconds ======================================================

I'm new to the platformio so I may be doing something stupid... but i got the example projects running (esp32-arduino-wifiscan and esp32-espidf-ble-adv for example).

thanks!

@ruudk
Copy link

ruudk commented Sep 18, 2017

Same issue here :(

@barnybug
Copy link
Collaborator

It's probable the SDK has moved on in versions from when I wrote this, sorry - not able to look into this, I'm archiving this project as I use micropython now.

@ruudk
Copy link

ruudk commented Sep 19, 2017

@barnybug Thanks for letting us now! Do you have an example of the same principle with Micropython? :) I'm trying that out on my ESP32 right now.

@oakbrad
Copy link

oakbrad commented Nov 27, 2017

Also having the same issue :(

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

No branches or pull requests

4 participants