rusefi / hw_microRusEfi

microRusEfi board for rusEfi ECU
66 stars 36 forks source link

Why are we using a nonstandard debug header? #121

Open mck1117 opened 4 years ago

mck1117 commented 4 years ago

There exists a standard debug header that is:

Here's the doc on the Cortex debug headers. We'd be interested in the "Cortex Debug Connector (10-pin)" described on page 2. http://infocenter.arm.com/help/topic/com.arm.doc.faqs/attached/13634/cortex_debug_connectors.pdf

When the ST-LINK/V3 comes out soon, we'll be able to buy just the $11 programmer: https://www.digikey.com/product-detail/en/stmicroelectronics/STLINK-V3MINI/497-19530-ND/10266291

Today, the connector can be used with an official ST-LINK/V2: https://www.digikey.com/product-detail/en/stmicroelectronics/ST-LINK-V2/497-10484-ND/2214535 Plus an adapter to the 1.27mm 10-pin: https://www.digikey.com/product-detail/en/olimex-ltd/ARM-JTAG-20-10/1188-1016-ND/3471401

mck1117 commented 4 years ago

update: Mouser has the stlink-v3 in stock! https://www.mouser.com/ProductDetail/STMicroelectronics/STLINK-V3MINI?qs=mAH9sUMRCtvrXm%2FF%2FC0CYg%3D%3D

mck1117 commented 4 years ago

And here's an example connector we could put on the board: https://www.digikey.com/product-detail/en/samtec-inc/FTSH-105-01-F-DV-007-K/SAM15640-ND/6693339 It's quite small, only requires around 6x7mm of board space.

DonaldBecker commented 4 years ago

The argument for the current connector is: A USB dongle ST-Link v2 is $2 The connector is inexpensive, at around $0.25 The connector pins are enclosed, making it safe for poking around. Both 5V and 3.3V can be supplied through the connector, allowing a single debugging cable

The argument against is The footprint is huge Using a female header requires the ST-Link dongle to plug directly into the board Doubled pins are certainly not needed.

Alternative are Omitting programming header completely

Right now I'm leaning to a 3 or 4 pin SWD only connector, with a leg-less TagConnect footprint. Perhaps with a 2x2 SMD pin header rather than the 1x4 Discovery header for space savings That provides almost complete debugging at minimal cost, usable with the existing ST-Link debuggers.

jharvey commented 4 years ago

This is obsolete, suggest closing this issue. We appear to have both standard and less standard programming headers now.

mck1117 commented 4 years ago

We have 10 pin cortex now?