Hello I am using Xiao Esp32 C3 and LoRa Wio E5 Devkit to communicate sensor data to TTN using sensecap M2 LoRa gateway.I am using Esp32 C3 as a host MCU to send factory AT commands to Wio E5 devkit to send join requests and also messages through lora.I have used Arduino IDE v3.0.7 to flash Xiao Esp32 C3 with this arduino library for sending LoRa factory AT commands GitHub - andresoliva/LoRa-E5: Advanced application of SeedStudio module Grove-Wio-E5 based on chip STM32WLE5JC from STM connected to an Arduino Nano 33 BLE Sense board. Works with any Arduino that supports UART.
It worked well with Esp32 S2 devkit, I was able to send LoRa messages from Wio E5 Devkit to TTN console thorugh SenseCap M2 Gateway.But when Flashing the same to Esp32 C3, I am not even getting serial output from i don’t know if any other drivers is required for the library I have used.
When I activated Core Debug Level to Debug mode this is what I have got
10:47:04.645 -> [ 233][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Dein=========== Before Setup Start ===========
10:47:04.645 -> Chip Info:
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Model : ESP32-C3
10:47:04.645 -> Package : 0
10:47:04.645 -> Revision : 0.04
10:47:04.645 -> Cores : 1
10:47:04.645 -> CPU Frequency : 160 MHz
10:47:04.645 -> XTAL Frequency : 40 MHz
10:47:04.645 -> Features Bitfield : 0x00000012
10:47:04.645 -> Embedded Flash : No
10:47:04.645 -> Embedded PSRAM : No
10:47:04.645 -> 2.4GHz WiFi : Yes
10:47:04.645 -> Classic BT : No
10:47:04.645 -> BT Low Energy : Yes
10:47:04.645 -> IEEE 802.15.4 : No
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> INTERNAL Memory Info:
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Total Size : 336728 B ( 328.8 KB)
10:47:04.645 -> Free Bytes : 311476 B ( 304.2 KB)
10:47:04.645 -> Allocated Bytes : 21396 B ( 20.9 KB)
10:47:04.645 -> Minimum Free Bytes: 306672 B ( 299.5 KB)
10:47:04.645 -> Largest Free Block: 172020 B ( 168.0 KB)
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Flash Info:
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Chip Size : 4194304 B (4 MB)
10:47:04.645 -> Block Size : 65536 B ( 64.0 KB)
10:47:04.645 -> Sector Size : 4096 B ( 4.0 KB)
10:47:04.645 -> Page Size : 256 B ( 0.2 KB)
10:47:04.645 -> Bus Speed : 80 MHz
10:47:04.645 -> Bus Mode : QIO
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Partitions Info:
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
10:47:04.645 -> otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
10:47:04.645 -> app0 : addr: 0x00010000, size: 1280.0 KB, type: APP, subtype: OTA_0
10:47:04.645 -> app1 : addr: 0x00150000, size: 1280.0 KB, type: APP, subtype: OTA_1
10:47:04.645 -> spiffs : addr: 0x00290000, size: 1408.0 KB, type: DATA, subtype: SPIFFS
10:47:04.645 -> coredump : addr: 0x003F0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> app0 : addr: 0x00010000, size: 1280.0 KB, type: APP, subtype: OTA_0
10:47:04.645 -> app1 : addr: 0x00150000, size: 1280.0 KB, type: APP, subtype: OTA_1
10:47:04.645 -> spiffs : addr: 0x00290000, size: 1408.0 KB, type: DATA, subtype: SPIFFS
10:47:04.645 -> coredump : addr: 0x003F0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Software Info:
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Compile Date/Time : Dec 3 2024 19:17:42
10:47:04.645 -> Compile Host OS : windows
10:47:04.645 -> ESP-IDF Version : v5.1.4-972-g632e0c2a9f-dirty
10:47:04.645 -> Arduino Version : 3.0.7
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Board Info:
10:47:04.645 -> ------------------------------------------
10:47:04.645 -> Arduino Board : XIAO_ESP32C3
10:47:04.645 -> Arduino Variant : XIAO_ESP32C3
10:47:04.645 -> Arduino FQBN : esp32:esp32:XIAO_ESP32C3:UploadSpeed=921600,CDCOnBoot=default,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=verbose,EraseFlash=none
10:47:04.645 -> ============ Before Setup End ============
10:47:04.738 -> [ 1044][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 18 already has type USB_DM (38) with bus 0x3fc8d22c
10:47:04.738 -> [ 1045][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 19 already has type USB_DP (39) with bus 0x3fc8d22c
10:47:04.738 -> [ 1045][V][esp32-hal-uart.c:408] uartBegin(): UART0 baud(9600) Mode(800001c) rxPin(20) txPin(21)
10:47:04.738 -> [ 1046][V][esp32-hal-uart.c:497] uartBegin(): UART0 not installed. Starting installation
10:47:04.738 -> [ 1046][V][esp32-hal-uart.c:560] uartBegin(): UART0 initialization done.
10:47:04.738 -> [ 1047][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type INIT (0) with bus 0x0
10:47:04.738 -> [ 1048][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type INIT (0) with bus 0x0
10:47:04.738 -> [ 1048][V][esp32-hal-uart.c:408] uartBegin(): UART0 baud(9600) Mode(800001c) rxPin(20) txPin(21)
10:47:04.738 -> [ 1049][V][esp32-hal-uart.c:497] uartBegin(): UART0 not installed. Starting installation
10:47:04.738 -> [ 1049][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type UART_RX (2) with bus 0x3fc8b948
10:47:04.738 -> [ 1050][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type UART_TX (3) with bus 0x3fc8b948
10:47:04.738 -> [ 1050][V][esp32-hal-uart.c:560] uartBegin(): UART0 initialization done.
10:47:04.831 -> [ 1152][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type INIT (0) with bus 0x0
10:47:04.831 -> [ 1153][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type INIT (0) with bus 0x0
10:47:04.831 -> [ 1153][V][esp32-hal-uart.c:408] uartBegin(): UART0 baud(38400) Mode(800001c) rxPin(20) txPin(21)
10:47:04.831 -> [ 1154][V][esp32-hal-uart.c:497] uartBegin(): UART0 not installed. Starting installation
10:47:04.831 -> [ 1154][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type UART_RX (2) with bus 0x3fc8b948
10:47:04.831 -> [ 1155][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type UART_TX (3) with bus 0x3fc8b948
10:47:04.831 -> [ 1155][V][esp32-hal-uart.c:560] uartBegin(): UART0 initialization done.
10:47:04.831 -> [ 1156][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type INIT (0) with bus 0x0
10:47:04.831 -> [ 1157][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type INIT (0) with bus 0x0
10:47:04.831 -> [ 1157][V][esp32-hal-uart.c:408] uartBegin(): UART0 baud(38400) Mode(800001c) rxPin(20) txPin(21)
10:47:04.831 -> [ 1158][V][esp32-hal-uart.c:497] uartBegin(): UART0 not installed. Starting installation
10:47:04.831 -> [ 1158][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type UART_RX (2) with bus 0x3fc8b948
10:47:04.831 -> [ 1159][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type UART_TX (3) with bus 0x3fc8b948
10:47:04.831 -> [ 1159][V][esp32-hal-uart.c:560] uartBegin(): UART0 initialization done.
Any suggestion on what changes to make or any other libraries to use would be greatly appreciated.
Thanks in Advance…