TR-9 icon indicating copy to clipboard operation
TR-9 copied to clipboard

Unify SWD header on TR-9 with HMI

Open tkuester opened this issue 5 years ago • 3 comments

As of 9ac1f05, the HMI board and the TR-9 share a different header layout for the SWD interface. Per a conversation with @sp5wwp, it would be nice to unify the headers to a common standard.

Headers on the TR-9 Mainboard

Headers on the HMI Board

Some considerations I think are important:

  • Having the same ordering, and number of pins. If pin 1 (square pad) is GND on one board, it should be the same on the other
  • Having a common interface with common STM32 programmers. (Regrettably, I am new to the STM32 ecosystem, I'm not sure what's common.) SP5WWP indicated that the 1.27mm pin headers are frustrating to work with
  • A silk screen indicating to the user which pin does what
  • Consideration for accessibility. It would be nice to be able to access the headers without having to entirely disassemble the module!

tkuester avatar Nov 12 '20 18:11 tkuester

  • Pin 1 can be GND on both connectors. Both should have the same ordering.
  • SWD uses SWCLK, SWDIO, /RST (and GND) signals. I'm not sure if there's any "common connector".
  • Info on the silk screen is OK if one can manage to put it there :-)
  • We can use anything as the connector. It's worth noticing that HMI board won't receive frequent firmware updates.

sp5wwp avatar Nov 14 '20 14:11 sp5wwp

I have a proposal for the SWD connector.

Programmers like this are relatively cheap and easy to come by. (~$6 USD) Do you think we could use the header for this?

Alternatively, I have an STM32 Nucleo-64 development board on my desk, and the pin order is:

1 - VDD_TARGET 2 - SWCLK 3 - GND 4 - SWDIO 5 - nRST

I'm still new to the STM32 platform, I'm just looking for "standards" that are pre-existing.

tkuester avatar Nov 15 '20 16:11 tkuester

We can use that mapping. Also: it is not necessary to use VDD_TARGET line.

sp5wwp avatar Nov 15 '20 16:11 sp5wwp