Author Topic: Problem using RFm69 lib no end by flash.initialize()  (Read 1133 times)

andy-meyer

  • NewMember
  • *
  • Posts: 1
  • Country: de
Problem using RFm69 lib no end by flash.initialize()
« on: October 13, 2016, 07:58:41 AM »
Hi,

my problem is to use the RFM69HW with an Arduino MEGA 2560. I have checked this thread to https://lowpowerlab.com/forum/rf-range-antennas-rfm69-library/rmf69w-rfm69hw-and-arduino-mega-atmega2560-2560/. I have 2 RFM69HW and 2 Arduino MEGAs with the both problem.

My connection is (all connected with level shifter / converter):
RFM69W - Mega2560

GND  - GND
3,3V  - 3,3V from level-shifter and this is connected to MEGA2560 3,3V to
NSS   - D53 (SS)
SCK   - D52 (SCK)
MISO - D50 (MISO)
MOSI - D51 (MOSI)
DIO0 - D2 (INT0 on MEGA 2560 to)

I used all RFM69-Lib Samples and all work same, nothing.... So let talk about Struct_send.
I had only modified
Code: [Select]
SPIFlash flash(8, 0xEF30); //EF40 for 16mbit windbond chip
to
Code: [Select]
SPIFlash flash(53, 0xEF30); //EF40 for 16mbitwindbond chip
and
Code: [Select]
#define FREQUENCY   RF69_433MHZ
to
Code: [Select]
#define FREQUENCY   RF69_868MHZ

On Serial Console i only see:
Code: [Select]
Transmitting at 868 Mhz...
So the problem is that the perform flash.initialize() don`t finished. After many minutes nothing. If i disconnect the 3,3V than is the follow message present "SPI Flash Init FAIL! (is chip present?)".

In the RFM69.h i also tested with modify
Code: [Select]
#define RF69_SPI_CS     SS
to
Code: [Select]
#define RF69_SPI_CS   53
.
Now im out of Idea`s.

My Questions are:
1) Is the wirering correct?
2) Is the DIDO with Intterupt D2 used by flash.initialize()? So i can limit the problem
3) How can i check witch chip is used (EF30 / EF40, i tested both)?
4) How can i debug / check the SPI chip is present / scanning ?

Many thanks for helping!!!
Regards, Andy


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Problem using RFm69 lib no end by flash.initialize()
« Reply #1 on: October 13, 2016, 11:22:22 AM »
4) How can i debug / check the SPI chip is present / scanning ?

Do you know what the "SPI chip" refers to?
It's a physical chip which I don't think you even have. If not, you can completely remove the SPIFlash code, it's useless.

DenisJ

  • NewMember
  • *
  • Posts: 18
  • Country: it
Re: Problem using RFm69 lib no end by flash.initialize()
« Reply #2 on: January 17, 2017, 08:23:26 AM »
andy-meyer@ Do you solve the communication between arduino mega 2560 please ?
...is the R3 model ?

Thanks in advance
Denis