JNSwanson / ESP-Home-iBoost

ESPHOME Marlec iboost integration
MIT License
21 stars 2 forks source link

Troubles Installing & Compiling #19

Closed Fayrewood closed 2 months ago

Fayrewood commented 3 months ago

I love your work!

I'm running into issues compiling and would really appreciate any guidance you can give. I am running HA 2024.7.4 / Supervisor 2024.08.0 and ESPHome 2024.3.2. I am running ESPHome as an add-on.

I have created a fresh ESPHome entry and given it a API key and it runs rock steady without any changes to the standard basic YAML. It is a Wesmos D1 Mini 8266.

When I tried to compile the ESP-Home-iBoost code, I was getting various 'undefined reference to `_ZN6CC110110getRSSIdbmEv' errors. I read https://github.com/JNSwanson/ESP-Home-iBoost/issues/10#issuecomment-1896083357 but when I added the files to the /data/build/esphome-web-22c6a3/src directory, I got a lot of red and yellow errors which suggested that the code was calling for routines that it couldn't find.

I have got the most success by adding the CC1101_RFx.cpp file into the :include section of my yaml file, when the code compiled OK. However, the device then goes into a continuous boot loop, so I don't think that's the right place to put it. I have disconnected the wires to the CC1101 in case the linked D6 & D2 was causing an issue, but it still went into a boot loop.

Where does the iboost.h file should go? I had uploaded it to HA /config/esphome directory and didn't see any errors relating to this file when compiling.

Could my issues be because my ESP device is not called 'iboost' or 'CC1101', but 'ESPHome Web 22c6a3'?

Any pointers would be gratefully received as I'm itching to get this working :)

This is what I have in my yaml file for the esphome section:

esphome:
  name: cc1101
  platform: ESP8266
  board: d1_mini
  includes:
    - iBoost.h
    - CC1101_RFx.h
  libraries:
    - SPI

Many thanks!

JNSwanson commented 3 months ago

Have you tried building it from the command line using esphome on a PC?

Fayrewood commented 3 months ago

My HA is running in a Proxmox VM. Do you mean from the HA Terminal and is it simply running

esphome run iBoost.yaml

? Where do all of the files need to be before I do that?

JNSwanson commented 3 months ago

On a PC follow these instructions: https://esphome.io/guides/getting_started_command_line

copy the files to the c:\Users\ directory from the commandline: esphome run cc1101.yaml (where cc1101 is the project name) if you get an error, copy CC1101_RF.cpp to C:\Users\.esphome\build\cc1101\src . The other files should have been cpied there already.

when it is running, HA will see it as a new device and you can import it.

Fayrewood commented 3 months ago

Ah! I was missing the .esphome folder. I'm on a Mac and it's a hidden folder.

If I go to the folder /users/petermiller/esphome/.esphome/build/cc1101/src, I have the following files:

-rw-r--r--@ 1 petermiller staff 29112 14 Aug 14:19 CC1101_RFx.cpp -rw-r--r--@ 1 petermiller staff 15774 14 Aug 11:14 CC1101_RFx.h drwxr-xr-x 4 petermiller staff 128 14 Aug 11:14 esphome -rw-r--r-- 1 petermiller staff 3651 14 Aug 14:03 esphome.h -rw-r--r--@ 1 petermiller staff 16622 14 Aug 11:14 iBoost.h -rw-r--r-- 1 petermiller staff 20245 14 Aug 14:20 main.cpp

I now get simpler errors, suggesting the .cpp file has been found:

INFO ESPHome 2024.7.3
INFO Reading configuration cc1101.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing cc1101 (board: d1_mini; framework: arduino; platform: platformio/espressif8266@4.2.1)
--------------------------------------------------------------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- SPI @ 1.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
Compiling .pioenvs/cc1101/src/main.cpp.o
Linking .pioenvs/cc1101/firmware.elf
RAM:   [====      ]  41.2% (used 33748 bytes from 81920 bytes)
Flash: [====      ]  41.1% (used 429677 bytes from 1044464 bytes)
Building .pioenvs/cc1101/firmware.bin
/Users/petermiller/.platformio/packages/framework-arduinoespressif8266/tools/elf2bin.py:54: SyntaxWarning: invalid escape sequence '\s'
  words = re.split('\s+', line)
