ATWILC1000-MR110PB Linux SPI Driver and Communication

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

Mustafa
Posts: 2
Joined: Fri Sep 28, 2018 10:20 am

ATWILC1000-MR110PB Linux SPI Driver and Communication

Tue Oct 02, 2018 3:35 pm

Hello;

I have been working on the IMX28 processor development kit and I want to implement atwilc1000-MR110PB wifi module with spi communication . I have done all the required spi connections and driver implementations. Driver successfully probed to the system.

Also for SPI communication, I implemented 2-parallel 2.2M Ohm for to get 1M Ohm pull-up resistor to the SDIO_SPI_CFG pin. Then make SDIO_SPI_CFG connection to the VDDIO pin. Because of the, all grounds are connected togather I just gave GND from just one pin. Also I have experienced the 30 ms dleay between CHIP_EN and RESETN pin. In that system , which everything should work fine, I cannot get the CMD response from the WIFI module. I think the SPI_CFG pin is not correctly configured. I cant talk with the module.


I really didnt understand what Am I missing ?. I would be very appreciated if you help me about that problem.
Thank you.

Best Regards
Last edited by Mustafa on Thu Oct 18, 2018 3:23 pm, edited 1 time in total.
blue_z
Location: USA
Posts: 1745
Joined: Thu Apr 19, 2007 10:15 pm

Re: ATWILC1000-MR110PB Linux SPI Driver and Communication

Thu Oct 04, 2018 7:34 pm

What kernel version are you using?
Which version of the WILC1000 driver are you using?
Where are the "images"?

Regards
Mustafa
Posts: 2
Joined: Fri Sep 28, 2018 10:20 am

Re: ATWILC1000-MR110PB Linux SPI Driver and Communication

Thu Oct 18, 2018 3:23 pm

blue_z wrote:
Thu Oct 04, 2018 7:34 pm
What kernel version are you using?
Which version of the WILC1000 driver are you using?
Where are the "images"?

Regards
I am using Linux-3.14.79-rt85
WILC1000 driver is the latest version 15.01v

I tried to upload images but it is not allowed I guess
the images are about the output of the logic analyzer of SPI which is not so much important. SPI cmd responses are always 0.

Linux output;

root@TQMa28:~ ifconfig wlan0 up

