Ethernet + WIFI in MQX

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

Ethernet + WIFI in MQX

1,569 Views
akhil
Contributor III

Hi all,

Is it possible to use Ethernet and WIFI(AR4100) connectivity (to different network)simultaneously in MQX using RTCS network stack.

Also what is the minimum memory/RAM requirement for the full RTCS stack?

Thanks

Akhil

Labels (1)
Tags (4)
0 Kudos
6 Replies

612 Views
soledad
NXP Employee
NXP Employee

Hello Akhil,

Regarding the Ethernet issue, please check the below link:

https://community.freescale.com/message/406932#406932



Have a great day,
Sol

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

0 Kudos

612 Views
akhil
Contributor III

Dear Sol,

Thank you for your quick reply.

I have already modified BSP to initialize Ethernet and WIFI simultaneously( Ethernet on interface 0 and WIFI on interface 1 ). Also I got different IP for different interfaces. But there are some issues with the routing of TCP packets, DNS resolver etc. Seems the issue is with the RTCS stack/ memory.

Note: Our board (K60 controller) have 128KB of internal memory and 512KB of external memory(flexbus). Is this enough for RTCS stack?

0 Kudos

612 Views
soledad
NXP Employee
NXP Employee

Hi Akhil,

Sorry for my long delay. Regarding your issue, yes it is enough for the stack, however it also depends of your application. Could you please try increasing the stack size of the task ??

For example if the task has 1500 of stack, then try using 3000.


Have a great day,
Sol

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

0 Kudos

612 Views
akhil
Contributor III

Dear Sol,

Thank you for the response.

The stack size used for the “RTCS network stack” is 3400. Also in the user config settings, RTCS_MINIMUM_FOOT print is set as true and RTCSCFG_ENABLE_DNS is set as true(2 networks, WIFI and Ethernet, have different DNS).

But there are a number of issues in the system.

  1. Error in resolving IP address. Seems the DNS address, which is stored in the memory get corrupted.
  2. Ping is not always success, seems network packets routing issue in the packets.
  3. Connect is always failing, seems network packets routing issue in the packets.

Note that the external RAM memory is added to the default RAM pool of the system using the API _mem_extend.

So I would like to know whether “RTCS network stack”, with the MQX 4.0.2 OS, is capable of supporting  WIFI and Ethernet simultaneously? If yes, What are the settings/MACROS to be in the user config files to do this?

Also it seems the “RTCS network stack”, uses memory from the external RAM, is this cause any issue?


Regards,

Akhil

0 Kudos

612 Views
yb
Contributor IV

Is there now a solution since MQX 4.2 to have AR4100 AND Ethernet ?

Yvan

0 Kudos

612 Views
soledad
NXP Employee
NXP Employee

Hello Akhil,

a) Freescale MQX RTOS alone. It can be configured to take as little as 6 KB of ROM, including kernel, interrupts, semaphores, queues and memory manager.

b) Freescale MQX RTOS with 2 tasks. It can be configured to take as little as 12 KB of ROM and 2.5K RAM on CFV2, including kernel, 2 task applications,1 LW Semaphore, interrupt stack, queues, and memory manager.

c) Freescale MQX RTCS. It includes RTOS and TCPIP stack. It can be configured to take as little as 30Kb of ROM.

d) Freescale MQX USB. It includes RTOS and USB stack. It is designed to fit in a small footprint of 10Kb RAM and with code size of 32Kb.

Freescale MQX RTOS includes a project that helps to determinate the timing and code sizing of any project. You can find this in the path <MQX install_path>\mqx\examples\benchmrk\codesize\reports The code sizing depends on the kind of functions used in the final application. The benchmark project includes almost all the main components in MQX. This will provide the code size of these components.

In addition please check the reports attached.

Regarding the first question, please let me check the information ...

Regards

Sol

0 Kudos