loboris / esp32_cc1101 Goto Github PK
View Code? Open in Web Editor NEWESP32 driver library for TI CC1100 Low-Power Sub-1 GHz RF Transceiver
ESP32 driver library for TI CC1100 Low-Power Sub-1 GHz RF Transceiver
not compiling in ESP-IDF Release v5.1.2
Hello, how did you wire the cc1101 to your esp32?
Hey,
I wired the CC1101 board up like the code suggests. I connected GPO0 to 36 and GPO1 to 35.
However, I get the error:
E (260617) [CC1101 TXtask]: [26/26] Error
Btw, my RTL_SDR shows some very short activity in the specified spectrum, but it is so short idk.
Hello
I can not build your code.
I have errors
undefined reference to `packet_available'
undefined reference to `get_temp'
undefined reference to `get_payload'
Any ideas?
c:\Projects\VSCode\ESP32_CC1101-master>idf.py build
Note: You are using Python 3.7.4. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
Checking Python dependencies...
Python requirements from C:\Users\Denis\Desktop\esp-idf\requirements.txt are satisfied.
Running cmake in directory c:\Projects\VSCode\ESP32_CC1101-master\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 --warn-uninitialized c:\Projects\VSCode\ESP32_CC1101-master"...
Warn about uninitialized values.
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.21.0.windows.1")
CMake Warning at C:/Users/Denis/Desktop/esp-idf/tools/cmake/scripts/expand_requirements.cmake:141 (message):
Component C:/Projects/VSCode/ESP32_CC1101-master/components/cc1100 contains
old-style component.mk but no CMakeLists.txt. Component will be skipped.
Call Stack (most recent call first):
C:/Users/Denis/Desktop/esp-idf/tools/cmake/scripts/expand_requirements.cmake:266 (components_find_all)
CMake Warning at C:/Users/Denis/Desktop/esp-idf/tools/cmake/scripts/expand_requirements.cmake:141 (message):
Component C:/Projects/VSCode/ESP32_CC1101-master/components/spidriver
contains old-style component.mk but no CMakeLists.txt. Component will be
skipped.
Call Stack (most recent call first):
C:/Users/Denis/Desktop/esp-idf/tools/cmake/scripts/expand_requirements.cmake:266 (components_find_all)
-- Building empty aws_iot component due to configuration
-- Component names: soc log heap xtensa-debug-module app_trace freertos vfs newlib esp_ringbuf driver esp_event ethernet lwip tcpip_adapter partition_table app_update spi_flash mbedtls micro-ecc bootloader_support nvs_flash pthread smartconfig_ack wpa_supplicant esp32 cxx asio jsmn aws_iot bootloader bt coap console nghttp esp-tls esp_adc_cal tcp_transport esp_http_client esp_http_server esp_https_ota esptool_py expat wear_levelling sdmmc fatfs freemodbus idf_test json libsodium mdns mqtt openssl protobuf-c protocomm spiffs ulp wifi_provisioning main
-- Component paths: C:/Users/Denis/Desktop/esp-idf/components/soc;C:/Users/Denis/Desktop/esp-idf/components/log;C:/Users/Denis/Desktop/esp-idf/components/heap;C:/Users/Denis/Desktop/esp-idf/components/xtensa-debug-module;C:/Users/Denis/Desktop/esp-idf/components/app_trace;C:/Users/Denis/Desktop/esp-idf/components/freertos;C:/Users/Denis/Desktop/esp-idf/components/vfs;C:/Users/Denis/Desktop/esp-idf/components/newlib;C:/Users/Denis/Desktop/esp-idf/components/esp_ringbuf;C:/Users/Denis/Desktop/esp-idf/components/driver;C:/Users/Denis/Desktop/esp-idf/components/esp_event;C:/Users/Denis/Desktop/esp-idf/components/ethernet;C:/Users/Denis/Desktop/esp-idf/components/lwip;C:/Users/Denis/Desktop/esp-idf/components/tcpip_adapter;C:/Users/Denis/Desktop/esp-idf/components/partition_table;C:/Users/Denis/Desktop/esp-idf/components/app_update;C:/Users/Denis/Desktop/esp-idf/components/spi_flash;C:/Users/Denis/Desktop/esp-idf/components/mbedtls;C:/Users/Denis/Desktop/esp-idf/components/micro-ecc;C:/Users/Denis/Desktop/esp-idf/components/bootloader_support;C:/Users/Denis/Desktop/esp-idf/components/nvs_flash;C:/Users/Denis/Desktop/esp-idf/components/pthread;C:/Users/Denis/Desktop/esp-idf/components/smartconfig_ack;C:/Users/Denis/Desktop/esp-idf/components/wpa_supplicant;C:/Users/Denis/Desktop/esp-idf/components/esp32;C:/Users/Denis/Desktop/esp-idf/components/cxx;C:/Users/Denis/Desktop/esp-idf/components/asio;C:/Users/Denis/Desktop/esp-idf/components/jsmn;C:/Users/Denis/Desktop/esp-idf/components/aws_iot;C:/Users/Denis/Desktop/esp-idf/components/bootloader;C:/Users/Denis/Desktop/esp-idf/components/bt;C:/Users/Denis/Desktop/esp-idf/components/coap;C:/Users/Denis/Desktop/esp-idf/components/console;C:/Users/Denis/Desktop/esp-idf/components/nghttp;C:/Users/Denis/Desktop/esp-idf/components/esp-tls;C:/Users/Denis/Desktop/esp-idf/components/esp_adc_cal;C:/Users/Denis/Desktop/esp-idf/components/tcp_transport;C:/Users/Denis/Desktop/esp-idf/components/esp_http_client;C:/Users/Denis/Desktop/esp-idf/components/esp_http_server;C:/Users/Denis/Desktop/esp-idf/components/esp_https_ota;C:/Users/Denis/Desktop/esp-idf/components/esptool_py;C:/Users/Denis/Desktop/esp-idf/components/expat;C:/Users/Denis/Desktop/esp-idf/components/wear_levelling;C:/Users/Denis/Desktop/esp-idf/components/sdmmc;C:/Users/Denis/Desktop/esp-idf/components/fatfs;C:/Users/Denis/Desktop/esp-idf/components/freemodbus;C:/Users/Denis/Desktop/esp-idf/components/idf_test;C:/Users/Denis/Desktop/esp-idf/components/json;C:/Users/Denis/Desktop/esp-idf/components/libsodium;C:/Users/Denis/Desktop/esp-idf/components/mdns;C:/Users/Denis/Desktop/esp-idf/components/mqtt;C:/Users/Denis/Desktop/esp-idf/components/openssl;C:/Users/Denis/Desktop/esp-idf/components/protobuf-c;C:/Users/Denis/Desktop/esp-idf/components/protocomm;C:/Users/Denis/Desktop/esp-idf/components/spiffs;C:/Users/Denis/Desktop/esp-idf/components/ulp;C:/Users/Denis/Desktop/esp-idf/components/wifi_provisioning;C:/Projects/VSCode/ESP32_CC1101-master/main
-- The ASM compiler identification is GNU
-- Found assembler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ccache will be used for faster builds
-- Adding linker script C:/Projects/VSCode/ESP32_CC1101-master/build/esp32/esp32_out.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.common.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- Building empty aws_iot component due to configuration
-- Component libraries: soc;log;heap;xtensa-debug-module;app_trace;freertos;vfs;newlib;esp_ringbuf;driver;esp_event;ethernet;lwip;tcpip_adapter;app_update;spi_flash;mbedtls;micro-ecc;bootloader_support;nvs_flash;pthread;smartconfig_ack;wpa_supplicant;esp32;cxx;asio;jsmn;aws_iot;bt;coap;console;nghttp;esp-tls;esp_adc_cal;tcp_transport;esp_http_client;esp_http_server;esp_https_ota;expat;wear_levelling;sdmmc;fatfs;freemodbus;idf_test;json;libsodium;mdns;mqtt;openssl;protobuf-c;protocomm;spiffs;ulp;wifi_provisioning;main
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Projects/VSCode/ESP32_CC1101-master/build
Running ninja in directory c:\Projects\VSCode\ESP32_CC1101-master\build
Executing "ninja all"...
[731/736] Linking CXX executable cc1101_demo.elf
FAILED: cc1101_demo.elf
cmd.exe /C "cd . && C:\Projects.espressif\tools\xtensa-esp32-elf\1.22.0-80-g6c4433a5-5.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -nostdlib CMakeFiles/cc1101_demo.elf.dir/dummy_main_src.c.obj -o cc1101_demo.elf -Wl,--gc-sections -Wl,--cref -Wl,--Map=cc1101_demo.map -Wl,--start-group soc/libsoc.a log/liblog.a heap/libheap.a xtensa-debug-module/libxtensa-debug-module.a app_trace/libapp_trace.a freertos/libfreertos.a vfs/libvfs.a newlib/libnewlib.a esp_ringbuf/libesp_ringbuf.a driver/libdriver.a esp_event/libesp_event.a ethernet/libethernet.a lwip/liblwip.a tcpip_adapter/libtcpip_adapter.a app_update/libapp_update.a spi_flash/libspi_flash.a mbedtls/libmbedtls.a micro-ecc/libmicro-ecc.a bootloader_support/libbootloader_support.a nvs_flash/libnvs_flash.a pthread/libpthread.a smartconfig_ack/libsmartconfig_ack.a wpa_supplicant/libwpa_supplicant.a esp32/libesp32.a cxx/libcxx.a asio/libasio.a jsmn/libjsmn.a coap/libcoap.a console/libconsole.a nghttp/libnghttp.a esp-tls/libesp-tls.a esp_adc_cal/libesp_adc_cal.a tcp_transport/libtcp_transport.a esp_http_client/libesp_http_client.a esp_http_server/libesp_http_server.a esp_https_ota/libesp_https_ota.a expat/libexpat.a wear_levelling/libwear_levelling.a sdmmc/libsdmmc.a fatfs/libfatfs.a freemodbus/libfreemodbus.a json/libjson.a libsodium/liblibsodium.a mdns/libmdns.a mqtt/libmqtt.a openssl/libopenssl.a protobuf-c/libprotobuf-c.a protocomm/libprotocomm.a spiffs/libspiffs.a ulp/libulp.a wifi_provisioning/libwifi_provisioning.a main/libmain.a -lgcov -Wl,--undefined=uxTopUsedPriority -L C:/Users/Denis/Desktop/esp-idf/components/newlib/lib -lc -lm -L C:/Users/Denis/Desktop/esp-idf/components/esp32/lib -L C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/wifi_iram_opt -lcoexist -lcore -lespnow -lmesh -lnet80211 -lphy -lpp -lrtc -lsmartconfig -lwpa2 -lwpa -lwps -L C:/Projects/VSCode/ESP32_CC1101-master/build/esp32 -T esp32_out.ld -L C:/Users/Denis/Desktop/esp-idf/components/esp32/ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld C:/Users/Denis/Desktop/esp-idf/components/esp32/libhal.a -lgcc -u call_user_start_cpu0 -u ld_include_panic_highint_hdl -lstdc++ -u __cxa_guard_dummy -u __cxx_fatal_exception && cd ."
main/libmain.a(cc1101_demo.c.obj):(.literal.CC_TX_task+0x48): undefined reference to get_temp' main/libmain.a(cc1101_demo.c.obj):(.literal.CC_RX_task+0x28): undefined reference to
packet_available'
main/libmain.a(cc1101_demo.c.obj):(.literal.CC_RX_task+0x2c): undefined reference to get_payload' main/libmain.a(cc1101_demo.c.obj):(.literal.app_main+0x28): undefined reference to
cc_setup'
main/libmain.a(cc1101_demo.c.obj):(.literal.app_main+0x2c): undefined reference to show_main_settings' main/libmain.a(cc1101_demo.c.obj): In function
CC_TX_task':
c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:149: undefined reference to get_temp' main/libmain.a(cc1101_demo.c.obj): In function
CC_RX_task':
c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:76: undefined reference to packet_available' c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:84: undefined reference to
get_payload'
main/libmain.a(cc1101_demo.c.obj): In function app_main': c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:112: undefined reference to
cc_setup'
c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:112: undefined reference to get_temp' c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:116: undefined reference to
show_main_settings'
c:\Projects\VSCode\ESP32_CC1101-master\build/../main/cc1101_demo.c:206: undefined reference to `get_temp'
collect2.exe: error: ld returned 1 exit status
[732/736] Performing configure step for 'bootloader'
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.21.0.windows.1")
-- Component names: soc spi_flash micro-ecc bootloader_support main esptool_py partition_table esp32 log bootloader
-- Component paths: C:/Users/Denis/Desktop/esp-idf/components/soc;C:/Users/Denis/Desktop/esp-idf/components/spi_flash;C:/Users/Denis/Desktop/esp-idf/components/micro-ecc;C:/Users/Denis/Desktop/esp-idf/components/bootloader_support;C:/Users/Denis/Desktop/esp-idf/components/bootloader/subproject/main;C:/Users/Denis/Desktop/esp-idf/components/esptool_py;C:/Users/Denis/Desktop/esp-idf/components/partition_table;C:/Users/Denis/Desktop/esp-idf/components/esp32;C:/Users/Denis/Desktop/esp-idf/components/log;C:/Users/Denis/Desktop/esp-idf/components/bootloader
-- The ASM compiler identification is GNU
-- Found assembler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Projects/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ccache will be used for faster builds
-- Component libraries: soc;spi_flash;micro-ecc;bootloader_support;main;esp32;log
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/bootloader/subproject/main/esp32.bootloader.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/bootloader/subproject/main/esp32.bootloader.rom.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- Adding linker script C:/Users/Denis/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Projects/VSCode/ESP32_CC1101-master/build/bootloader
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
c:\Projects\VSCode\ESP32_CC1101-master>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.