MQX4.0 and TWR-WIFI-AR4100 patch?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX4.0 and TWR-WIFI-AR4100 patch?

14,286件の閲覧回数
fireblade
Contributor I

i just obtained a TWR-WIFI-AR4100 and instructions says to install an "enablement patch for MQX" but there are only versions for MQX 3.6.2 and 3.7 listed in downloads (http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-WIFI-AR4100&fpsp=1&tab=Design_Too...)

does this mean that it is already enabled in MQX4.0 or that no patch exists?

タグ(2)
25 返答(返信)

1,385件の閲覧回数
ThomNet
Contributor III

Hi Sebastian,

are you using your WiFi application in "adhoc" or in "managed" mode?

Thomas

0 件の賞賛
返信

1,385件の閲覧回数
aisebastian
Contributor II

Hi Thomas,

I tried only managed

Sebastian

0 件の賞賛
返信

1,385件の閲覧回数
ThomNet
Contributor III

Sebastian,

I'm using the TWR-K60N512 board with the same application and it's working, but only,when I make a power up reset. If I just push the reset button with power left attached, I'm getting the same error massage as you get. I have no idea, why, but may be, that information helps!?

Regards

Thomas

0 件の賞賛
返信

1,385件の閲覧回数
aisebastian
Contributor II

Hi,

I am running mqx 3.8 and k60f120m. I went through the above steps to be able to use the AR4100, except

change from:

  1. a_netbuf_ptr->native.FREE = (_pcb_free_fn)freefn; 

change to:

  1. a_netbuf_ptr->native.FREE = (PCB_FREE_FPTR)freefn; 

which seems to be MQX 4.0 specific. Everything compiles fine, but ipcfg_init_device returns error 0xA4FF (ENET_ERROR). I checked if WriteBufferSpace reads EXPECTED_MAX_WRITE_BUFFER_SPACE, and it does, and I removed the


ioctl (pCustCxt->spi_cxt, IO_IOCTL_SPI_SET_CS, &input)) 

line from custom_hw_init().

Do you have any idea as to what I could do next to make it work? Or perhaps where to search for info?

Thanks,

Sebastian

0 件の賞賛
返信

1,385件の閲覧回数
Martin_
NXP Employee
NXP Employee

Sebastian,

this was specific to MQX 4.0 spi driver. MQX 4.0 has different SPI driver than MQX 3.8 / 3.8.1. As far as I know Atheros have their own port for MQX 3.8, so try contacting them. With MQX 3.8 you would need that SET_CS ioctl. You code stops exactly at the place where it checks if spi communication with the wi-fi chip is working. If you connect oscilloscope on spi signals you will see problems (no chip select asserted I guess).

0 件の賞賛
返信