CubeMX, mixed C, C++, F767 Nucleo. Getting consistent errors: debugger tries to connect, has following error. Encountered a Socket Error, Exiting..
Getting the following error:
code compiles without problem. Code without a certain class compiles and can be downloaded and run. Code *with* class generates following error.
STMicroelectronics ST-LINK GDB server. Version 5.1.0
Copyright (c) 2018, 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
Waiting for debugger connection...
Debugger connected
Encountered a Socket Error, Exiting..
Debugger connection lost.
Shutting down...
1) has anyone seen this before?
2) why would something compile and then not download properly?, but with a socket error?
3) code is relatively complex, with a lot of derived classes (graphics application), not practical to post all of it here.
code added that crashes the download is a relatively simple class for a touch controller.
Have seen the same error before, seems related to something the compiler and linker are doing with C++ code. Never saw it when running C code only.
Main structure of program is main.c renamed to main.cpp, calls link cpp program, then calls only cpp programming unless calling HAL functions (which are C), or FreeRTOS, which are also C.
