I've connected SWDIO, SWDCLK, TRACESWO and NRST to the ST-LINKV2, but have no luck with trace functions. There is also a "Trace - no synchronization" message.Is there anything else I should be doing ?
I have a fairly simple bit of code running in a CubeMX generated scheme, using HAL code to communicate over SPI. I run a loopback test a thousand times - sometimes it passes, other times I get an INVSTATE Usage Fault which appears (according to Keil)...
I only had two devices on the SPI - the STM32 was the slave, and it signalled the host when it was ready for data, so probably preventing any conflict. Note also that the BSY problem is somewhat infrequent.
Fixed it, although I don’t understand everything.There is a bug in (some or all of) the STM32 processors where the SPI BSY status can occasionally be in the wrong state.This is mentioned in the chip errata, along with some workarounds.The HAL SPI cod...
Has to be my hardware - it's part of a complex system, so using an EVK would be tough.But, I'd figure a single chip micro running from internal flash with an internal clock and a good supply and ground, withe manufacturer's rated caps, should be pret...