etherkit / Si5351Arduino

Library for the Si5351 clock generator IC in the Arduino environment
GNU General Public License v3.0
233 stars 95 forks source link

Hang on init #37

Closed michelinok closed 7 years ago

michelinok commented 7 years ago

Hi! i'm trying a simple sketch...but it hang (no error in compiling sequence) when i init the si5351

si5351.init(SI5351_CRYSTAL_LOAD_8PF, 0, 0);

the arduino just sit there. Any idea?

DallasEpperson commented 7 years ago

Are you sure you have the si5351 connected to the arduino using the correct pins? If not, the i2c connection won't establish.

michelinok commented 7 years ago

Yes, i'm sure it's connected in the right way because if i use the adafruit example it works. I've used this tutorial:

https://learn.adafruit.com/adafruit-si5351-clock-generator-breakout/wiring-and-test

And it works.

Any help is really appreciated.

michelinok commented 7 years ago

Ok...found that the problem is instead on jtencode.jt65_encode(message, tx_buffer); I'll open a ticket on jtencode library to explain