[ 747.338053] WILC_SPI spi1.0 wlan0: INFO [wilc_mac_open]MAC OPEN[c6d0e000] wlan0
[ 747.346619] power up request for already powered up source Wifi
[ 747.352706] Device already up. request source is Wifi
[ 747.359621] WILC_SPI spi1.0 wlan0: INFO [wilc_init_host_int]Host[c6d0e000][c6d51000]
[ 747.369557] WILC_SPI spi1.0 wlan0: INFO [wilc_mac_open]*** re-init ***
[ 747.376770] WILC_SPI spi1.0 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[ 747.385374] WILC_SPI spi1.0 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[ 747.395657] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.402326] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.425390] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.432054] WILC_SPI spi1.0: Failed cmd reset
[ 747.437484] WILC_SPI spi1.0: Reset and retry 10 24
[ 747.454721] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.461392] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.484626] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.491297] WILC_SPI spi1.0: Failed cmd reset
[ 747.496686] WILC_SPI spi1.0: Reset and retry 9 24
[ 747.514716] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.521384] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.544624] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.551290] WILC_SPI spi1.0: Failed cmd reset
[ 747.556701] WILC_SPI spi1.0: Reset and retry 8 24
[ 747.574717] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.581381] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.604625] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.611294] WILC_SPI spi1.0: Failed cmd reset
[ 747.616690] WILC_SPI spi1.0: Reset and retry 7 24
[ 747.634717] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.641383] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.664619] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.671280] WILC_SPI spi1.0: Failed cmd reset
[ 747.676692] WILC_SPI spi1.0: Reset and retry 6 24
[ 747.694713] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.701379] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.724625] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.731294] WILC_SPI spi1.0: Failed cmd reset
[ 747.737140] WILC_SPI spi1.0: Reset and retry 5 24
[ 747.755271] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.761936] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.784621] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.791281] WILC_SPI spi1.0: Failed cmd reset
[ 747.796700] WILC_SPI spi1.0: Reset and retry 4 24
[ 747.814720] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.821384] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.844623] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.851287] WILC_SPI spi1.0: Failed cmd reset
[ 747.856701] WILC_SPI spi1.0: Reset and retry 3 24
[ 747.874711] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.881374] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.904626] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.911296] WILC_SPI spi1.0: Failed cmd reset
[ 747.916700] WILC_SPI spi1.0: Reset and retry 2 24
[ 747.934714] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 747.941377] WILC_SPI spi1.0: Failed internal read cmd...
[ 747.964625] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 747.971296] WILC_SPI spi1.0: Failed cmd reset
[ 747.976690] WILC_SPI spi1.0: Reset and retry 1 24
[ 747.993796] WILC_SPI spi1.0: Failed read with CRC on, retrying with CRC off
[ 748.001883] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.009296] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.034599] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.041267] WILC_SPI spi1.0: Failed cmd reset
[ 748.046702] WILC_SPI spi1.0: Reset and retry 10 24
[ 748.064672] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.071339] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.094603] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.101272] WILC_SPI spi1.0: Failed cmd reset
[ 748.106682] WILC_SPI spi1.0: Reset and retry 9 24
[ 748.124664] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.131329] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.154589] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.161255] WILC_SPI spi1.0: Failed cmd reset
[ 748.166690] WILC_SPI spi1.0: Reset and retry 8 24
[ 748.184672] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.191340] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.214607] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.221275] WILC_SPI spi1.0: Failed cmd reset
[ 748.226675] WILC_SPI spi1.0: Reset and retry 7 24
[ 748.244676] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.251343] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.274610] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.281281] WILC_SPI spi1.0: Failed cmd reset
[ 748.286681] WILC_SPI spi1.0: Reset and retry 6 24
[ 748.304675] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.311344] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.334604] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.341273] WILC_SPI spi1.0: Failed cmd reset
[ 748.346701] WILC_SPI spi1.0: Reset and retry 5 24
[ 748.364676] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.371341] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.394591] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.401255] WILC_SPI spi1.0: Failed cmd reset
[ 748.406693] WILC_SPI spi1.0: Reset and retry 4 24
[ 748.426581] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.433246] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.454606] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.461274] WILC_SPI spi1.0: Failed cmd reset
[ 748.466690] WILC_SPI spi1.0: Reset and retry 3 24
[ 748.484672] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.491341] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.514581] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.521249] WILC_SPI spi1.0: Failed cmd reset
[ 748.526694] WILC_SPI spi1.0: Reset and retry 2 24
[ 748.544664] WILC_SPI spi1.0: Failed cmd response, cmd (c4), resp (00)
[ 748.551334] WILC_SPI spi1.0: Failed internal read cmd...
[ 748.574613] WILC_SPI spi1.0: Failed cmd response, cmd (cf), resp (00)
[ 748.581280] WILC_SPI spi1.0: Failed cmd reset
[ 748.586684] WILC_SPI spi1.0: Reset and retry 1 24
[ 748.603795] WILC_SPI spi1.0: Failed internal read protocol...
[ 748.609805] WILC_SPI spi1.0 wlan0: ERR [wilc_wlan_initialize: 1157] I[ 748.689308] WILC_SPI spi1.0 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[ 748.698526] WILC_SPI spi1.0 wlan0: ERR [wi[ 748.810757] WILC_SPI spi1.0 wlan0: ERR [wilc_mac_open: 1294] Failed to initialize wilc
[ 748.821339] WILC_SPI spi1.0 wlan0: ERR [wilc_send_config_pkt: 1929] Set Timed out
[ 748.829329] WILC_SPI spi1.0 wlan0: ERR [handle_set_wfi_drv_handler[ 748.919387] WILC_SPI spi1.0 wlan0: Host cmd 24 failed
[ 748.926526] WILC_SPI spi1.0 wlan0: ERR [host_if_work: 3000] [Host Interface] undefined
ifconfig: SIOCSIFFLAGS: Input/output error


I also bought atwilc1000-sd, and I tried it with sdio interface, it worked but I need SPI interface. So I made changes accouding to atwilc1000-sd documantation to use spi interface but the result is the same. I dont understand what am I doing wrong ?

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 2 guests