Thank you both for your feedback.
The GitHub link you provided only has wiring diagrams for the CC1101 v1 and not V2 which has a different pin layout.
Reading through this forum, there seems to be several people experience the same issue. I am a complete newbie so I apologies in advance if my post is not clear or missing information. I appreciate any help. Happy to add anything else which may help work out where the issue is. Just to add, I have 2 brand new esp board and 2 cc1101 v2 modules and they are both producing identical errors so we could possibly rule out a hardware issue
I have an idea spark ESP32 board and a CC1101 V2 module.
I have tried elechouse, driver lib, radiolib and several others.
Pin arrangement between the esp32 and CC1101 v2 is like this
CC1101 V2 Pin,Function,ESP32 Pin
Pin 1,GND,GND
Pin 2,VCC (3.3V),3.3V
Pin 3,GDO0 (Interrupt),GPIO2
Pin 4,CSN (Chip Select),GPIO5 (SS)
Pin 5,SCK (SPI Clock),GPIO18 (SCK)
Pin 6,MOSI (SPI Data Out),GPIO23 (MOSI)
Pin 7,MISO (SPI Data In),GPIO19 (MISO)
Pin 8,GDO2 (Optional),Not Connected
Error under serial monitor
(TG1WDT_SYS_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4688
load:0x40078000,len:15460
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3196
entry 0x400805a4
🔧 Initializing SPI...
📡 Initializing CC1101...
ets Jul 29 2019 12:21:46