Skip to main content
Associate II
July 10, 2026
Question

How can I increase downloading speeds for FTP on NetX Duo?

  • July 10, 2026
  • 1 reply
  • 33 views

Hello, everyone on the forum.
I'm building a system using the STM32H735G-DK, ThreadX, and NetX Duo.

I'm writing logs to a microSD card to keep a record of the system's operation.

I integrated FTP into the system so that log files can be downloaded via Ethernet.

Since the FTP download speed is only about 150 kilobytes per second, it takes a long time to download large log files.
Currently, `nx_ftp_server_create` allocates an 8K-byte stack for the FTP server.

 

What are some ways to increase FTP download speeds?
I would appreciate any advice.

 

1 reply

ST Employee
July 13, 2026

Hello ​@Hey0256,

Thank you for your report.

The FTP server stack size is usually not the main limiting factor for download speed. A throughput around 150 KB/s does not, by itself, identify the root cause. The bottleneck can be in the storage path, the network path, or their interaction.

To isolate the bottleneck, first run two measurements:

  • Raw fx_file_read() throughput from microSD to RAM (no network transfer)
  • Raw TCP throughput from RAM buffer to Ethernet (no FileX access)

These two tests help determine whether the limit is storage-related, network-related, or system-wide.

If raw file reads are slow, investigate SDMMC DMA mode, D-Cache/MPU configuration, and 512-byte aligned accesses.
If raw TCP is fast, tune NetX packet pool sizing, FTP data window size, transmit queue depth, and Ethernet DMA descriptor counts.

 

With Regards,

If your question is answered, please close this topic by clicking ""Accept as Solution"".