WiFly not working - solution....

Just got a WiFly and was having problems - nothing worked inc the terminal routine. I’d just see this:

WiFly Shield Terminal Routine
Bridge initialized successfully!
?WG????77???@'?7o??w??@77??緟a???G??y?6??@g???Ƕ???0?

Turns out that the xtal has changed from a 12.288MHz to a 14.756MHz on the WiFly’s I have. You need to change the SPI-UART bridge init parameters from:

struct SPI_UART_cfg SPI_Uart_config = {
  0x50,0x00,0x03,0x10};

…to…

struct SPI_UART_cfg SPI_Uart_config = {
  0x60,0x00,0x03,0x10};

…then it’ll all work fine. Hope that helps other people who are scratching their heads… maybe this was documented somewhere but I must have missed it.

Thanks for your update, I’ve passed on your solution to the engineer who wrote the tutorial.

I’ll work on making the change available in the WiFly library also.

–Philip;

Thanks for this tip. It’s May 2012 (almost 2 years later) and I was going crazy trying to figure this out and found your posted fix. I’m surprised the code hasn’t been updated?