Arm Mbed and Pelion Device Management support forum

Can't debug code in other IDEs after use an STM32-F411RE with arm Mbed OS

Hi people, this is my very first post here so I hope you’re going good and well with all this COVID-19 issue.

I previously tested the arm Mbed platform in my STM32-FR11RE board, everything worked great and smoothly in the online platform.

However, I’ve been working with SW4STM32 IDE because I’m learning about FreeRTOS and I was trying to run the debbuger but I have multiple errors, some of them states that the STLINK is being used or like this:

Unplugged target or STLink already in use or STLink USB driver not installed
  Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)
  Licensed under GNU GPL v2
  For bug reports, read
  	http://openocd.org/doc/doxygen/bugs.html
  none separate
  Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
  adapter speed: 8000 kHz
  adapter_nsrst_delay: 100
  Info : clock speed 8000 kHz
  Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
  Error: open failed (no matching adapter found)
  in procedure 'program' 
  in procedure 'init' called at file "embedded:startup.tcl", line 495
  in procedure 'ocd_bouncer'
  ** OpenOCD init failed **
  shutdown command invoked

bug_code

The fact is that when I check that the board is recognized as a USB device (the way that arm Mbed recognizes your connected devices) I’ve found that if I eject the device, I am able to debug the code in SW4STM32 IDE, but after a while the USB device (the board) comes again and I’ve problems again with my debugger currently running.

So I wanted to ask. Is there a way to disable this feature while I’m working in other stuff? I’m really new to arm Mbed platform so I might being missing something too but I can’t really get to a really way to search for this issue in internet.

I hope you could help me with this issue! Thank you so much
#StaySafe