Waijung Webserver Configuration for NUCLEAO-F429ZI

<< Click to Display Table of Contents >>

Navigation:  Tips & Tricks > Boards >

Waijung Webserver Configuration for NUCLEAO-F429ZI

Previous pageReturn to chapter overview

Overview

Waijung Web server blocks designed and test with aMG Lab Kits Boards, however the blocks allow Manual configuration to support other development board which using STM32F4 and MII or RMII interface for ETH PHY Chip. This topic demonstrate how to manual configuration with NUCLEO-F429ZI board.

Hardware Setup required for demonstration

webserver_manual_configure_hardware_setup

1. SD Card expansion

SD memory card required for storing Web page files and picture.

SDMMC Pin out , CN8 of NUCLEO-F429ZI board (from the Schematic diagram of User Manuals).

webserver_manual_configure_sdcard_cn8

SDMMC Pin out, Expansion module

webserver_manual_configure_sdcard_expansion

2. LDR Sensor

webserver_manual_configure_hardware_ldr

Waijung Blocks Setup

1. Target Setup block

webserver_manual_configure_block_targetsetup

2. Web server blocks

Waijung Web server is a set of following blocks, below manual configuration for NUCLEO-F429ZI board:

webserver_manual_configure_block_waijung_webserver

Ethernet Link Setup

webserver_manual_configure_block_ethernetlink_setup

Ethernet Application Setup

webserver_manual_configure_block_ethernetapp_setup

 

 Make sure IP address did not conflict with other device in the network.

Http Server Setup

webserver_manual_configure_block_httpserver_setup

Demo model file

The demo file for NUCLEO-F429ZI board located in directory "targets\stm32f4_target\stm32f4\demo\boards\nucleo_f429zi".

Model file: webserver_start_firstpage_demo.mdl

webserver_manual_configure_model_demo

ADC Demo

webserver_manual_configure_model_adc_demo

 ADC Demo sub-system read Analog value from AN9 (PB1). Convert the reading value to voltage then store into variable "adc1", which enable the Web CGI varget/varset integration.

LED Demo

webserver_manual_configure_model_led_demo

Variable led1, led2 and led3 can be set/or clear via web command (Web CGI varget/varset integration).

Build and Run the Demo model file

webserver_manual_configure_model_buildandrun

All green, indicate success. Note for application which implement boot loader, please disable Full Chip Erase.

Testing

Run first page

webserver_manual_configure_model_test_firstpage

The first page above can be override by a custom index.html which uploaded to store in SD card via "Upload file" menu.

List the available Variables for Web-CGI interface

http://192.168.1.42/varget.cgi?action=getlist

webserver_manual_configure_model_test_variable_list

Picture above, the response showing 4 variables available (one line for a variable information). Variable information is Name, Data type and Access type.

For more information, see Remote variable interface.

Display ADC value on the web-page

Upload adc.html to the running Webserver board. The uploaded file will be stored in SD card memory.

webserver_manual_configure_model_test_display_adc

Run adc.html, ADC Reading value will be periodic reload or Click button to force reload.

webserver_manual_configure_model_test_display_adc_value