Skip to main content
Senior
February 3, 2024
Solved

Necleo-STM32F767ZI board fails on example "LwIP_HTTP_Server_Netconn_RTOS"

  • February 3, 2024
  • 3 replies
  • 1712 views

Hi,

I just bought a Necleo-STM32F767ZI board, and downloaded the example "LwIP_HTTP_Server_Netconn_RTOS" in CubeIDE, and made following changes in main.h:

#define IP_ADDR2   3

#define GW_ADDR2 3

As for the board, I did not make any changes on the jumpers.

then built it and ran it, I saw the LEDs changes, but it failed almost immediately after file-download-complete. The following are the texts shown in the console window:

 

STMicroelectronics ST-LINK GDB server. Version 7.5.0

Copyright (c) 2023, STMicroelectronics. All rights reserved.

 

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

InitWhile : Enabled

 

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

-------------------------------------------------------------------

STM32CubeProgrammer v2.15.0

-------------------------------------------------------------------

 

Log output file: C:\Users\15023\AppData\Local\Temp\STM32CubeProgrammer_a19868.log

ST-LINK SN : 066CFF485753667187172243

ST-LINK FW : V2J43M28

Board : NUCLEO-F767ZI

Voltage : 3.22V

SWD freq : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID : 0x451

Revision ID : Rev Z

Device name : STM32F76x/STM32F77x

Flash size : 2 MBytes

Device type : MCU

Device CPU : Cortex-M7

BL Version : 0x93

 

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a19868.srec

File : ST-LINK_GDB_server_a19868.srec

Size : 117.27 KB

Address : 0x08000000

 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 3]

Download in Progress:

 

File download complete

Time elapsed during download operation: 00:00:02.298

 

Verifying ...

 

Download verified successfully

 

Shutting down...

Exit.

 

 

Anyone knows wher the problem is?

 

Regards

Chao

Best answer by STTwo-32

Hello @Chao 

I can't find any problem on the message you just shared. The code has been succesfully downloaded and the:

" Shutting down... Exit."

Means the end of the download operation.

For the printf fonction, you can use it on this board since it have a virtual com port. Al you have is to do the necessary coding and configurations.

Best Regards.

STTwo-32 

3 replies

ChaoAuthor
Senior
February 3, 2024

Is it possible to use printf to print debug messages to the console window in this example?

TDK
February 3, 2024

The log file looks fine to me.

> it failed almost immediately after file-download-complete

In what way specifically did it fail?

"If you feel a post has answered your question, please click ""Accept as Solution""."
STTwo-32
STTwo-32Best answer
Technical Moderator
February 3, 2024

Hello @Chao 

I can't find any problem on the message you just shared. The code has been succesfully downloaded and the:

" Shutting down... Exit."

Means the end of the download operation.

For the printf fonction, you can use it on this board since it have a virtual com port. Al you have is to do the necessary coding and configurations.

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
ChaoAuthor
Senior
February 4, 2024

OK, thanks. I do be misled by the message "Shutting down... Exit.".

Now it works when I comment out the "#define LWIP_DHCP  1"

I will try to make printf work next.

Regards

Chao