Purpose of the TRST and Power pin on Blackpill design #1953
Replies: 4 comments 8 replies
-
Current generation Black Magic Probe itself does not expose or provide ~TRST, only ~RST which is what the iRST_SENSE line is about. ~TRST is the JTAG Test Reset pin and is only found on some pinouts for JTAG (excluding ARM's 10-pin pinout, but such as their older pre-trace 20-pin pinout). This pin only resets the JTAG state machine, which is usually achieved via clocking the same state machine with TCK while holding TMS high for at least 5 cycles. The design of the JTAG state machine guarantees this is the exact same operation as pulsing ~TRST would be. You are correct that power control is achieved on BMP via the PWR_BR line. Do note that for Black Pill, the common code for the platform defines all the critical pinout things expected by those 3 platforms. |
Beta Was this translation helpful? Give feedback.
-
I was wondering why the version 2.1e schematics would connect the TRST_PIN to the RST pin through a Mosfet. If the TRST_PIN is only useful on pre-Cortex connectors why include it in the design? I do not have access to the schematics for v2.3, so I don't know if this pin is still connected. My projects use small STM32s and clone chips. I've purchased several v2.3 probes from iBitSquared but I also like building my own tools. I have previously built probes using Bluepills and now I want to build one using an STM32F411CE based Blackpill. |
Beta Was this translation helpful? Give feedback.
-
Going back to version 2_1e of the Blackmagic Probe schematics I am having trouble understanding the purpose of routing pin PB1, PWR_BR, through a Duel P-Channel Mosfet, specifically the DMG1023uv-7 labeled as Q1. Is the purpose to keep the VCC pin of the JTAG-10 at 3v3 when PB1 is Low or when it is High? And why use a duel P-Channel mosfet? Wouldn't a single mosfet or transistor work just as well? I understand this ties into the tpwr monitor command. |
Beta Was this translation helpful? Give feedback.
-
Hi @TaurusEight so.. there are two parts to your question really.. we'll answer the second first as it'll help things make more sense: The dual pFET is used to prevent backflow in both directions when not enabled. Otherwise the target would backfeed the BMP power supply, or BMP would backfeed the target - both of which are potentially bad news. The way that PWR_BR works is that when low (off), the pFETs are turned on hard (-3.3Vgs) and conduct, shunting the 3.3V regulator to VTgt; when high (on), the pFETs are turned hard off (0Vgs) and hold the two thoroughly separated from each other. To understand why the use of two pFETs is required here, please look at the theory on how the body diode of a FET works and interacts in this situation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting build a BMP from a Blackpill but I have a few questions concerning the purpose of both the PA6 pin marked TRST and PA1 pin marked Power. I have been referencing the schematic file 'bmpm_v2_1e_schematic.pdf' and I was wondering if the TRST pin is the iRST_SENSE line and the Power pin is the PWR_BR line.
-A
Beta Was this translation helpful? Give feedback.
All reactions