NXP-WiFi support for iMX8 in FreeRTOS environment

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NXP-WiFi support for iMX8 in FreeRTOS environment

907 Views
tlaivo
Contributor I

Hi,

i.MX8 MCUXpresso SDK does not include support for NXP WiFi. I can see support is available for RTxxx devices.
Is there a technical reason why support for WiFi is not available for i.MX8 SDK? Is support coming at some point?

Best Regards, Toni

0 Kudos
4 Replies

730 Views
tlaivo
Contributor I

Hi,

We have integrated NXP WiFi stack to MIMX8MM SDK and are trying to get it working from cm4. However we are having some problems to get the communication working.
When the first command is sent over SDIO (GO IDLE), device seems to totally hang up. This happens almost immediately when xferType is written to register CMD_XFR_TYP.

1) First 80 clocks are send to the card and those can be seen successfully with the logic analyser.
/middleware/sdmmc/sdio/fsl_sdio.c / function: static status_t SDIO_ProbeBusVoltage(sdio_card_t *card) / SDMMCHOST_SendCardActive(card->host) is called to send 80 clocks.

2) Problem happens few lines below, when SDIO_GoIdle(card) is called. When CMD_XFR_TYP is set, device hangs up. However data on the line is seen with logic analyser.
/devices/MIMX8MM6/drivers/fsl_usdhc.c / Function: USDHC_SendCommand / line: base->CMD_XFR_TYP = xferType;

Do you have any idea what could be the root cause for the hang up? Any task does not seem to run at that point.

Our setup:
HW: i.MX8MM + MAYA-W161-00B (NXP IW416)
SDK: SDK_2_12_1_EVK-MIMX8MM

We are using wifi_setup example code (modified for i.MX8/cm4): https://github.com/nxp-mcuxpresso/mcux-sdk-examples / evkmimxrt1170/wifi_examples/wifi_setup/cm7
Required SW components have been taken from these repositories:
https://github.com/nxp-mcuxpresso/mcux-sdk
- components/gpio, components/osa, components/wifi_bt_module
- devices/xxx/drivers/fsl_usdhc
https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-sdmmc
- middleware/sdmmc/
https://github.com/NXP/wifi_nxp
- middleware/wifi_nxp

/devices/MIMX8MM6/MIMX8MM6_cm4.h
- added required definitions for USDHC_VEND_SPEC2_ACMD23_ARGU2_EN
/devices/MIMX8MM6/drivers/fsl_clock.*
- modifed to add USDHC clock root definitions

Best Regards, Toni

0 Kudos

696 Views
tlaivo
Contributor I

Found the root cause.

MIMX8MM6_cm4.h contains uSDHC 1-3 definitions which are starting with lowercase letters (uSDHC1 -3).
IRQ handlers in USDHC driver are flagged with definitions which are defined with capital letters (USDHC1 -3) -> IRQ handlers are NOT added to package.

0 Kudos

840 Views
hector_delgado
NXP TechSupport
NXP TechSupport

Hi @tlaivo ,

I hope you're doing great and I apologize for the late response. There's no technical reason for this, but to my knowledge, there are no current plans for bringing FreeRTOS WiFi support for i.MX8 devices. I'm sorry for this inconvenience, and I hope this information was of any help.

Best regards,
Hector.

0 Kudos

717 Views
tlaivo
Contributor I

Hi Hector,

Please check my new question.

Best Regards, Toni

0 Kudos