/Users/petermiller/.platformio/packages/framework-arduinoespressif8266/tools/elf2bin.py:73: SyntaxWarning: invalid escape sequence '\s'
  words = re.split('\s+', line)
esp8266_copy_factory_bin([".pioenvs/cc1101/firmware.bin"], [".pioenvs/cc1101/firmware.elf"])
esp8266_copy_ota_bin([".pioenvs/cc1101/firmware.bin"], [".pioenvs/cc1101/firmware.elf"])
==================================================== [SUCCESS] Took 4.91 seconds =================

I have tried the compiled .bin file, but the device goes into a boot loop

[14:48:05]Soft WDT reset
[14:48:05]
[14:48:05]Exception (4):
[14:48:05]epc1=0x4010075d epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
[14:48:05]
[14:48:05]>>>stack>>>
[14:48:05]
[14:48:05]ctx: cont
[14:48:05]sp: 3ffffcf0 end: 3fffffd0 offset: 0160
[14:48:05]3ffffe50:  40201094 3ffefaa0 3ffef8fc 4020109e  
[14:48:05]3ffffe60:  00000000 3ffefaa0 3ffef8fc 40212306  
[14:48:05]3ffffe70:  3fff1264 0000000a 3ffef7e0 4021099d  
[14:48:05]3ffffe80:  00000006 00000006 3fff1ac4 40100b42  
[14:48:05]3ffffe90:  0000002c 00000014 00000005 3ffef7e0  
[14:48:05]3ffffea0:  3fff1724 00000020 3fff1874 3ffef7e0  
[14:48:05]3ffffeb0:  3fff1724 3ffef908 3fffff64 402140b7  
[14:48:05]3ffffec0:  00000000 feefeffe feefeffe feefeffe  
[14:48:05]3ffffed0:  402273e8 00000000 7fc00000 00000000  
[14:48:05]3ffffee0:  3fff1694 3fff1698 3fff1698 00000000  
[14:48:05]3ffffef0:  3ffffef8 0000000d 78656c41 65646e61  
[14:48:05]3fffff00:  61334272 00000072 00000000 00000000  
[14:48:05]3fffff10:  00000000 00000000 00000000 00000000  
[14:48:05]3fffff20:  00000000 00000000 00000000 402273e8  
[14:48:05]3fffff30:  00000000 7fc00000 00000000 3fff1684  
[14:48:05]3fffff40:  3fff1688 3fff1688 402273b0 00000000  
[14:48:05]3fffff50:  7fc00000 00000000 3fff10ec 3fff110c  
[14:48:05]3fffff60:  3fff110c 3fff1874 3fff1878 3fff1878  
[14:48:05]3fffff70:  00000000 3fffff84 00000001 feefeffe  
[14:48:05]3fffff80:  feefeffe 3fff1854 feefeffe feefeffe  
[14:48:05]3fffff90:  3fff1804 00000000 3fffff64 feefeffe  
[14:48:05]3fffffa0:  feefeffe feefeffe feefeffe 3ffefcb0  
[14:48:05]3fffffb0:  3fffdad0 00000000 3ffefc84 40222740  
[14:48:05]3fffffc0:  feefeffe feefeffe 3fffdab0 40100465  
[14:48:05]<<<stack<<<
[14:48:05]
JNSwanson commented 3 months ago

Try it with a test yaml file. You can create it with: esphome wizard test.yaml

Fayrewood commented 3 months ago

Hmm. I get the same compile error as above with test.yaml in Terminal on the Mac. I have installed Docker on my NAS and it seems to play nicely with the test.yaml, so I'll try now with the cc1101.yaml.

srchild commented 3 months ago

Just to clarify, you said you followed https://github.com/JNSwanson/ESP-Home-iBoost/issues/10#issuecomment-1896083357 (and hopefully also https://github.com/JNSwanson/ESP-Home-iBoost/issues/10#issuecomment-1913156170 ).

Did you successfully enter the esphome docker container which Supervised HA uses? You need to copy files to inside the container (as per the links I quote above). In my case that container name is addon_5c53de3b_esphome and I don't see you mention anything like that above.

