Automatic assignment of device debug communication pins
Abstract
An apparatus includes a debugger circuit, debug pins, and a test controller circuit. The test controller circuit is configured to, in a programming mode, determine a subset of the debug pins used in programming the apparatus. The test controller circuit is further configured to save a designation of the subset of the debug pins. The test controller circuit is further configured to, in a test mode subsequent to the programming mode, use the designation to route the subset of the debug pins used in programming the apparatus to the debugger circuit for debug input and output with the server.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (15 — 3 Independent, 12 Dependent)
- Claim 1Independent Claim
An apparatus, comprising: a plurality of debug pins to communicatively couple the apparatus with a server; a debugger circuit; and a test controller circuit to: in a programming mode, determine a subset of the plurality of debug pins used to program the apparatus with an operational functionality; save a designation of the subset of the plurality of debug pins used to program the apparatus with the operational functionality; in a test mode subsequent to the programming mode, use the designation to route the subset of the plurality of debug pins used to program the apparatus with the operational functionality to the debugger circuit for debug input and output with the server while debugging the operational functionality; and save the designation of the subset of the plurality of debug pins used to program the apparatus upon a determination that the server has sent a signal to enter the test mode.
- Claim 2Depends on #1
The apparatus of claim 1, wherein the test controller circuit is to erase the designation of the subset of the plurality of debug pins used to program the apparatus upon a determination of a power-on reset.
- Claim 3Depends on #1
The apparatus of claim 1, wherein the test controller circuit is to save the designation of the subset of the plurality of debug pins used to program the apparatus based upon completed reception of a code identifying a debug profile, the debug profile to define operation of the debugger circuit.
- Claim 4Depends on #3
The apparatus of claim 3, wherein the test controller circuit is to save the designation of the subset of the plurality of debug pins used to program the apparatus as a data pin and a clock pin used by the debug server to transmit the code to the apparatus.
- Claim 5Depends on #3
The apparatus of claim 3, wherein the test controller circuit is to save a different designation of the subset of the plurality of debug pins used to program the apparatus based upon completed reception of a different code identifying a different debug profile, the different debug profile to define different operation of the debugger circuit.
- Claim 6Independent Claim
A microcontroller, comprising: a plurality of debug pins to communicatively couple the apparatus with a server; a debugger circuit; and a test controller circuit to: in a programming mode, determine a subset of the plurality of debug pins used to program the apparatus with an operational functionality; save a designation of the subset of the plurality of debug pins used to program the apparatus with the operational functionality; in a test mode subsequent to the programming mode, use the designation to route the subset of the plurality of debug pins used to program the apparatus with the operational functionality to the debugger circuit for debug input and output with the server while debugging the functionality; and save the designation of the subset of the plurality of debug pins used to program the apparatus upon a determination that the server has sent a signal to enter the test mode.
- Claim 7Depends on #6
The microcontroller of claim 6, wherein the test controller circuit is to erase the designation of the subset of the plurality of debug pins used to program the apparatus upon a determination of a power-on reset.
- Claim 8Depends on #6
The microcontroller of claim 6, wherein the test controller circuit is to save the designation of the subset of the plurality of debug pins used to program the apparatus based upon completed reception of a code identifying a debug profile, the debug profile to define operation of the debugger circuit.
- Claim 9Depends on #8
The microcontroller of claim 8, wherein the test controller circuit is to save the designation of the subset of the plurality of debug pins used to program the apparatus as a data pin and a clock pin used by the debug server to transmit the code to the apparatus.
- Claim 10Depends on #8
The microcontroller of claim 8, wherein the test controller circuit is to save a different designation of the subset of the plurality of debug pins used to program the apparatus based upon completed reception of a different code identifying a different debug profile, the different debug profile to define different operation of the debugger circuit.
- Claim 11Independent Claim
A method, comprising: in a programming mode: determining a subset of a plurality of debug pins of an apparatus communicatively coupled with a server, the subset of the plurality of debug pins used in programming the apparatus with an operational functionality; and saving a designation of the subset of the plurality of debug pins used to program the apparatus with the operational functionality; saving the designation of the subset of the plurality of debug pins used to program the apparatus upon a determination that the server has sent a signal to enter a test mode; and in the test mode subsequent to the programming mode, use the designation to route the subset of the plurality of debug pins used in programming the apparatus with the operational functionality to the debugger circuit for debug input and output with the server while debugging the operational functionality.
- Claim 12Depends on #11
The method of claim 11, comprising erasing the designation of the subset of the plurality of debug pins used to program the apparatus upon a determination of a power-on reset.
- Claim 13Depends on #11
The method of claim 11, comprising saving the designation of the subset of the plurality of debug pins used to program the apparatus based upon completed reception of a code identifying a debug profile, the debug profile to define operation of the debugger circuit.
- Claim 14Depends on #13
The method of claim 13, comprising saving the designation of the subset of the plurality of debug pins used to program the apparatus as a data pin and a clock pin used by the debug server to transmit the code to the apparatus.
- Claim 15Depends on #13
The method of claim 13, comprising saving a different designation of the subset of the plurality of debug pins used to program the apparatus based upon completed reception of a different code identifying a different debug profile, the different debug profile to define different operation of the debugger circuit.
Technical Overview & Description
PRIORITY This application claims priority to Indian Patent Application No. 202011054200 filed Dec. 14, 2020, the contents of which are hereby incorporated in their entirety. FIELD OF THE INVENTION The present disclosure relates to microcontrollers and, more particularly, to automatic assignment of device debug communication pins. BACKGROUND Existing microcontrollers and other devices, when programmed, may be subsequently debugged. Devices may have several pairs of ports or pins that may be used for device programming and debugging by the end user. However, a typical use for programming and debugging communication with a programmer or debugger device is to use only one pair of pins. The other pins may be used for other purposes. During device programming, for a later debugger session, the user may manually select the pin pair that will be used for later debugger communications, so that configuration bits in memory can be programmed for the selected pin pair for the debug operation The configuration bit values may be selected using special code structures or via dialog boxes in the software environment. Inventors of examples of the present disclosure have discovered, however, that it is very common for these configuration bits to be set incorrectly. Moreover, such incorrect settings might not manifest themselves in a timely manner, and when they do, the precise problem may be obscured. For example, when incorrect settings for the debugging configuration bit values are used, the software environment during programming may show that device programming was successfully completed, but debugger communications failed. Examples of the present disclosure may address one or more of these aspects of debugging configuration. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an illustration of an example system for automatic assignment of device debug communication pins, according to examples of the present disclosure. FIG. 2 is a more detailed illustration of the system, according to
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (2)
- IEEE Standard 1149.7-2009, IEEE, p. 635 (Year: 2010).
- International Search Report and Written Opinion, Application No. PCT/US2021/062758, 11 pages, Apr. 4, 2022.