httpd web server on stm32f407vg

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "lwip.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "lwip/apps/httpd.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I want to display a static Html page.
I have generated fsdata_custom.c using makefsdata utility.
I am using USB to connect stm32f4(stm32f4 connected to the stm32 expansion board having an ethernet port) to PC. Also, ethernet cable connected to stm32f4 and PC. I am using stmcubeide.
I have uploaded the code on board but the webpage is not displayed. Unable to access the webpage. The IP address refuses to connect.
DHCP is enabled. Ping shows the network is reachable.
I can't figure out where is the issue? Is there any configuration left?

0