Fayrewood commented 3 months ago

Did you successfully enter the esphome docker container which Supervised HA uses? You need to copy files to inside the container (as per the links I quote above). In my case that container name is addon_5c53de3b_esphome and I don't see you mention anything like that above.

Thanks for the pointer. I have checked what I did with the Add On, and yes, I was in the right folder. I have since moved onto Docker and running esphome command line, with some success at compiling.

The image has compiled without any errors. Hurrah!!

But my D1 Mini is in a boot loop.

IMG_0709

My YAML has the correct framework and board for the D1 Mini and I have tried 2x different boards, with no wires connected to be sure.

esphome:
  name: iboost32
  platform: ESP8266
  board: d1_mini
  includes:
    - iBoost.h
    - CC1101_RFx.h
  libraries:
    - SPI

I'm so close.... Any suggestions ?

srchild commented 3 months ago

Is that picture of the board that you are using? I don't see any CC1101 board connected. Might the boot be looping because the radio appears unresponsive?

Are you monitoring the boot process output on the terminal - what are you seeing?

Fayrewood commented 3 months ago

I didn't have any wires connected, but have now added the CC1101 as per the wiring diagram.

I still get boot loops with the following:

[10:37:58] ets Jan  8 2013,rst cause:1, boot mode:(3,7)
[10:37:58]
[10:37:58]load 0x4010f000, len 3424, room 16 
[10:37:58]tail 0
[10:37:58]chksum 0x2e
[10:37:58]load 0x3fff20b8, len 40, room 8 
[10:37:58]tail 0
[10:37:58]chksum 0x2b
[10:37:58]csum 0x2b
[10:37:58]v00069fa0
[10:37:58]~ld
[10:37:59]��n�r��n|�l�l`bbrl�nb�nl`�rl�l��[I][logger:034]: Log initialized
[10:37:59][C][safe_mode:079]: There have been 5 suspected unsuccessful boot attempts
[10:37:59][I][app:029]: Running through setup()...
[10:37:59][D][number:012]: 'iBoost Manual Boost Time': Sending state 15.000000
[10:37:59][C][wifi:047]: Setting up WiFi...
[10:37:59][C][wifi:060]: Starting WiFi...
[10:37:59][C][wifi:061]:   Local MAC: A0:20:A6:22:C6:A3
[10:37:59][D][wifi:481]: Starting scan...
[10:37:59][W][component:157]: Component wifi set Warning flag: scanning for networks
[10:38:04][D][wifi:496]: Found networks:
[10:38:05][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:05][D][wifi:541]:     Channel: 13
[10:38:05][D][wifi:542]:     RSSI: -62 dB
[10:38:05][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:05][D][wifi:541]:     Channel: 13
[10:38:05][D][wifi:542]:     RSSI: -68 dB
[10:38:05][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:05][D][wifi:541]:     Channel: 13
[10:38:05][D][wifi:542]:     RSSI: -72 dB
[10:38:05][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:05][D][wifi:541]:     Channel: 13
[10:38:05][D][wifi:542]:     RSSI: -78 dB
[10:38:05][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:05][D][wifi:541]:     Channel: 13
[10:38:05][D][wifi:542]:     RSSI: -80 dB
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:05][I][wifi:312]: WiFi Connecting to 'Sunnydene2.4'...
[10:38:08][I][wifi:616]: WiFi Connected!
[10:38:08][C][wifi:427]:   Local MAC: A0:20:A6:22:C6:A3
[10:38:08][C][wifi:432]:   SSID: [redacted]
[10:38:08][C][wifi:435]:   IP Address: 192.168.1.33
[10:38:08][C][wifi:438]:   BSSID: [redacted]
[10:38:08][C][wifi:440]:   Hostname: 'iboost'
[10:38:08][C][wifi:442]:   Signal strength: -62 dB ▂▄▆█
[10:38:08][C][wifi:446]:   Channel: 13
[10:38:08][C][wifi:447]:   Subnet: 255.255.255.0
[10:38:08][C][wifi:448]:   Gateway: 192.168.1.1
[10:38:08][C][wifi:449]:   DNS1: 192.168.1.1
[10:38:08][C][wifi:450]:   DNS2: 0.0.0.0
[10:38:08][D][wifi:625]: Disabling AP...
[10:38:08][C][api:025]: Setting up Home Assistant API server...
[10:38:08]SPI OK
[10:38:08][W][iBoost:113]: SPI OK
[10:38:10]
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

