2023-08-23 07:34 PM - edited 2023-08-24 04:43 PM
STMCubeMonitor has the probe set up like this:
... it's connected and everything.
However, when I launch the debugger from CubeIDE, or I launch from CubeProgrammer, the probe immediately goes red with the [not connected ! Device not opened (5)]
In my attempts to fix this myself, I added this to my code:
#define DEBUGGER_ON 1 //REMOVE BEFORE FLIGHT
#define LOW_POWER_DISABLE 1 //REMOVE BEFORE FLIGHT
In my attempts to fix this myself, I also tried flashing my program onto the STM using CubeProgrammer. I had the same effect. While the CubeProg was attached my program ran but CubeMon said the Device was not open. I would close CubeProgrammer and the program would stop but CubeMon finally found my device.
I'm clearly in need of better understanding. My guess is ST-Link is not sharing very well. Any suggestions would be greatly, greatly appreciated.
2023-08-31 07:13 AM
Hello @Skyko
Did you install STLink_server ?
2023-09-01 09:58 AM - edited 2023-09-01 10:44 AM
Thx for the reply @Richard.Chvr! Yes, it is installed properly with the latest revision as shown below.
2023-09-07 04:54 AM
HI @Skyko
I finally open my eyes and see your configuration is p2p whilst it should be tcp. You also need to configure STM32CubeMonitor in shared mode:
https://wiki.st.com/stm32mcu/wiki/STM32CubeMonitor:How_to_configure_shared_mode