mukp
(Miko Nore)
January 27, 2021, 9:30am
1
I’m using Mbed Studio: 1.3.1 with NUCLEO-F746ZG (STM32F746). The program is able to run on the board without errors, but the debug function gives this error log below. Any idea on how to fix this issue?
0000671:INFO:rom_table: [1]
0000673:INFO:rom_table: [2]
0000676:INFO:rom_table: [3]
0000677:INFO:rom_table: [1]
0000679:INFO:rom_table:[1]
0000681:INFO:dwt:4 hardware watchpoints
0000687:INFO:fpb:8 hardware breakpoints, 1 literal comparators
0000709:CRITICAL:main :No cores were discovered!
Traceback (most recent call last):
File “c:\Users\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd_main _.py”, line 362, in run
self.COMMANDSself._args.cmd
File "c:\Users\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd_main .py", line 680, in do_gdbserver
with session:
File “c:\Users\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\session.py”, line 302, in enter
self.open()
File “c:\Users\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\session.py”, line 420, in open
self._board.init()
File “c:\Users\MikoNore\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\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\coresight_target.py”, line 160, in init
seq.invoke()
File “c:\Users\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\utility\sequencer.py”, line 208, in invoke
resultSequence = call()
File “c:\Users\MikoNore\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\coresight_target.py”, line 299, 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”
Thanks
JohnnyK
(Jan Kamidra)
January 27, 2021, 10:22am
2
Hello,
I not sure but I think the situation is still same
Impossible to start debug session.
I can upload and run, that’s working, but I cannot debug any project.
Regards,
Raise following error:
Selected port 50001 for debugging
0000638:INFO:board:Target type is stm32f746zg
0000646:INFO:coresight_target:Asserting reset prior to connect
0000654:INFO:dap:DP IDR = 0x5ba02477 (v2 rev5)
0000674:INFO:ap:AP#0 IDR = 0x74770001 (AHB-AP var0 rev7)
0000696:INFO:rom_table:AP#0 ROM table #0 @ 0xe00fd000 (designer=020 part=449)
0000703:INFO:rom_table:[0]
…
BR, Jan
mukp
(Miko Nore)
January 27, 2021, 10:28am
4
Thanks for your reply.
Do you mean that the board is not supported for debug in Mbed Studio?
//Miko
JohnnyK
(Jan Kamidra)
January 27, 2021, 5:11pm
6
JojoS
(Johannes Stratmann)
February 6, 2021, 1:00pm
7
I have the same problem, no cores were discovered.
The pyocd that comes with MbedStudio is not the most recent, but also with an external pyocd it reports the same when started with ‘pyocd gdbserver’. I have installed also the packs for the STM32F7, the pyocd version is 0.29.1.dev16.
Debugging in VSCode with Cortex-Debug works, but with some other old problem: a step over runs always into the interrupt handler
I will try some workaround that is posted here:
https://community.st.com/s/question/0D50X00009XkgAOSAZ/problem-with-single-step-stmf7
But again, this is next problem when you got the debugger running. I guess pyocd has a problem with the complex ROM table scanning in the ARM coresight.
Edit:
another link for this problem:
opened 07:46AM - 12 Sep 19 UTC
closed 03:27PM - 12 Sep 19 UTC
Hi there,
I'm not sure if this is the right place to post this (guess so from… reading the [docs](https://github.com/mbedmicro/pyOCD/blob/master/docs/target_support.md) ) but I suspect that currently the CMSIS packs for the STM32F7 and STM32H7 aren't functional.
Here's the output of `pyocd pack -u`:
```shell
> pyocd pack -u
0000419:INFO:__main__:Updating pack index...
Sep 12 09:18:27.751 ERRO download of "https://www.keil.com/pack/Keil.STM32H7xx_DFP.pdsc" failed: unexpected end of file
Sep 12 09:18:27.771 ERRO download of "https://www.keil.com/pack/Keil.STM32G0xx_DFP.pdsc" failed: unexpected end of file
Sep 12 09:18:27.771 ERRO download of "https://www.keil.com/pack/Keil.STM32F7xx_DFP.pdsc" failed: unexpected end of file
Sep 12 09:18:28.351 WARN expecting </META> found </HEAD>
Sep 12 09:18:29.506 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.516 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.526 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.526 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.526 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:29.526 ERRO when trying to parse component: child element "description" not found in "component" element, Package: nRF_DeviceFamilyPack, Vendor: NordicSemiconductor
Sep 12 09:18:31.485 WARN No Core found!, Package: CMSIS, Vendor: ARM
Sep 12 09:18:31.595 WARN invalid digit found in string, Package: TLE984x_DFP, Vendor: Infineon
```
Thus, I am not able to use pyocd for these targets. I have tried downloading the pack files manually from the site (which, as such, worked) and supplying them to pyocd through the `--pack` option, but that didn't work either. Here is the output:
```shell
> pyocd gdb --pack C:/Users/ahartmann/Downloads/PyOCD_PACKS/Keil.STM32F7xx_DFP.2.12.0.pack
# Probe Unique ID
----------------------------------------------------------------
0 NUCLEO-F303RE [stm32f303re] 066FFF504955657867091142
1 NUCLEO-F767ZI [stm32f767zi] 0676FF504955857567171922
2 NUCLEO-H743ZI [stm32h743zitx] 066CFF545257717867101851
3 NUCLEO-L073RZ [stm32l073rz] 0674FF333036434B43055429
Enter the number of the debug probe or 'q' to quit> 1
0004324:INFO:board:Target type is stm32f767zi
0004474:INFO:dap:DP IDR = 0x5ba02477 (v2 rev5)
0004634:INFO:ap:AP#0 IDR = 0x74770001 (AHB-AP var0 rev7)
0004634:WARNING:rom_table:Invalid coresight component, cidr=0x0
0004634:WARNING:rom_table:Warning: ROM table @ 0xe00fd000 has unexpected CIDR component class (0x0)
0004634:CRITICAL:__main__:No cores were discovered!
Traceback (most recent call last):
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\__main__.py", line 343, in run
self._COMMANDS[self._args.cmd](self)
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\__main__.py", line 571, in do_gdbserver
with session:
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\core\session.py", line 287, in __enter__
self.open()
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\core\session.py", line 367, in open
self._board.init()
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\board\board.py", line 83, in init
self.target.init()
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\core\coresight_target.py", line 162, in init
seq.invoke()
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\utility\sequencer.py", line 201, in invoke
resultSequence = call()
File "c:\users\ahartmann\appdata\local\programs\python\python37-32\lib\site-packages\pyocd\core\coresight_target.py", line 242, in check_for_cores
raise exceptions.DebugError("No cores were discovered!")
pyocd.core.exceptions.DebugError: No cores were discovered!
```
For reference I tried a STM NUCLEO-F303RE that I had lying around. That shows up in my local pack index and is correctly recognized by PyOCD. No issues here.
I also tried using an older version of the STM32F7 pack files (Version 2.11.0 instead of the current 2.12.0), but to no extent. The result is the same.
Can anybody reproduce this issue?
Or tell me how to reach the pack vendor (ST, I guess?) so I can report to them?
I'm using the Python 3 verion of PyOCD, PyOCD Version is 0.22.0.
Host OS is Windows 10 for anybody who might find it to be of interest.
I have performed a mass erase with the STM32CubeProgrammer tool and now pyocd can connect correctly. But debugging in MBedStudio still quits without an error message.
ok, that problem was the CubeProgrammer was still connected. After disconnecting, the old behaviour, no cores were discovered.
rotu
(Dan Rose)
May 14, 2021, 11:40pm
8
Did you ever figure this out? I’m having a similar-looking issue (No cores were discovered) on a STM32H743ZI2
danielpe
(Jose Gomez)
May 17, 2021, 6:39am
9
More or less randomly means that it used to run ok, then started to stop after some time
Hi
Maybe you could have a look on
opened 11:24PM - 05 May 21 UTC
target
I'm using Mbed studio to try and debug on a STM32H743ZI2, and it fails with a re… ad error like:
```
0000860:WARNING:rom_table:Invalid coresight component, cidr=0x0
0000861:WARNING:rom_table:Invalid coresight component, cidr=0x0
0000862:ERROR:rom_table:Error attempting to probe CoreSight component referenced by ROM table entry #5: Memory transfer fault (read) @ 0xe00f0fbc-0xe00f1043
Traceback (most recent call last):
File "/home/dan/.config/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/rom_table.py", line 358, in _read_table
self._handle_table_entry(entry, entryNumber)
File "/home/dan/.config/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/rom_table.py", line 408, in _handle_table_entry
cmpid.read_id_registers()
File "/home/dan/.config/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/rom_table.py", line 113, in read_id_registers
regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
File "/home/dan/.config/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink_probe.py", line 271, in read_memory_block32
return conversion.byte_list_to_u32le_list(self._link.read_mem32(addr, size * 4, self._apsel))
File "/home/dan/.config/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py", line 385, in read_mem32
return self._read_mem(addr, size, Commands.JTAG_READMEM_32BIT, self.MAXIMUM_TRANSFER_SIZE, apsel)
File "/home/dan/.config/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py", line 343, in _read_mem
raise exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (read) @ 0xe00f0fbc-0xe00f1043
Resetting target
```
A minimal command that causes this is:
`pyocd cmd -c reset`
Repeatedly trying to reproduce this shows the fault happens at particular addresses: `0xe00f0fbc-0xe00f1043` or `0xe000efbc-0xe000f043`
See logs:
[mbed-studio.log](https://github.com/pyocd/pyOCD/files/6430775/mbed-studio.log)
[minimal.log](https://github.com/pyocd/pyOCD/files/6430784/minimal.log)
Regards,
Jerome