Nx_WebServer Application Description

This application provides an example of Azure RTOS NetX Duo stack usage on STM32H573G-DK board, it shows how to develop Web HTTP server based application. The application is designed to load files and dyncamic web pages stored in SD card using a Web HTTP server, the code provides all required features to build a compliant Web HTTP Server. The main entry function tx_application_define() is called by ThreadX during kernel start, at this stage, all NetX and FileX resources are created.

The application then creates 2 threads with different priorities:

The NxAppThread starts and perform the following actions:

The AppServerThread, once started:

The LedThread, once resumed from the dashboard:

Expected success behavior

Error behaviors

If the WEB HTTP server is not successfully started, the green LED stays OFF. In case of other errors, the Web HTTP server does not operate as designed (Files stored in the SD card are not loaded in the web browser).

Assumptions if any

The uSD card must be plugged before starting the application. The board must be in a DHCP Ethernet network.

Known limitations

Hotplug is not implemented for this example, that is, the SD card is expected to be inserted before application running. The SDC card should contain the html pages. #### ThreadX usage hints

NetX Duo usage hints

Keywords

RTOS, ThreadX, Network, NetxDuo, Web HTTP Server, FileX, File ,SDMMC, UART

Hardware and Software environment

How to use it ?

In order to make the program work, you must do the following :