2021-03-23 12:11 PM
I'm designing a proto board for my application and can't use a discovery board since there isn't one for this chip. So I have to put debug capabilities on my board. However, I can't find documentation on how to hook it up to the processor once I've configured the processor with CubeMX. Questions I have include: which debug capabilities do I need to support, what connector type should I use, how to wire it up (I presume like the example in the STM32373C-EVAL schematics?), can I use these capabilities with the STLINK-V3SET, where is overall documentation on how to debug?
Any pointers would be appreciated!
Solved! Go to Solution.
2021-03-23 01:58 PM
Put a JTAG or SWD header on the board, wiring it to the respective pin indicated in the Data Sheet, they are fixed rather than random/choseable
Would suggest SWDIO, SWCLK, SWO, NRST, and VCC/GND for target. Connect up access to BOOT0 pin and PA9/PA10 USART1
Would suggest a through review of the content of Data Sheet, Reference Manual and Programming Manual for the F3 part
2021-03-23 01:58 PM
Put a JTAG or SWD header on the board, wiring it to the respective pin indicated in the Data Sheet, they are fixed rather than random/choseable
Would suggest SWDIO, SWCLK, SWO, NRST, and VCC/GND for target. Connect up access to BOOT0 pin and PA9/PA10 USART1
Would suggest a through review of the content of Data Sheet, Reference Manual and Programming Manual for the F3 part
2021-03-23 02:14 PM
Reconsider using the F373. The SDADC is sub-par and the F373 does not have other unique feature. Otherwise, get a F3 disco and replace the F303 to a F373 for a start. Starting from scratch will give you (too) many pitfalls.
2021-03-23 04:57 PM
Apart from the specifics mentioned above, here are some general tips & suggestions for "debuggability":
https://www.avrfreaks.net/forum/how-do-i-check-life-signs-scope-atmega2560-standalone
"where is overall documentation on how to debug?"
See the documentation for the ST-Link
Debugging is covered from Section 3 in the CubeIDE User Guide:
https://www.st.com/resource/en/user_manual/dm00629856-stm32cubeide-user-guide-stmicroelectronics.pdf
The Quick Start Guide has a section on debugging:
There's also videos: https://www.youtube.com/watch?v=4wT9NhlcWP4 etc ...
2021-03-23 05:01 PM
One thing to note is that the STLINK-V3SET is for 3V targets only - so, if you're planning on running at lower voltage, you'll need the B-STLINK-VOLT level shifter board:
2021-03-24 11:04 AM
Thank you for the advice. I have my doubts about STs ADCs anyway. I also got a new requirement that the AFE be galvanically isolated, and isolated across multiple channels, so I'm pursuing a different approach that eliminates the need for the ADC any way since it will be on the other side of an isolation circuit.
Also I needed a kick in the pants about designing a board with no prototyping ;)
2021-03-24 11:07 AM
I'm running my entire system at 3V3 so I'm good for now! Thank you.
2021-03-25 03:24 AM