RNDIS Support in MQX 4.1.0 for K70 Board

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

RNDIS Support in MQX 4.1.0 for K70 Board

1,129 Views
indrajitkumar
Contributor II

We want to enable RNDIS support on MQX. 4.1.0 .In short, we need to get “OS\usb\device\examples\cdc\virtual_nic” running successfully.

As per Freescale documentation we are using RTCS module to achieve RNDIS.

We have enabled following in user_config.h:

#define RTCSCFG_ENABLE_ICMP      1

#define RTCSCFG_ENABLE_UDP       1

#define RTCSCFG_ENABLE_TCP       1

#define RTCSCFG_ENABLE_STATS     1@

#define RTCSCFG_ENABLE_GATEWAYS  1

#define FTPDCFG_USES_MFS         1

#define RTCSCFG_ENABLE_SNMP      1

While compiling the usb_device code (after enabling the macro DELAYED_PROCESSING), we are getting some compilation errors.

The same compilation issue is discussed in Freescale Community too https://community.freescale.com/thread/65659 , but no solution offered.

  1. How do we successfully compile the usb cdc device component for RNDIS ?
  2. What additional changes to do done to execute “virtual_nic” ?
  3. How to test if the RNDIS is working ?
2 Replies

663 Views
soledad
NXP Employee
NXP Employee

Hi,

Attached to this, you can find the readme for the virtual_nic example, I hope this helps!

Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

662 Views
indrajitkumar
Contributor II

Hi,

Thank you very much for the help.

But this is the current status for us now.

After using #define USBCFG_DEFAULT_DEVICE_CONTROLLER  (&_bsp_usb_dev_khci0_if), we are successfully able to compile (the #define DELAYED_PROCESSING is not used now).

When the code is executed, the RNDIS device is getting detected on our Windows 7 machine. Please check the below image.

RNDIS_Device_Detected.png

As found in other communities, we are not able to communicate with the device too (by trying ping command). Using the command ipconfig/all, we are seeing following message for the RNDIS device as Media disconnected.

Media_Disconnected.png

My queries:

1) Is the demo (virtual_nic) requires Ethernet cable to be connected between our custom K70 board and router, as mentioned in the link USB Virtual NIC by Mr. Martin Latal from NXP ?

0 Kudos