2024-02-03 09:20 AM
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
Solved! Go to Solution.
2024-02-03 10:02 AM
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.
2024-02-03 09:30 AM
Is it possible to use printf to print debug messages to the console window in this example?
2024-02-03 09:31 AM
The log file looks fine to me.
> it failed almost immediately after file-download-complete
In what way specifically did it fail?
2024-02-03 10:02 AM
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.
2024-02-03 08:29 PM
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
2024-02-04 09:30 AM
I started a new project with selected target of Nucleo-STM32F767ZI board, and followed the instructions from
The printf works in the new project, however, when I did the same in the example project "LwIP_HTTP_Server_Netconn_RTOS", I did not get anything from printf. I added the following into the main.c of the example project:
and
Regards
Chao