Main Site Documentation

Exception when enabling RS21 on Fez Cobra


#1

My hardware is:

  • Fez Cobra 1.3
  • Rs21 Module 1.1

The firmware is updated to “4.1.8.0” release.

This is my code:


        GHIElectronics.NETMF.Net.WiFi.Enable(GHIElectronics.NETMF.Net.WiFi.HardwareModule.RS9110_N_11_21_1_Compatible,
          Microsoft.SPOT.Hardware.SPI.SPI_module.SPI2,
          (Cpu.Pin)2,
          (Cpu.Pin)26,
          (Cpu.Pin)3);


The system throw this exception:

Exception System.Exception - 0xffffffff (1)

#### Message: 
#### GHIElectronics.NETMF.Net.RS21Driver::SetBootloadOption [IP: 0000] ####
#### GHIElectronics.NETMF.Net.WiFi::Enable [IP: 0051] ####
#### Modulus.Logic.Board::Initialize [IP: 004f] ####
#### Modulus.Program::myApp_Startup [IP: 0005] ####
#### Microsoft.SPOT.Application::OnStartup [IP: 000f] ####
#### Microsoft.SPOT.Application::StartupCallback [IP: 0007] ####
#### Microsoft.SPOT.Dispatcher::PushFrameImpl [IP: 004a] ####
#### Microsoft.SPOT.Dispatcher::PushFrame [IP: 001d] ####
#### Microsoft.SPOT.Dispatcher::Run [IP: 0006] ####
#### Microsoft.SPOT.Application::Run [IP: 0062] ####
#### Microsoft.SPOT.Application::Run [IP: 0005] ####
#### Modulus.Program::Main [IP: 0069] ####

GHI Wifi ErrorCode returned is “ErrorCode.HardwareCommunicationFailure”

Any suggestion ?

Thanks


#2

To me, without one of those devices to know any better, that error seems to imply it can’t see the Wifi device on those pins. Are you sure they’re right? How are they connected, is there any chance that you’d have some dodgy connections??


#3

You can see two images that show the connections:

https://docs.google.com/open?id=0B1xISyClOZftQnpiYVVxTE5tYTA

https://docs.google.com/open?id=0B1xISyClOZftMlgyNDhraHNtZDA


#4

second image


#5

mmm, ok, sorry I’m going to opt out of the conversation now, since there’s obviously a standard cable involved ! An interesting note is that the rev 1.2 gadgeteer module no longer has the UEXT header.


#6

Hello Emanuele,

Please follow the example code found in WiFi class library documentation.
http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/html/7481f4d9-b4bc-f53d-e6bb-3a1ae861c9ef.htm


#7

My code is based on your documentation.

I also tried the UpdateFirmware method but without success.

Some additional information on my case:

  1. when I reset my fez-cobra (with hardware button) the led on wifi card is on
  2. after the wifi initialization, the code throw an exception and the wifi led is off

#8

anyone can help me ?