Forum: Mikrocontroller und Digitale Elektronik Probleme esp-idf für esp32


von Felix (Gast)


Lesenswert?

einen schönen guten morgen.
Ich habe ein Problem mit ESP-IDF.
Ich habe ein ESP32 (und auch schon code) und möchte dafür den code bauen
1
idf.py build
1
^spressif/esp-idf/components/tinyusb C:/Espressif/esp-idf/components/ulp C:/Espressif/esp-idf/components/unity C:/Espressif/esp-idf/components/usb C:/Espressif/esp-idf/components/vfs C:/Espressif/esp-idf/components/wear_levelling C:/Espressif/esp-idf/components/wifi_provisioning C:/Espressif/esp-idf/components/wpa_supplicant C:/Espressif/esp-idf/components/xtensa
2
-- Configuring done
3
CMake Error at C:/Espressif/esp-idf/tools/cmake/component.cmake:470 (add_library):
4
  Cannot find source file:
5
6
    C:/Espressif/esp-idf/components/coap/libcoap/src/coap_asn1.c
7
8
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
9
  .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
10
Call Stack (most recent call first):
11
  C:/Espressif/esp-idf/components/coap/CMakeLists.txt:37 (idf_component_register)
12
13
14
CMake Error at C:/Espressif/esp-idf/tools/cmake/component.cmake:470 (add_library):
15
  Cannot find source file:
16
17
    C:/Espressif/esp-idf/components/libsodium/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c
18
19
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
20
  .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
21
Call Stack (most recent call first):
22
  C:/Espressif/esp-idf/components/libsodium/CMakeLists.txt:126 (idf_component_register)
23
24
25
CMake Error at C:/Espressif/esp-idf/tools/cmake/component.cmake:470 (add_library):
26
  No SOURCES given to target: __idf_coap
27
Call Stack (most recent call first):
28
  C:/Espressif/esp-idf/components/coap/CMakeLists.txt:37 (idf_component_register)
29
30
31
CMake Error at C:/Espressif/esp-idf/tools/cmake/component.cmake:470 (add_library):
32
  No SOURCES given to target: __idf_libsodium
33
Call Stack (most recent call first):
34
  C:/Espressif/esp-idf/components/libsodium/CMakeLists.txt:126 (idf_component_register)
35
36
37
CMake Generate step failed.  Build files cannot be regenerated correctly.
38
cmake failed with exit code 1

was ich gefunden habe, ist die submodule von esp-idf zu updaten
1
git submodule update --init --recursive
das funktioniert jedoch nicht
1
        tests/ssl-opt.sh
2
Please commit your changes or stash them before you switch branches.
3
Aborting
4
error: Your local changes to the following files would be overwritten by checkout:
5
        genheaderfunc.py
6
        genlibtokenlookup.py
7
        genmethodfunc.py
8
        gennghttpxfun.py
9
        help2rst.py
10
        mkhufftbl.py
11
Please commit your changes or stash them before you switch branches.
12
Aborting
13
Submodule path 'components/tinyusb/tinyusb': checked out 'c4badd394eda18199c0196ed0be1e2d635f0a5f6'
14
Submodule path 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib': checked out '36d0642e66ff5b1c7a291873f24c498ca6ffedef'
15
Unable to checkout '3aa11612c143c9734d72022720f33e12506f7a2c' in submodule path 'components/coap/libcoap'
16
Unable to checkout 'cd7d14917f2c3d0ea4382f4a188cb290304faf47' in submodule path 'components/esp_wifi/lib'
17
Unable to checkout 'b082b0ed2d86b3330134c4854a021dfd14c29b08' in submodule path 'components/esptool_py/esptool'
18
Unable to checkout 'a28238bdeebc087071777001245df1876a11f5ee' in submodule path 'components/expat/expat'
19
Unable to checkout '4f5e89fa84ce1d178a6765b8b46f2b6f91216677' in submodule path 'components/libsodium/libsodium'
20
Unable to checkout 'dc406b82b20481bde74a60fa8a776285d3fb9cf3' in submodule path 'components/mbedtls/mbedtls'
21
Unable to checkout '8f7b008b158e12de0e58247afd170f127dbb6456' in submodule path 'components/nghttp/nghttp2'

wenn ich
1
git status
 mache bekomme ich die Ausgabe
1
HEAD detached at v4.4
2
Changes not staged for commit:
3
  (use "git add <file>..." to update what will be committed)
4
  (use "git restore <file>..." to discard changes in working directory)
5
  (commit or discard the untracked or modified content in submodules)
6
        modified:   components/asio/asio (modified content)
7
        modified:   components/bootloader/subproject/components/micro-ecc/micro-ecc (modified content)
8
        modified:   components/bt/host/nimble/nimble (modified content)
9
        modified:   components/cbor/tinycbor (modified content)
10
        modified:   components/coap/libcoap (new commits, modified content)
11
        modified:   components/esp_wifi/lib (new commits, modified content)
12
        modified:   components/esptool_py/esptool (new commits, modified content)
13
        modified:   components/expat/expat (new commits, modified content)
14
        modified:   components/json/cJSON (modified content)
15
        modified:   components/libsodium/libsodium (new commits, modified content)
16
        modified:   components/lwip/lwip (modified content)
17
        modified:   components/mbedtls/mbedtls (new commits, modified content)
18
        modified:   components/mqtt/esp-mqtt (modified content)
19
        modified:   components/nghttp/nghttp2 (new commits, modified content)
20
        modified:   components/protobuf-c/protobuf-c (modified content)
21
        modified:   components/unity/unity (modified content)
22
        modified:   examples/build_system/cmake/import_lib/main/lib/tinyxml2 (modified content)
23
24
Untracked files:
25
  (use "git add <file>..." to include in what will be committed)
26
        components/bt/controller/lib/

allerdings bekomme ich die Änderungen nicht weg
1
git add -A
2
git reset --hard
sieht der status immer noch gleich aus

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.