Code Monkey home page Code Monkey logo

Comments (9)

Huyil avatar Huyil commented on July 21, 2024 2

谢谢,我成功了!!
SDK版本似乎还是v3.3rc?

git clone https://github.com/espressif/ESP8266_RTOS_SDK.git
cd ESP8266_RTOS_SDK
git checkout 1be2289fcd68672f5d6bf6aafa4f4b57b20527a4
git branch 1be2289fcd
git checkout 1be2289fcd
sudo pip install -r requirements.txt
. ./export.sh

git clone https://github.com/windowsair/wireless-esp8266-dap.git
cd wireless-esp8266-dap/
python3 idf.py build

from wireless-esp8266-dap.

windowsair avatar windowsair commented on July 21, 2024 1

请使用项目里的sdk进行编译,您现在用的不是项目里的sdk

from wireless-esp8266-dap.

windowsair avatar windowsair commented on July 21, 2024

Which version of sdk are you using?
Please try using the sdk that comes with the project.

from wireless-esp8266-dap.

Huyil avatar Huyil commented on July 21, 2024

ESP8266_RTOS_SDK_3.4

from wireless-esp8266-dap.

Huyil avatar Huyil commented on July 21, 2024

但是 ESP8266_RTOS_SDK_3.3rc 也会报错
but ESP8266_RTOS_SDK_3.3rc other error
huyil233@Huyil:~/esp/ESP8266_RTOS_SDK/wireless-esp8266-dap-0.1.3.1$ sudo python idf.py build
Setting IDF_PATH environment variable: /home/huyil233/esp/ESP8266_RTOS_SDK_3.3rc
Checking Python dependencies...
Python requirements from /home/huyil233/esp/ESP8266_RTOS_SDK_3.3rc/requirements.txt are satisfied.
Executing action: all (aliases: build)
Running make in directory /home/huyil233/esp/ESP8266_RTOS_SDK_3.3rc/wireless-esp8266-dap-0.1.3.1/build
Executing "make -j 10 all"...
[ 0%] Built target _project_elf_src
[ 1%] Built target partition_table
[ 1%] Built target esp8266_linker_script
[ 2%] Performing build step for 'bootloader'
[ 2%] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c: In function 'load_partitions':
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c:208:66: error: argument to 'sizeof' in 'strncp
' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
^
[ 5%] Built target __idf_log
[ 5%] Built target __idf_build_target
[ 7%] Built target _project_elf_src
cc1: some warnings being treated as errors
[ 12%] Built target __idf_esp8266
make[2]: *** [esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/build.make:63: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:3391: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Built target __idf_util
[ 72%] Built target __idf_bootloader_support
[ 75%] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c: In function 'load_partitions':
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c:208:66: error: argument to 'sizeof' in 'strncp
' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
^
cc1: some warnings being treated as errors
make[5]: *** [esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/build.make:63: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj] Error 1
make[4]: *** [CMakeFiles/Makefile2:1937: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/all] Error 2
make[3]: *** [Makefile:84: all] Error 2
make[2]: *** [CMakeFiles/bootloader.dir/build.make:112: bootloader-prefix/src/bootloader-stamp/bootloader-build] Error 2make[1]: *** [CMakeFiles/Makefile2:2720: CMakeFiles/bootloader.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make failed with exit code 2

from wireless-esp8266-dap.

windowsair avatar windowsair commented on July 21, 2024

There are some issues with the v3.4. Please try to compile with the sdk that comes with the project

from wireless-esp8266-dap.

windowsair avatar windowsair commented on July 21, 2024

项目根目录下包含了sdk,请用那个sdk进行编译

from wireless-esp8266-dap.

Huyil avatar Huyil commented on July 21, 2024

idf.py menuconfig 成功了,但
idf.py build 失败
image

~/esp/ESP8266_RTOS_SDK_3.3/wireless-esp8266-dap-master$ idf.py build
Checking Python dependencies...
Python requirements from /home/huyil233/esp/ESP8266_RTOS_SDK/requirements.txt are satisfied.
Executing action: all (aliases: build)
Running make in directory /home/huyil233/esp/ESP8266_RTOS_SDK_3.3/wireless-esp8266-dap-master/build
Executing "make -j 10 all"...
[ 0%] Built target _project_elf_src
[ 1%] Built target partition_table
[ 1%] Built target esp8266_linker_script
[ 1%] Performing build step for 'bootloader'
[ 2%] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c: In function 'load_partitions':
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c:208:66: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
^
[ 2%] Built target _project_elf_src
[ 2%] Built target __idf_build_target
[ 7%] Built target __idf_log
cc1: some warnings being treated as errors
make[2]: *** [esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/build.make:63: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:3393: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Built target __idf_esp8266
[ 35%] Built target __idf_util
[ 72%] Built target __idf_bootloader_support
[ 75%] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c: In function 'load_partitions':
/home/huyil233/esp/ESP8266_RTOS_SDK/components/spi_flash/src/partition.c:208:66: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
^
cc1: some warnings being treated as errors
make[5]: *** [esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/build.make:63: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/src/partition.c.obj] Error 1
make[4]: *** [CMakeFiles/Makefile2:1937: esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/all] Error 2
make[3]: *** [Makefile:84: all] Error 2
make[2]: *** [CMakeFiles/bootloader.dir/build.make:112: bootloader-prefix/src/bootloader-stamp/bootloader-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:2721: CMakeFiles/bootloader.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make failed with exit code 2

from wireless-esp8266-dap.

windowsair avatar windowsair commented on July 21, 2024

是介于3.3和3.4之间的版本,这个版本的wifi性能表现稍微好点

from wireless-esp8266-dap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.