2026-06-04 3:17 AM - last edited on 2026-06-04 4:52 AM by Andrew Neil
Hello Team,
We are developing a custom board based on the STM32N657 MCU. During pin assignment in the CubeMX tool, PB3 is shown with the JTDO_SWO function. However, the datasheet indicates that the SWO functionality is associated with PB5.
Could you please confirm which pin actually supports the SWO function?
Thanks
2026-06-04 4:24 AM - edited 2026-06-04 4:36 AM
If you click on PB5 will you see SWO there?
2026-06-04 4:57 AM - edited 2026-06-04 5:01 AM
Hi,
you did/have to choose in Cube :
..then the needed pins swd, sdc, swo are set/used for this.
On other cpu, here H743 :
But from ds it is PB5 on N657.
If wrong pin is set by Cube ...found a bug.
sidekick telling:
If you are seeing PB3 assigned as SWO in CubeMX, it may be a tool configuration issue or a recent update not reflected in the current documentation.
+
Are you using latest version/update of the tools ?
+
Gemini tells:
2026-06-04 4:58 AM
The User Manual for the NUCLEO-N657X0-Q (MB1940) shows SWO as PB5:
via: https://www.st.com/en/evaluation-tools/nucleo-n657x0-q.html#documentation
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.