Re: Weird hangs RFM69 + WeAct Blackpill V2
Posted: Mon Apr 19, 2021 4:31 pm
Edit: After all my changes still nothing!
The exact same issue. I think I will give libmaple a try next thanks. But I will definitely do some more in depth debugging to see exactly where it hangs. I tried every SPI clock speed from 1 to 8mhz.
Edit2: I did some debugging and found the exact line it hangs on in the function:
It hangs waiting for the SPI mode to change, on the fixed board it seems to hang forever on the while loop. It is failing on a call to setModeTx. After fixing the wiring it hangs forever in this loop trying to switch to transmit mode.

Edit2: I did some debugging and found the exact line it hangs on in the function:
Code: Select all
void RH_RF69::setOpMode(uint8_t mode)
{
uint8_t opmode = spiRead(RH_RF69_REG_01_OPMODE);
opmode &= ~RH_RF69_OPMODE_MODE;
opmode |= (mode & RH_RF69_OPMODE_MODE);
spiWrite(RH_RF69_REG_01_OPMODE, opmode);
// Wait for mode to change.
while (!(spiRead(RH_RF69_REG_27_IRQFLAGS1) & RH_RF69_IRQFLAGS1_MODEREADY))
;
}