STM32-RFM69

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
kylix
Posts: 18
Joined: Mon Jul 10, 2017 6:30 pm

Re: STM32-RFM69

Post by kylix » Wed Dec 13, 2017 7:43 pm

At the moment I'm trying to make this library work with STM32F401RE board: https://github.com/brainelectronics/RFM69-STM32

The original Lowpower Lab's library I'm only using with an Arduino compatible board and it works only on Arduino as it is (https://github.com/LowPowerLab/RFM69)

stevestrong
Posts: 1928
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: STM32-RFM69

Post by stevestrong » Wed Dec 13, 2017 9:02 pm

Asking again: which core do you use? Arduino_STM32 or the STM32DUINO?

fpiSTM
Posts: 268
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: STM32-RFM69

Post by fpiSTM » Wed Dec 13, 2017 9:09 pm

kylix wrote:
Sun Dec 03, 2017 7:55 pm
I've just updated the STM32 cores to the latest available version: 24.11.2017 (Arduino IDE v1.6.9) but I get this error while compiling:
I assume you use the STM core and you use the Nucleo F401. PA3 is used for Serial RX (via STLINK) so avoid to use it for attach interrupt.

By default your example (ino) set irqnum to 3. Even if it is a wrong name as it should be irqpin for attachinterrupt (as Steve already said several time).
https://github.com/brainelectronics/RFM ... 32.ino#L63

So attach interrupt is done on D3. For Nucleo F401, it is the PB3, //D3
So IRQ_PIN in the sketch should be set to PB3 instead of PA3.
https://github.com/brainelectronics/RFM ... 32.ino#L29

I think you have a misalignment with the pin.

kylix
Posts: 18
Joined: Mon Jul 10, 2017 6:30 pm

Re: STM32-RFM69

Post by kylix » Wed Dec 13, 2017 9:53 pm

Yes, I've just checked and I confirm that in "Boards manager" (Arduino IDE) I have "STM32 Cores by ST-Microelectronics" installed.

I'll try to connect the IRQ PIN to PB3

THANKS!

PS: changed as it follows

Code: Select all

#define IRQPIN     PB3
RFM69STM32 radio(CSPIN, IRQPIN, true, 3); (true is needed for RFM69HW module)
attachInterrupt(_interruptPin, RFM69STM32::isr0, RISING);
Connected RFM69's DI00 pin to D3 on F401RE board and now it hangs here (and I can't read the temperature from the RFM69 module anymore):
Transmitting at 433 Mhz...
Sending[0]:

It still...does something: it acts as a 433Mhz jammer now (I have some 433Mhz nodes that send sensor data to a Raspberry Pi gateway and since I connected this STM32 node, I don't get any data on the gateway :D )

kylix
Posts: 18
Joined: Mon Jul 10, 2017 6:30 pm

Re: STM32-RFM69

Post by kylix » Sat Dec 23, 2017 11:26 am

Other suggestions?

Post Reply