[10:38:10]Soft WDT reset
[10:38:10]
[10:38:10]Exception (4):
[10:38:10]epc1=0x40201029 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
[10:38:10]
[10:38:10]>>>stack>>>
[10:38:10]
[10:38:10]ctx: cont
[10:38:10]sp: 3ffffcd0 end: 3fffffd0 offset: 0160
[10:38:10]3ffffe30:  3ffffe50 00000034 3ffef91c 402011aa  
[10:38:10]3ffffe40:  3ffe8f17 33c134e0 3ffef91c 40201405  
[10:38:10]3ffffe50:  3ffe8f17 33c134e0 3ffef91c 40201579  
[10:38:10]3ffffe60:  00000000 3ffefac0 3ffef91c 4021230e  
[10:38:10]3ffffe70:  3fff12dc 0000000a 3ffef800 4021099d  
[10:38:10]3ffffe80:  00000006 00000006 3fff1b1c 40100b42  
[10:38:10]3ffffe90:  0000002c 00000014 00000005 3ffef800  
[10:38:10]3ffffea0:  3fff1784 00000020 3fff18cc 3ffef800  
[10:38:10]3ffffeb0:  3fff1784 3ffef928 3fffff64 4021418b  
[10:38:10]3ffffec0:  00000000 feefeffe feefeffe feefeffe  
[10:38:10]3ffffed0:  402274bc 00000000 7fc00000 00000000  
[10:38:10]3ffffee0:  3fff170c 3fff1710 3fff1710 00000000  
[10:38:10]3ffffef0:  3ffffef8 0000000d 78656c41 65646e61  
[10:38:10]3fffff00:  61334272 00000072 00000000 00000000  
[10:38:10]3fffff10:  00000000 00000000 00000000 00000000  
[10:38:10]3fffff20:  00000000 00000000 00000000 402274bc  
[10:38:10]3fffff30:  00000000 7fc00000 00000000 3fff16fc  
[10:38:10]3fffff40:  3fff1700 3fff1700 40227484 00000000  
[10:38:10]3fffff50:  7fc00000 00000000 3fff110c 3fff112c  
[10:38:10]3fffff60:  3fff112c 3fff18cc 3fff18d0 3fff18d0  
[10:38:10]3fffff70:  00000000 3fffff84 00000001 feefeffe  
[10:38:10]3fffff80:  feefeffe 3fff18ac feefeffe feefeffe  
[10:38:10]3fffff90:  3fff1864 00000000 3fffff64 feefeffe  
[10:38:10]3fffffa0:  feefeffe feefeffe feefeffe 3ffefcd0  
[10:38:10]3fffffb0:  3fffdad0 00000000 3ffefca4 40222814  
[10:38:10]3fffffc0:  feefeffe feefeffe 3fffdab0 40100465  
[10:38:10]<<<stack<<<
[10:38:10]
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

