firmware icon indicating copy to clipboard operation
firmware copied to clipboard

M5StickS3 + RF Pack S3: intermittent CC1101 SPI read errors and stalls in a standalone test

Open MilesYP opened this issue 1 week ago • 0 comments

Summary

I saw a flat RSSI Spectrum reading (around −50 to −55 dBm) and occasional “CC1101 not found” messages in Bruce 1.16.1 on an M5StickS3 with an RF Pack S3. PINGEQUA suspected firmware issues and suggested opening an issue here. My replacement case with the seller is still open.

The SPI measurements below came from my standalone, receive-only rssi-test firmware. It uses the same bmorcelli SmartRC CC1101 driver as Bruce, pinned in my build to 7bba5217dc0632f718a3278dc27e401016741a95, on a different ESP32 software stack. I have not measured the same error rate or reproduced these stalls inside Bruce. The cause of the SPI failures and their relationship to the Bruce symptoms remain open.

Test setup

  • One M5StickS3 + RF Pack S3. The CC1101 uses SPI2 (Arduino FSPI), with SCK GPIO5, MISO GPIO4, MOSI GPIO6, CS GPIO2, and GDO0 GPIO3. The nRF24 CE stays low and the nRF24 and SD chip selects stay high during CC1101 access.
  • PlatformIO [email protected] (Arduino ESP32 2.0.17 / ESP-IDF 4.4). The driver's checkMISO() wait is active on this stack. The test calls SmartRC Init() once per boot.
  • Reproducer source and PlatformIO project

Steps to reproduce

  1. Fit the RF Pack S3 and its sub-GHz antenna. If the device is running the M5S3Pack project firmware, send q0 in its serial monitor immediately before flashing to disable its retained power-controller watchdog.
  2. Build and upload the linked rssi-test project with PlatformIO (pio run -t upload -t monitor from rssi-test/). Before testing, unplug USB, power the unit fully off, wait 10 seconds, then reconnect and open the serial monitor at 115200 baud. An ESP32 reset alone leaves the RF Pack powered. Start in MONITOR mode, which is the default after boot.
  3. Hold the side B button for at least one second and release it. Look for SPI reliability test (v6.5), then [state] IDLE and [state] RX. Each phase logs raw register values and tests 50 reads per inter-read gap. For the read-only VERSION register (0x31), the expected value on this unit is 0x14. Check the gap ... err ... hang ... and consensus: lines.
  4. When MONITOR returns, look for [hang ...] ... rssi read took ... ms or Fail checking MISO pin. Run the test again after a few seconds as a comparison. To test the back-to-back case, start holding B as soon as MONITOR returns and release once it reaches the one-second threshold, with no added pause. Firmware v6.5 limits the main test after repeated timeouts and then attempts recovery with SIDLE (enter idle). If timed-out reads persist after it returns to monitoring, power-cycle the unit.

Observed results

  • Earlier v6.4 measurements across six rounds had roughly 0.5% incorrect values per single-register read in both IDLE and RX. Across 12 sets of 200 reads, a typical set returned one wrong value. The v6.5 steps above use smaller batches, so individual rows can show zero errors.
  • The errors can cluster. In two v6.4 measurements, accepting two consecutive matching reads still produced 1/200 and 14/200 wrong results. Some unexpected bytes resemble CC1101 transaction status bytes. The captured data does not establish why those bytes were returned.
  • After an intensive test round of roughly 900 SPI transactions, a subsequent RSSI read sometimes took about 2 seconds and then recovered (2 of 6 rounds, with one recorded duration of 2,022 ms). The delay is consistent with two driver waits of roughly one second each.
  • In the original back-to-back test with no gap, SPI stopped responding and did not recover on its own. Successive reads logged MISO timeouts until the board was reset. A gap of about two seconds between rounds allowed both to finish in our comparison. Ordinary RSSI sampling at a 2 ms interval ran for more than five minutes without a stall.

Full measurement notes and test conditions

What would help

Have you seen similar RSSI readings or intermittent “CC1101 not found” messages in Bruce on the M5StickS3 with the RF Pack S3? If there are specific logs or diagnostic steps that would help determine whether the standalone SPI findings are related to what I saw in Bruce, I’m happy to collect more data.

MilesYP avatar Nov 24 '26 16:11 MilesYP