Please help with my pinout
Crsarmv7l opened this issue · 3 comments
Finally got back to trying to get rfquack working, and after compiling and installing python 3.10.10 on my debian machine, working through the oddities of the build (not using poetry to install depends, only pip with the requirements), etc, my board is flashed and the interactive environment works.
..
However, I can only access q.dongle... Which means I likely wired something wrong with my cc1101. Its late and this has taken me a while so I can't say I am surprised. I was hoping for another set of eyes to take a look please.
I am using an ebyte cc1101 with this pinout:
and I am using a WeMoS Lolin32 with this pinout:
I connected vcc to 3v, ground to ground, and MISO/MOSI/SCK/and CS to these:
In build.env RadioA_CS is 34
RadioA_IRQ (GD0) is 27
Really just hoping I made a silly mistake with the wiring, and it will be a simple rewire, reflash and I can finally give this a go.
Thanks
Wiring and configuration look in order. Can you share a dump of the console output at boot, possibly with log/dev/debug enabled?
Define the relevant variables in your build.env - the complete set of build variables can be guessed from here - https://github.com/rfquack/RFQuack/blob/master/docker/project/src/main.cpp.j2
Well that solved it. Unfortunately. pio device monitor showed it was constantly browning out. It exhibited that behavior even with gpio/cc1101 completely disconnected, so it must be a bad board.
I do have another board, a feather ESP32-S3 with no PSRAM and I have tried building RFquack for that ( with adafruit_feather_esp32s3_nopsram for board in platformio.ini) but it fails every time with the following:
*********************************************************************************************************************
Obsolete PIO Core v6.1.5 is used (previous was 6.1.6)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/en/latest/core/installation/troubleshooting.html
*********************************************************************************************************************
Processing featheresp32 (platform: platformio/espressif32@^5.2.0; board: adafruit_feather_esp32s3_nopsram; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Library Manager: Installing nanopb/Nanopb @ 0.4.6
Unpacking [####################################] 100%
Library Manager: Nanopb@0.4.6+4 has been installed!
Library Manager: Installing vshymanskyy/TinyGSM @ ~0.6.0
Unpacking [####################################] 100%
Library Manager: TinyGSM@0.6.2 has been installed!
Library Manager: Installing 256dpi/MQTT @ 2.4.7
Unpacking [####################################] 100%
Library Manager: MQTT@2.4.7 has been installed!
Library Manager: Installing SMFSW/Queue @ 1.6
Unpacking [####################################] 100%
Library Manager: Queue@1.6.0 has been installed!
Library Manager: Installing thijse/ArduinoLog @ ~1.0.3
Unpacking [####################################] 100%
Library Manager: ArduinoLog@1.0.4 has been installed!
Library Manager: Installing Densaugeo/base64 @ 1.4.0
Unpacking [####################################] 100%
Library Manager: base64@1.4.0 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
j2 -f env /home/crs/RFQuack/docker/project/src/main.cpp.j2 /home/crs/RFQuack/build.env > /home/crs/RFQuack/src/main.cpp
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/adafruit_feather_esp32s3_nopsram.html
PLATFORM: Espressif 32 (5.3.0) > Adafruit Feather ESP32-S3 No PSRAM
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Installing Protocol Buffers dependencies
Requirement already satisfied: protobuf>=3.19.1 in /home/crs/.pyenv/versions/3.10.10/lib/python3.10/site-packages (4.21.9)
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
[nanopb] Processing 'src/rfquack.proto' (rfquack.options)
/home/crs/RFQuack/.pio/libdeps/featheresp32/Nanopb/generator/../generator/protoc --nanopb_out=/home/crs/RFQuack/.pio/build/featheresp32/nanopb/generated-src --nanopb_opt=--error-on-unmatched --proto_path=/home/crs/RFQuack/src --nanopb_opt=-I/home/crs/RFQuack/src rfquack.proto
Found 40 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Nanopb @ 0.4.6+4
|-- TinyGSM @ 0.6.2
|-- MQTT @ 2.4.7
|-- Queue @ 1.6.0
|-- ArduinoLog @ 1.0.4
|-- base64 @ 1.4.0
|-- WiFi @ 2.0.0
|-- WiFiClientSecure @ 2.0.0
| |-- WiFi @ 2.0.0
|-- RadioLib @ 5.5.0
| |-- SPI @ 2.0.0
Building in release mode
Compiling .pio/build/featheresp32/FrameworkArduinoVariant/variant.cpp.o
Compiling .pio/build/featheresp32/nanopb/generated-build/rfquack.pb.c.o
Compiling .pio/build/featheresp32/src/main.cpp.o
Compiling .pio/build/featheresp32/src/utils/regex/re.c.o
Building .pio/build/featheresp32/bootloader.bin
Generating partitions .pio/build/featheresp32/partitions.bin
Compiling .pio/build/featheresp32/libef8/Nanopb/pb_common.c.o
esptool.py v4.4
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Compiling .pio/build/featheresp32/libef8/Nanopb/pb_decode.c.o
Compiling .pio/build/featheresp32/libef8/Nanopb/pb_encode.c.o
In file included from src/radio/RadioLibWrapper.h:18,
from src/radio/RFQCC1101.h:4,
from src/radio/drivers.h:4,
from src/main.cpp:67:
lib/RadioLib/src/RadioLib.h:45:4: warning: #warning "God mode active, I hope it was intentional. Buckle up, lads." [-Wcpp]
#warning "God mode active, I hope it was intentional. Buckle up, lads."
^~~~~~~
In file included from src/radio/RadioLibWrapper.h:18,
from src/radio/RFQCC1101.h:4,
from src/radio/drivers.h:4,
from src/main.cpp:67:
lib/RadioLib/src/RadioLib.h:53:61: note: #pragma message: RADIOLIB_PLATFORM="ESP32"
Compiling .pio/build/featheresp32/libd64/MQTT/MQTTClient.cpp.o
#pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_PLATFORM))
^
lib/RadioLib/src/RadioLib.h:54:66: note: #pragma message: RADIOLIB_VERSION_MAJOR=(0x05)
#pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_MAJOR))
^
lib/RadioLib/src/RadioLib.h:55:66: note: #pragma message: RADIOLIB_VERSION_MINOR=(0x05)
#pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_MINOR))
^
lib/RadioLib/src/RadioLib.h:56:66: note: #pragma message: RADIOLIB_VERSION_PATCH=(0x00)
#pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_PATCH))
^
lib/RadioLib/src/RadioLib.h:57:66: note: #pragma message: RADIOLIB_VERSION_EXTRA=(0x00)
#pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_EXTRA))
^
In file included from src/radio/../modules/../rfquack_common.h:40,
from src/radio/../modules/ModulesDispatcher.h:5,
from src/radio/RadioLibWrapper.h:21,
from src/radio/RFQCC1101.h:4,
from src/radio/drivers.h:4,
from src/main.cpp:67:
src/radio/../modules/../rfquack_logging.h: In function 'void rfquack_logging_setup()':
src/radio/../modules/../rfquack_logging.h:53:61: error: no matching function for call to 'USBCDC::begin(int, int)'
LogPrinter.begin(RFQUACK_LOG_PRINTER_BAUD_RATE, SERIAL_8N1); //, 32,33);
^
In file included from /home/crs/.platformio/packages/framework-arduinoespressif32/cores/esp32/USB.h:21,
from /home/crs/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.h:200,
from /home/crs/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:174,
from lib/RadioLib/src/BuildOpt.h:6,
from lib/RadioLib/src/TypeDef.h:4,
from lib/RadioLib/src/RadioLib.h:38,
from src/radio/RadioLibWrapper.h:18,
from src/radio/RFQCC1101.h:4,
from src/radio/drivers.h:4,
from src/main.cpp:67:
/home/crs/.platformio/packages/framework-arduinoespressif32/cores/esp32/USBCDC.h:70:10: note: candidate: 'void USBCDC::begin(long unsigned int)'
Archiving .pio/build/featheresp32/libef8/libNanopb.a
void begin(unsigned long baud=0);
^~~~~
/home/crs/.platformio/packages/framework-arduinoespressif32/cores/esp32/USBCDC.h:70:10: note: candidate expects 1 argument, 2 provided
Indexing .pio/build/featheresp32/libef8/libNanopb.a
Compiling .pio/build/featheresp32/libd64/MQTT/lwmqtt/client.c.o
Compiling .pio/build/featheresp32/libd64/MQTT/lwmqtt/helpers.c.o
In file included from src/radio/RFQCC1101.h:4,
from src/radio/drivers.h:4,
from src/main.cpp:67:
src/radio/RadioLibWrapper.h: In member function 'int16_t RadioLibWrapper<T>::receiveMode() [with T = CC1101]':
src/radio/RadioLibWrapper.h:137:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Compiling .pio/build/featheresp32/libd64/MQTT/lwmqtt/packet.c.o
Compiling .pio/build/featheresp32/libd64/MQTT/lwmqtt/string.c.o
*** [.pio/build/featheresp32/src/main.cpp.o] Error 1
============================================ [FAILED] Took 11.10 seconds ============================================
Environment Status Duration
------------- -------- ------------
featheresp32 FAILED 00:00:11.101
======================================= 1 failed, 0 succeeded in 00:00:11.101 =======================================
make: *** [Makefile:82: build] Error 1
Picked up an original feather esp32. So I'll close this and hopefully finally be able to get this to work