ARMmbed / mbed-os-5-docs

Full documentation for Mbed OS 5 and 6
http://os.mbed.com/docs
98 stars 169 forks source link

STM32F796NI Mbed debuging error #1491

Closed JoanOG closed 2 years ago

JoanOG commented 2 years ago

When I try to debug with the mbed studio I get the following error:

0001859:INFO:rom_table: [2] 0001860:INFO:rom_table: [3] 0001861:INFO:rom_table: [1] 0001863:INFO:rom_table:[1] 0001864:INFO:dwt:4 hardware watchpoints 0001868:INFO:fpb:8 hardware breakpoints, 1 literal comparators 0001876:CRITICAL:main:No cores were discovered! Traceback (most recent call last): File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd__main.py", line 402, in run self._COMMANDSself._args.cmd File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd__main__.py", line 746, in do_gdbserver with session: File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\session.py", line 339, in enter__ self.open() File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\session.py", line 457, in open self._board.init() File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\board\board.py", line 85, in init self.target.init() File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\soc_target.py", line 117, in init seq.invoke() File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\utility\sequencer.py", line 208, in invoke resultSequence = call() File "c:\Users\JGonza12\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\coresight_target.py", line 214, in check_for_cores raise exceptions.DebugError("No cores were discovered!") pyocd.core.exceptions.DebugError: No cores were discovered! "GDB server stopped unexpectedly with exit code 1"

Any idea?

0xc0170 commented 2 years ago

please ask on the forum rather than docs (not related to the documentation).

Does pyocd work if you execute it directly? what version of pyocd or mbed studio is installed