[10:38:10] ets Jan  8 2013,rst cause:1, boot mode:(3,7)
[10:38:10]
[10:38:10]load 0x4010f000, len 3424, room 16 
[10:38:10]tail 0
[10:38:10]chksum 0x2e
[10:38:10]load 0x3fff20b8, len 40, room 8 
[10:38:10]tail 0
[10:38:10]chksum 0x2b
[10:38:10]csum 0x2b
[10:38:10]v00069fa0
[10:38:10]~ld
[10:38:10]��n�r��n|�l�l`bbrl�nB�nl`�rl�l��[I][logger:034]: Log initialized
[10:38:10][C][safe_mode:079]: There have been 6 suspected unsuccessful boot attempts
[10:38:10][I][app:029]: Running through setup()...
[10:38:10][D][number:012]: 'iBoost Manual Boost Time': Sending state 15.000000
[10:38:10][C][wifi:047]: Setting up WiFi...
[10:38:10][C][wifi:060]: Starting WiFi...
[10:38:10][C][wifi:061]:   Local MAC: A0:20:A6:22:C6:A3
[10:38:10][D][wifi:481]: Starting scan...
[10:38:10][W][component:157]: Component wifi set Warning flag: scanning for networks
[10:38:16][D][wifi:496]: Found networks:
[10:38:16][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:16][D][wifi:541]:     Channel: 13
[10:38:16][D][wifi:542]:     RSSI: -60 dB
[10:38:16][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:16][D][wifi:541]:     Channel: 13
[10:38:16][D][wifi:542]:     RSSI: -66 dB
[10:38:16][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:16][D][wifi:541]:     Channel: 13
[10:38:16][D][wifi:542]:     RSSI: -70 dB
[10:38:16][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:16][D][wifi:541]:     Channel: 13
[10:38:16][D][wifi:542]:     RSSI: -75 dB
[10:38:16][I][wifi:539]: - 'Sunnydene2.4' [redacted]▂▄▆█
[10:38:16][D][wifi:541]:     Channel: 13
[10:38:16][D][wifi:542]:     RSSI: -77 dB
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][D][wifi:544]: - [redacted] [redacted]▂▄▆█
[10:38:16][I][wifi:312]: WiFi Connecting to 'Sunnydene2.4'...
[10:38:19][I][wifi:616]: WiFi Connected!
[10:38:19][C][wifi:427]:   Local MAC: A0:20:A6:22:C6:A3
[10:38:19][C][wifi:432]:   SSID: [redacted]
[10:38:19][C][wifi:435]:   IP Address: 192.168.1.33
[10:38:19][C][wifi:438]:   BSSID: [redacted]
[10:38:19][C][wifi:440]:   Hostname: 'iboost'
[10:38:19][C][wifi:442]:   Signal strength: -59 dB ▂▄▆█
[10:38:19][C][wifi:446]:   Channel: 13
[10:38:20][C][wifi:447]:   Subnet: 255.255.255.0
[10:38:20][C][wifi:448]:   Gateway: 192.168.1.1
[10:38:20][C][wifi:449]:   DNS1: 192.168.1.1
[10:38:20][C][wifi:450]:   DNS2: 0.0.0.0
[10:38:20][D][wifi:625]: Disabling AP...
[10:38:20][C][api:025]: Setting up Home Assistant API server...
[10:38:20]SPI OK
[10:38:20][W][iBoost:113]: SPI OK
srchild commented 3 months ago

The next message after SPI OK should be Radio OK - see the setup() code in iBoost.h.

It seems your CC1101 is not initiating properly. I guess that could be a problem in either code or hardware. Given that the code compiles OK, perhaps recheck your wiring. I have a vague memory that when I first tried this I had boot loops and found a problem with my soldering - resolving that fixed it.

Here's what I see on boot up:


