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

Design AI / ML Applications the Easy Way

March 29, 2024
The AI engineering team provides an overview and project examples of the complete reference solutions based on RA MCUs that are designed for easy integration of AI/ML technology...

Ultra-low Power 48 MHz MCU with Renesas RISC-V CPU Core

March 29, 2024
The industrys first general purpose 32-bit RISC-V MCUs are built with an internally developed CPU core and let embedded system designers develop a wide range of power-conscious...

Asset Management Recognition Demo AI / ML Kit

March 29, 2024
See how to use the scalable Renesas AI Kits to evaluate and test the application examples and develop your own solutions using Reality AI Tools or other available ecosystem and...

RISC-V Unleashes Your Imagination

March 29, 2024
Learn how the R9A02G021 general-purpose MCU with a RISC-V CPU core is designed to address a broad spectrum of energy-efficient, mixed-signal applications.

Comments

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