-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
Hi,
Before reading further, please keep in mind that I'm really new at this.
What is the correct procedure (starting from scratch) to compile a sample application? Let's say I'm interested in the Basic_Serial.
Steps that I have followed:
- Clone the esp-open-sdk:
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
- Build the esp-open-sdk as non-standalone (after changing the Makefile to fetch the 1.3.0 version, however, I do believe that this is irrelevant since esp-open-sdk build process appears to fetch the NONOS SDK anyway):
make STANDALONE=n
- Clone the Espressif RTOS SDK (I'm quite sure that this is where things went wrong, since I'm not sure whether this actually clones the RTOS 1.3.0 which is mentioned in the readme for this repo):
git clone https://github.com/espressif/ESP8266_RTOS_SDK.git --branch 1.3.x --single-branch
- Clone the SmingRTOS:
git clone https://github.com/SmingHub/SmingRTOS.git
- Set up some environment variables:
export ESP_HOME="/home/kom/esp/esp-open-sdk/"
export SDK_BASE="/home/kom/esp/ESP8266_RTOS_SDK/"
export SMING_HOME="/home/kom/esp/SmingRTOS/sming/"
- Build the libsming:
cd $SMING_HOME && make
Problem 1: JsonVariant.cpp is referring to errno.h that no longer exists, uncommenting line 13 and commenting line 12 seems to fix it - Build the example:
cd $SMING_HOME/../samples/Basic_Serial/ && make
:
C+ app/application.cpp
AR out/build/app_app.a
LD out/build/app.out
/home/kom/esp/ESP8266_RTOS_SDK//lib/libmain.a(app_main.o): In function `user_init_task':
(.irom0.text+0x580): undefined reference to `user_rf_cal_sector_set'
/home/kom/esp/ESP8266_RTOS_SDK//lib/libmain.a(app_main.o): In function `flash_data_check':
(.irom0.text+0x655): undefined reference to `user_rf_cal_sector_set'
collect2: error: ld returned 1 exit status
/home/kom/esp/SmingRTOS/sming//Makefile-project.mk:287: recipe for target 'out/build/app.out' failed
make: *** [out/build/app.out] Error 1
What did I miss? Am I using incorrect RTOS SDK version? Adding code from here to user_main.cpp seems to fix the build issue, is this the correct way of solving this? If so, why hasn't this been submitted to the repo?
My apologies if the formatting is less-than-ideal - this is my first message on GitHub ever!
Karolis