2021-01-04 06:28 AM
I'm using the NUCLEO439ZI board.
I want enable the ethernet in this board,
i given all configuration in ioc, and also I'm connecting Ethernet cable my home router to board. But near Ethernet connector LED's not blinking.
I'm following this example ,can you please suggest.
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM */
/* USER CODE END PM */
/* Private variables ---------------------------------------------------------*/
UART_HandleTypeDef huart3;
/* USER CODE BEGIN PV */
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_USART3_UART_Init(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_USART3_UART_Init();
MX_LWIP_Init();
/* USER CODE BEGIN 2 */
// initialize the HTTPd
httpd_init();
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
// start the LWIP process
MX_LWIP_Process();
}
/* USER CODE END 3 */
}
and I'm followed this link
HTTPd web-server on STM32 NUCLEO-F767ZI microcontroller. (ausleuchtung.ch)
please can any one suggest.
2021-01-10 09:27 AM
Hello @MVENN.1 ,
I suggest that you refer to the working Ethernet example within STM32cubeF4 firmware package, that can help you get inspiration to achieve your goal:
STM32Cube_FW_F4_V1.25.2\Projects\STM32F429ZI-Nucleo\Applications\LwIP
You can follow these resources that give you help:
Hope this helps you.
Please mark my answer as best by clicking on the "Select as Best" button if it fully solved your issue. This will help other users find this solution more quickly.
Imen