https://github.com/espressif/esp-idf/tr ... idf_as_lib
After get this warning I realized that ESP_PLATFORM is 0
Code: Select all
warning: implicit declaration of function 'traceISR_EXIT_TO_SCHEDULER' [-Wimplicit-function-declaration]
Code: Select all
void app_main(void)
{
#if defined(ESP_PLATFORM)
ESP_LOGI(TAG, "ESP_PLATFORM_Definded");
#else
ESP_LOGE(TAG, "ESP_PLATFORM_NOT_Definded");//code goes here
#endif /*ESP_PLATFORM*/
....
....
/build-esp32s3.sh
Code: Select all
#!/usr/bin/env bash
set -euo pipefail
PARAM=""
# Retrive the target from the current filename, if no target specified,
# the variable will be empty
TARGET=$(echo $0 | cut -s -f2 -d- | cut -s -f1 -d.)
if [[ -n $TARGET ]]
then
# Target is not null, specify the build parameters
PARAM="-DESP_PLATFORM=1 -DCMAKE_TOOLCHAIN_FILE=$IDF_PATH/tools/cmake/toolchain-${TARGET}.cmake -DTARGET=${TARGET} -GNinja"
fi
rm -rf build && mkdir build && cd build
cmake .. $PARAM
cmake --build .
/CMakeLists.txt
Code: Select all
....
set(ESP_PLATFORM ON)
....
How can I make ESP_PLATFORM set to 1 ?
Have a nice day!
-Serdar