CubeMonitor: probe declaring [not connected ! Device not opened (5)]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-23 7:34 PM - edited ‎2023-08-24 4:43 PM
- Nucleo-L152RE with ST-Link board still attached and power from USB
- STM32CubeIDE configured as picture. Freq at 1000K to match slow speed set in the Monitor
- Also Debug Config has ST-Link Shared
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-31 7:13 AM
Hello @Skyko
Did you install STLink_server ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-01 9: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-07 4: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
