Finding The Right Solution

July 7, 2003
Write once with no bugs. That's every programmer's dream. Unfortunately, it doesn't usually work in practice. Fixing a problem requires finding the problem, then applying an appropriate fix. In many cases, there's...

Write once with no bugs. That's every programmer's dream.

Unfortunately, it doesn't usually work in practice. Fixing a problem requires finding the problem, then applying an appropriate fix. In many cases, there's more than one solution. Searching for these solutions and knowing when to do this separates the novices from the pros.

I was reminded of this the other day when an HTML question arose. There was a need to post a page of text that contained preformatted information. The tools were a Web page interface and a document editor. The problem was that the Web page interface tried to be HTML-friendly and would remove spaces and blank lines that threw off the formatting. In this situation, the kinds of tools used and the procedure caused the problem.

This is similar to the problem of hardware and software debugging. A variety of tools and methodologies exists. The variations in capabilities and how well they're applied can make the difference between finding and not finding a problem and a solution. It can also make the difference between locating the root problem in minutes or days.

ICE (in-circuit emulation) is invaluable, but ICE hardware tends to be expensive. It also requires a chip design amenable to ICE. The speed and complexity of today's microcontrollers also makes dealing with ICE rather difficult.

JTAG (IEEE 1149.1) is one approach. But its throughput becomes a limitation, and there's the need to stop the processor to utilize the debugging features. Vendor-specific advances like ARM's ETM (Embedded Trace Macrocell) provide real-time features that bypass these limitations. However, it may be standards like Nexus 5001 that deliver the debugging goods as JTAG has done thus far (see "Next Nexus Delivers Debug Data," p. 50).

The HTML problem turned out to have a number of solutions like passing the original document into an HTML editor and then grabbing HTML output. This was an improvement over the manual editing that was originally used. After a little more digging I found the

 HTML tag description. Adding it to the start of the document solved the problem. The 10-second solution beat the other alternatives in speed and simplicity. Best of all, there was no need to check the original copy for changes. Hopefully all your debugging problems will turn out as well.

Sponsored Recommendations

TTI Transportation Resource Center

April 8, 2024
From sensors to vehicle electrification, from design to production, on-board and off-board a TTI Transportation Specialist will help you keep moving into the future. TTI has been...

Cornell Dubilier: Push EV Charging to Higher Productivity and Lower Recharge Times

April 8, 2024
Optimized for high efficiency power inverter/converter level 3 EV charging systems, CDE capacitors offer high capacitance values, low inductance (< 5 nH), high ripple current ...

TTI Hybrid & Electric Vehicles Line Card

April 8, 2024
Components for Infrastructure, Connectivity and On-board Systems TTI stocks the premier electrical components that hybrid and electric vehicle manufacturers and suppliers need...

Bourns: Automotive-Grade Components for the Rough Road Ahead

April 8, 2024
The electronics needed for transportation today is getting increasingly more demanding and sophisticated, requiring not only high quality components but those that interface well...

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!