2025-02-16 08:04 PM
After getting several projects working and starting a new project the following problem occurred at run time.
Returned to previous working projects and get same result.
STMicroelectronics ST-LINK GDB server. Version 7.9.0
Copyright (c) 2024, 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 : EnableWaiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.18.0
-------------------------------------------------------------------
Log output file: C:\Users\want2\AppData\Local\Temp\STM32CubeProgrammer_a21344.log
ST-LINK SN : 066FFF575487884867140827
ST-LINK FW : V2J45M31
Board : NUCLEO-F767ZI
Voltage : 3.25V
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
Opening and parsing file: ST-LINK_GDB_server_a21344.srec
Memory Programming ...
File : ST-LINK_GDB_server_a21344.srec
Size : 84.70 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 2]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.679
Verifying ...
Download verified successfully
Shutting down...
Exit.
2025-02-16 08:24 PM
The "Shutting down..." message is from the GDB server program on your computer shutting down, because it's done uploading the program to the board, verified it's correct, and isn't needed anymore.
The program on the board is running.
2025-02-18 01:04 PM
It appears that when I started a new project the previous projects changes and additions were lost as those files were restored to their original contents from STMicroelectronics libraries..... Obviously, I selected something incorrectly or failed to select something correctly... Hopefully I explained my issue clearly.... What is the something I need to do or not do that prevents the changes and additions on previous projects from being erased or file being overwritten?
2025-02-18 01:43 PM
In generated code files, you can only put code within USER CODE BEGIN and USER CODE END blocks. Otherwise, it will be erased on regeneration.
2025-02-18 08:00 PM
No, your not understanding the problem.... I religiously follow the USER CODE BEGIN and USER CODE END block guidelines..... let me try to explain in a different way.
Project A is created from downloaded libraries, updated, and tested successfully after mulitiple code changes, compiling processes, and debug cycles.
Then on to Project B which is created from new set of downloaded files which are the same libraries project A started from but modified for a different application.
After modifying project B files, compiling, downloading to development board, debugging, and successfully testing, I return to project A to find all modified files retored to original state.
Why? I'm expecting that the two projects are not sharing files or access while working on another project.
2025-02-19 05:38 AM
Files don't change on their own. If the projects don't share files, they will be independent.
Must be something else going on there.
Looking at file modification times might give you a clue, or file history.