STM32-RFM69

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
stevestrong
Posts: 1950
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: STM32-RFM69

Post by stevestrong » Fri Dec 08, 2017 9:30 pm

I saw that.
My previous comment still applies. Sorry if you don't want to try it. Good luck.

Btw, I used to use this lib: https://github.com/LowPowerLab/RFM69

Btw 2, it seems that you are double posting: viewtopic.php?f=15&t=1582&hilit=rfm69&start=10#p31497

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

Re: STM32-RFM69

Post by kylix » Fri Dec 08, 2017 9:36 pm

Hi Steve,

you got me wrong! I appreciate all the suggestions you give.
It's just I've already tried to assign the same value, something like:

Code: Select all

#define RF69_IRQ_PIN   3
#define RF69_IRQ_NUM 3
and it was still not working.

The library you pointed to, I'm using it with Moteino and RFM69HW and it works flawlessly.

I thought the right section should be STM32F4 boards...that's why I posted here.

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

Re: STM32-RFM69

Post by stevestrong » Fri Dec 08, 2017 9:40 pm

Again:
attachInterrupt() needs as first parameter the interrupt pin

Please specify the pin in PXY format (ex. PA3, PB8, etc.)

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

Re: STM32-RFM69

Post by kylix » Fri Dec 08, 2017 9:42 pm

Do you think this would work (instead of changing the .cpp file):

Code: Select all

#define RF69_IRQ_PIN 0
#define RF69_IRQ_NUM PA3 ?

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

Re: STM32-RFM69

Post by stevestrong » Fri Dec 08, 2017 9:44 pm

Replace in line 150

Code: Select all

 attachInterrupt(_interruptNum, RFM69STM32::isr0, RISING);
with this one:

Code: Select all

 attachInterrupt(_interruptPin, RFM69STM32::isr0, RISING); // use _interruptPin !!! or PA3
Why not change the cpp file?

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

Re: STM32-RFM69

Post by kylix » Fri Dec 08, 2017 9:45 pm

Testing right now!

PS: compiled but it's not working. In addition, I cannot read anymore the temperature with:

Code: Select all

      if (input == 't')
      {
        byte temperature =  radio.readTemperature(-1); // -1 = user cal factor, adjust for correct ambient
        byte fTemp = 1.8 * temperature + 32; // 9/5=1.8
        Serial.print( "Radio Temp is ");
        Serial.print(temperature);
        Serial.print("C, ");
        Serial.print(fTemp); //converting to F loses some resolution, obvious when C is on edge between 2 values (ie 26C=78F, 27C=80F)
        Serial.println('F');
      }
the board just hangs


Also tried:

Code: Select all

#define RF69_IRQ_PIN PA10
#define RF69_IRQ_NUM 2
and

Code: Select all

#define IRQPIN     PA10
in the sketch

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

Re: STM32-RFM69

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

I've tried again with:

Code: Select all

#define IRQPIN PA3

 RFM69STM32 radio(CSPIN, IRQPIN, true, 3);
but it only acts as a jammer for the other 433Mhz sensors I have in the house.

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

Re: STM32-RFM69

Post by stevestrong » Wed Dec 13, 2017 7:34 pm

kylix wrote:
Fri Dec 08, 2017 9:36 pm
The library you pointed to, I'm using it with Moteino and RFM69HW and it works flawlessly.
I think you should use the same library which is working.
Please also post a simple test sketch to reproduce the problem.

Btw, which core do you use? The Arduino_STM32 or the STM32DUINO core?

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

Re: STM32-RFM69

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

Hi Steve,

I'm using the original library with Moteino (an Arduino clone).

The sketch I'm using with STM32F401RE is this: https://github.com/brainelectronics/RFM ... -STM32.ino

I only tried to connect the IRQ to PA3 or PA10 for testing (obviously, changing the settings accordingly)

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

Re: STM32-RFM69

Post by stevestrong » Wed Dec 13, 2017 7:38 pm

Which original library?

Post Reply