Closed j4cbo closed 3 years ago
Hi @j4cbo , the STM32 devices based on Cortex-M7 (F7 and H7) have been problematic for some reason.
Can you try connecting under reset? Just add the -connect=under-reset
argument to the command line.
I checked the Keil STM32F7 CMSIS-Pack and didn't find any extra debug logic, so at this point the only thing I can think of is the connect under reset option. I'll try to find time to read through the F750 reference manual to see if they mention anything that's out of the ordinary.
No change with --connect=under-reset
.
I wonder if this is an ST-Link V3 issue? I don't have a standalone ST-Link V2, but I do have an STM32F750 Discovery on hand, which has an onboard ST-Link V2, and connecting to it seems to work just fine. (Though it's running different firmware, and the dev board has an STM32F750N8H6 vs. my DUT's STM32F750V8T6.) The V2 on the dev board is connected to its microcontroller via solder bridges, so I'll see if I can cobble it together to my board and narrow down the problem that way.
Well, I switched to my other (theoretically identical) board and it seems to work exactly like it should. I'm still at the hand-soldered prototype stage here, so I think this was just a hardware problem with one of my boards. Sorry for the false alarm!
Ok, I'm glad to hear that, but I'm not entirely convinced that it's not my fault. 😁 It could be an issue in pyocd related to STLink V2 vs V3. If you have more trouble, please reopen this issue. Thanks for reporting back!
Btw, if you haven't already, make sure the firmware in your V3 is updated. There were some bugs in early versions.
I'm using an STLINK-V3MINI to try to talk to an STM32F750 chip over SWD. On connect I get a "Error attempting to probe CoreSight component referenced by ROM table entry #0: STLink error (16): AP wait", followed by "No cores were discovered!"; I haven't found any other reports of the "AP wait" error so I'm not sure where to go from here :/
The code on the micro isn't using and hasn't entered any low-power modes (
WFI
etc) at the point where I'm trying to connect.Here's the full output:
After this, the chip is in an extremely stuck state, to the point that even asserting the RESET pin seems to have no effect.