[12:10:36][C][wifi:446]:   Channel: 9
[12:10:36][C][wifi:447]:   Subnet: 255.255.255.0
[12:10:36][C][wifi:448]:   Gateway: 192.168.1.1
[12:10:36][C][wifi:449]:   DNS1: 192.168.1.1
[12:10:36][C][wifi:450]:   DNS2: 0.0.0.0
[12:10:36][D][wifi:625]: Disabling AP...
[12:10:36][C][api:025]: Setting up Home Assistant API server...
[12:10:36]SPI OK
[12:10:36][W][iBoost:108]: SPI OK
[12:10:36]Radio OK
[12:10:36]Radio RX OK
[12:10:36]Setup Finished
[12:10:36][W][iBoost:160]: Setup Finished
[12:10:36][I][app:062]: setup() finished successfully!```
Fayrewood commented 3 months ago

Thank you for the detailed response. That is very helpful.

I have checked and double checked all of the wiring and whilst doing so, spotted a rogue bit of solder from bad manufacturing under the header pins, so I do now suspect that the board is faulty. I have requested a replacement and will try again and report back.

Thanks again!

Fayrewood commented 3 months ago

Damn!

Replacement radio received today. Same issues with the boot loop just after SPI:OK. This is so frustrating.

I've checked continuity from the ESP32 to CC1101 and everything is OK on all connections (including the CC1101-MISO + D6 + D2 link). I have 3.3v at the CC1101.

What else can I try?

Fayrewood commented 3 months ago
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

[19:03:12]Soft WDT reset
[19:03:12]
[19:03:12]Exception (4):
[19:03:12]epc1=0x402145b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
[19:03:12]
[19:03:12]>>>stack>>>
[19:03:12]
[19:03:12]ctx: cont
[19:03:12]sp: 3ffffcc0 end: 3fffffd0 offset: 0160
[19:03:12]3ffffe20:  3ffffe50 0000003d 3ffef92c 402011b1  
[19:03:12]3ffffe30:  3ffffe50 0000000f 3ffef92c 40201284  
[19:03:12]3ffffe40:  3ffe8f17 33c134e0 3ffef92c 402013e9  
[19:03:12]3ffffe50:  3ffe8f17 33c134e0 3ffef92c 40201579  
[19:03:12]3ffffe60:  00000000 3ffefad0 3ffef92c 4021230e  
[19:03:12]3ffffe70:  3fff12ec 0000000a 3ffef810 4021099d  
[19:03:12]3ffffe80:  00000006 00000006 3fff1b2c 40100b42  
[19:03:12]3ffffe90:  0000002c 00000014 00000005 3ffef810  
[19:03:12]3ffffea0:  3fff1794 00000020 3fff18dc 3ffef810  
[19:03:12]3ffffeb0:  3fff1794 3ffef938 3fffff64 4021418b  
[19:03:12]3ffffec0:  00000000 feefeffe feefeffe feefeffe  
[19:03:12]3ffffed0:  402274bc 00000000 7fc00000 00000000  
[19:03:12]3ffffee0:  3fff171c 3fff1720 3fff1720 00000000  
[19:03:12]3ffffef0:  3ffffef8 0000000d 78656c41 65646e61  
[19:03:12]3fffff00:  61334272 00000072 00000000 00000000  
[19:03:12]3fffff10:  00000000 00000000 00000000 00000000  
[19:03:12]3fffff20:  00000000 00000000 00000000 402274bc  
[19:03:12]3fffff30:  00000000 7fc00000 00000000 3fff170c  
[19:03:12]3fffff40:  3fff1710 3fff1710 40227484 00000000  
[19:03:12]3fffff50:  7fc00000 00000000 3fff111c 3fff113c  
[19:03:12]3fffff60:  3fff113c 3fff18dc 3fff18e0 3fff18e0  
[19:03:12]3fffff70:  00000000 3fffff84 00000001 feefeffe  
[19:03:12]3fffff80:  feefeffe 3fff18bc feefeffe feefeffe  
[19:03:12]3fffff90:  3fff1874 00000000 3fffff64 feefeffe  
[19:03:12]3fffffa0:  feefeffe feefeffe feefeffe 3ffefce0  
[19:03:12]3fffffb0:  3fffdad0 00000000 3ffefcb4 40222814  
[19:03:12]3fffffc0:  feefeffe feefeffe 3fffdab0 40100465  
[19:03:12]<<<stack<<<
[19:03:12]
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

[19:03:12] ets Jan  8 2013,rst cause:2, boot mode:(3,7)
[19:03:12]
[19:03:12]load 0x4010f000, len 3424, room 16 
[19:03:12]tail 0
[19:03:12]chksum 0x2e
[19:03:12]load 0x3fff20b8, len 40, room 8 
[19:03:12]tail 0
[19:03:12]chksum 0x2b
[19:03:12]csum 0x2b
[19:03:12]v00069fa0
[19:03:12]~ld
Fayrewood commented 2 months ago

Can anyone give me a link to a reliable source for the CC1101 board please? The two that I have received from eBay and Amazon either have no pin outs documented, or the documentation shows two different pin outs in the description. I am not convinced by the cheapo ones at all, so I am looking for a supply that is reliable with its actual pin outs and documentation.

Fayrewood commented 2 months ago

I have found the same looking board to the one that doesn't have any pinout or documentation provided, but it has 2x MISO pins labelled. Pins 6 & 7

Any idea which one is MISO and the other MOSI?

Screenshot 2024-08-20 at 12 53 18
Fayrewood commented 2 months ago

Closing now that I have successfully compiled the code using the esphome command line. Boot loops remain - will open a new clean issue for assistance.