Thanks for the response. I didn't put the whole code because it was pretty long but here it is
Code: Select all
jumoke@jumoke-VirtualBox:~/Desktop/iotbits_esp32/esp-idf/examples/get-started/blink$ make
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
CC src/bootloader_random.o
In file included from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:20:0,
from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/wdev_reg.h:17,
from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:16:
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PD);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PD);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PD);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PD);
^
make[1]: *** [src/bootloader_random.o] Error 1
make: *** [bootloader_support-build] Error 2
jumoke@jumoke-VirtualBox:~/Desktop/iotbits_esp32/esp-idf/examples/get-started/blink$ make
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
CC src/bootloader_random.o
In file included from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:20:0,
from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/wdev_reg.h:17,
from /home/jumoke/Desktop/iotbits_esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:16:
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:96:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:101:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PU);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_DIS':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PD);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:169:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:106:5: note: in expansion of macro 'REG_CLR_BIT'
REG_CLR_BIT(PIN_NAME, FUN_PD);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLDWN_EN':
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PD);
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/esp32/include/esp_assert.h:23:28: error: expression in static assertion is not constant
_Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:138:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/soc.h:163:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
^
/home/jumoke/Desktop/iotbits_esp32/esp-idf/components/soc/esp32/include/soc/io_mux_reg.h:111:5: note: in expansion of macro 'REG_SET_BIT'
REG_SET_BIT(PIN_NAME, FUN_PD);
^
make[1]: *** [src/bootloader_random.o] Error 1
make: *** [bootloader_support-build] Error 2
jumoke@jumoke-VirtualBox:~/Desktop/iotbits_esp32/esp-idf/examples/get-started/blink$