From: Rob M. <Rob...@u-...> - 2024-04-28 12:46:20
|
In case anyone was following my posts about OpenOCD and STM32U5, the problem turns out to be nothing to do with OpenOCD; I can make it happen with the STM32Cube Programmer also. We set the SWD rate in our target code, always have done for STM32F4, but it seems that the same code with the STM32U5 on the NUCLEO-U575ZI-Q board causes the board to no longer connect to a debugger after it has been power-cycled; provided you don't power-cycle the board you can connect and disconnect to your hearts content, but after a power-cycle the STM32U5 needs to be recovered manually (connect its BOOT0 pin to VDD to make it boot from ROM, connect to it with the debugger under reset and erase all flash, then connect the BOOT0 pin back to GND again so that you can boot from flash) before it will connect to a debugger normally again. Even if we set the SWD rate to the same as what we understand the default to be, 2MHz, the problem remains. We have asked ST if the SWD rate-setting code needs to be different for STM32U5 or if this is some form of fundamental limitation of the debug arrangement on the NUCLEO-U575ZI-Q board. Rob -----Original Message----- From: Paul Fertser <fer...@gm...> Sent: Sunday, April 28, 2024 8:56 AM To: wieniawski <wie...@ou...> Cc: ope...@li... Subject: Re: [OpenOCD-user] OpenOCD using FT232H board **** This is an EXTERNAL email. It was sent from outside of u-blox. **** Hi, On Sun, Apr 28, 2024 at 11:20:59AM +0800, wieniawski wrote: > I am trying to using OpenOCD using a FT232H board. If you want to use it for SWD you either need an additional adapter (which would drive the output buffer depending on some additional signal) or to use the "resistor hack" (or if you're sure your FT232H doesn't have any buffering that can be direct connection without a resistor even). You also need to source the additional config for the SWD adapter or the resistor hack. There's no need to define TDO or TDI or SWDIO, those signals have fixed location on FTDI hardware and can't be changed. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... _______________________________________________ OpenOCD-user mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openocd-user |