Spark Logic

STM32-RFM69

Hello!

I’m trying to use an RFM69HWRFM69HWCommunications, navigation, interfaces and RFID…Logic archive STM32-RFM69 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE board (the project is this: I’ve just updated the STM32 co…View in hardware catalog module with the STM32F401RESTM32F401REMicrocontrollers and processors…9 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE board (the project is this: I’ve just updated the STM32 cores to the latest availa…View in hardware catalog board (the project is this: https://github.com/brainelectronics/RFM69-STM32). I’ve just updated the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog cores to the latest available version: 24.11.2017 (Arduino IDE v1.6.9) but I get this error while compiling:

Arduino: 1.6.9 (Windows 7), Board: "Nucleo-64, Nucleo F401RE, Mass Storage, Generic Serial, None, Smallest (-Os default)"

Build options changed, rebuilding all
In file included from C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\cores\arduino/STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /PinNames.h:25:0,

from C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\cores\arduino/STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /pinmap.h:22,

from C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\cores\arduino/STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /PeripheralPins.h:34,

from C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\cores\arduino/pins_arduino.h:21,

from C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\variants\NucleoNucleoDevelopment and computing boards…o have this dev board for BlueNRG at a pretty hefty price tag though, hopefully the ‘ nucleo ’ & common dev board versions would be out soon Laughing … 007v1.html oops/oh found an…View in hardware catalog _F401RE\variant.h:26,

from C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\variants\NucleoNucleoDevelopment and computing boards…o have this dev board for BlueNRG at a pretty hefty price tag though, hopefully the ‘ nucleo ’ & common dev board versions would be out soon Laughing … 007v1.html oops/oh found an…View in hardware catalog _F401RE\variant.cpp:19:

C:\Users\Kylix\AppData\Local\Arduino15\packages\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \hardware\STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog \2017.11.24\cores\arduino/STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /PortNames.h:74:17: error: expected constructor, destructor, or type conversion before '(' token

_Static_assert (LastPort <= 0x0F, "PortName must be less than 16");

^

exit status 1
Error compiling for board NUCLEO-64NUCLEO-64Development and computing boards…DE v1.6.9) but I get this error while compiling: Arduino: 1.6.9 (Windows 7), Board: " Nucleo-64 , Nucleo F401RE, Mass Storage, Generic Serial, None, Smallest (-Os default)" Build…View in hardware catalog .

Replies20

Mon Dec 04, 2017 5:56 am

Hi,

for the first issue:
_Static_assert (LastPort <= 0x0F, "PortName must be less than 16");

Mon Dec 04, 2017 10:14 am

I’m using Arduino IDE 1.6.9 on Windows, with STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Core installed through the Board Manager. What else should I do in order to have the right gcc version?

It’s strange that nobody has tried those libraries on F401RE yet …
In July I was able to compile it without errors for an STM32L053R8STM32L053R8Microcontrollers and processors…ose libraries on F401RE yet … In July I was able to compile it without errors for an STM32L053R8 board (I was using a different version of the STM32 Core package) but there was no…View in hardware catalog board (I was using a different version of the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Core package) but there was no signal getting out of the RFM69HWRFM69HWCommunications, navigation, interfaces and RFID…Logic archive STM32-RFM69 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE board (the project is this: I’ve just updated the STM32 co…View in hardware catalog module (checked with SDRSharp software and USB dongle). I suppose the problem could be related to libmaple compatibility you were talking about…

In the second library, the pins are not hardcoded: https://github.com/goran-mahovlic/RFM69-STM32

Thanks for your time!

Mon Dec 04, 2017 8:18 pm

[kylix – Mon Dec 04, 2017 10:14 am] –
It’s strange that nobody has tried those libraries on F401RE yet …

Maybe some have tested and fix issue themselves in the code library… :roll:

For this one, https://github.com/goran-mahovlic/RFM69-STM32
I’ve just tested and it still some SPI_def which has not been renamed.
I’ve only added #define SPI_def SPI

Mon Dec 04, 2017 10:08 pm

Thanks! It now compiles after adding “#define SPI_def SPI” and deleting the other version of gcc.
I’ll let you know in case it works with the RFM69RFM69Communications, navigation, interfaces and RFIDSpark Logic archive STM32- RFM69 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE boar…View in hardware catalog module (hope to get some spare time during the weekend).

Fri Dec 08, 2017 3:31 pm

The SPI seems to work as I can read RFM69RFM69Communications, navigation, interfaces and RFIDSpark Logic archive STM32- RFM69 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE boar…View in hardware catalog ’s registry and temperature. Unfortunately, it doesn’t transmit anything at all…
As IRQ pin I tried both PA3 and PA10.

Fri Dec 08, 2017 8:27 pm

I think there is a bug in line 150: it should be _interruptPin instead of _interruptNum.

Fri Dec 08, 2017 9:12 pm

They are both used:
uint8_t _interruptPin;
uint8_t _interruptNum;

Fri Dec 08, 2017 9:18 pm

attachInterrupt() needs as first parameter the interrupt pin, not the interrupt number (whatever it supposed to mean).

Fri Dec 08, 2017 9:22 pm

Line 49: https://github.com/goran-mahovlic/RFM69 … M69STM32.h

I think one is used for defining the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog PIN and the other for the equivalent PIN on Arduino.

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:

#define RF69_IRQ_PIN   3
#define RF69_IRQ_NUM 3

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.)

Fri Dec 08, 2017 9:42 pm

Do you think this would work (instead of changing the .cpp file):
#define RF69_IRQ_PIN 0
#define RF69_IRQ_NUM PA3 ?

Fri Dec 08, 2017 9:44 pm

Replace in line 150
attachInterrupt(_interruptNum, RFM69STM32::isr0, RISING);

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:

      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');
}

Wed Dec 13, 2017 7:16 pm

I’ve tried again with:
#define IRQPIN PA3
RFM69STM32 radio(CSPIN, IRQPIN, true, 3);

Wed Dec 13, 2017 7:34 pm

[kylix – Fri Dec 08, 2017 9:36 pm] –
The library you pointed to, I’m using it with Moteino and RFM69HWRFM69HWCommunications, navigation, interfaces and RFID…Logic archive STM32-RFM69 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE board (the project is this: I’ve just updated the STM32 co…View in hardware catalog 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_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog or the STM32DUINO core?

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 STM32F401RESTM32F401REMicrocontrollers and processors…9 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE board (the project is this: I’ve just updated the STM32 cores to the latest availa…View in hardware catalog 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)

Wed Dec 13, 2017 7:38 pm

Which original library?

Wed Dec 13, 2017 7:43 pm

At the moment I’m trying to make this library work with STM32F401RESTM32F401REMicrocontrollers and processors…9 kylix Sun Dec 03, 2017 7:55 pm Hello! I’m trying to use an RFM69HW module with the STM32F401RE board (the project is this: I’ve just updated the STM32 cores to the latest availa…View in hardware catalog 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)

Post a reply

Optional · up to 10 MiB