2015-06-17 11:38 AM
i use st-link2 to debug my board (with swdio (pa13)/swclk (pa14)), i can program without problem, but when i start debug and program set pa13 as output pushpull the debug hangs.
On my board pa13 is also connected on the cs pin of mcp23s17.is possible debug using pa13/pa14 with other component connected on this pins? there are suggestions/precaution about this? how i can make his functional?thanks2015-06-17 11:53 AM
i use st-link2 to debug my board (with swdio (pa13)/swclk (pa14)), i can program without problem, but when i start debug and program set pa13 as output pushpull the debug hangs. On my board pa13 is also connected on the cs pin of mcp23s17.
is possible debug using pa13/pa14 with other component connected on this pins? there are suggestions/precaution about this? how i can make his functional?If it works up until you reconfigure the pin you're using, Then don't do that...It's definitely going to be problematic, and clearly a very poor design choice for your board. It's going to be an issue for the MCP23S17 more than the STM32You can use a USART to output diagnostic and telemetry information as a means to understand what's going on inside your board. If you want the SWD single step and breakpoint functionality, you'll need to forego the use of the pin for the MCP23S17