Forum Rule: Always post complete source code & details to reproduce any issue!
Page 3 of 3 FirstFirst 1 2 3
Results 51 to 54 of 54

Thread: Probable race condition in Radiohead library

  1. #51
    Junior Member
    Join Date
    Jun 2017
    Location
    NL
    Posts
    13
    Hi,
    I think I found the real root cause of the issue. For a Teensy 3.5 at 72 MHz or above the 100ns Hold-up time for NSS after the falling edge of the SCK line is not adhered to. At 72 MHz the timing margin is too narrow, at 96 and 120 MHz NSS rises high already when SCK is still high. For details see attached.
    A workaround is described as well.
    Something nice with a real defined delay at the end of the last spi clock cycle is a bit too much for my current coding skills within these myriad of files.
    But I might get there.
    Pim
    Attached Files Attached Files

  2. #52
    I'm having the same issue with RH_ASK. It's freezing on the second call to driver.waitPacketSent(0)
    Using TeensyDuino 1.3.6 and the most recent zip of RH from GITHUB.

  3. #53
    Junior Member
    Join Date
    Jun 2017
    Location
    NL
    Posts
    13
    Hi,
    1. Github is large but not the place where the latest RH library is. It can be found here: http://www.airspayce.com/mikem/arduino/RadioHead/
    2. The ASK interface is not based on SPI unlike the RF95 interface which is based on SPI. Hence the solution above very likely is not applicable.

    Pim
    Quote Originally Posted by Break Stuff View Post
    I'm having the same issue with RH_ASK. It's freezing on the second call to driver.waitPacketSent(0)
    Using TeensyDuino 1.3.6 and the most recent zip of RH from GITHUB.

  4. #54
    Junior Member
    Join Date
    Aug 2017
    Posts
    1
    Hello!

    I'm having the same problem, stuck at rf95.waitPacketSent(); with and example code from Dragino that can be found here:
    https://github.com/dragino/Arduino-P...nt_Arduino.ino

    I'm using an ATMega328P with a 3.3v power supply @ 8MHz w/external xtal; and a Lora BEE module pre-loaded with 915Mhz freq.

    Can anyone help me? I'm testing those modules and don't know where to go from here. Thank you in advance!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •