Debugging C code if your SIM/EVM does not support debugging

At times, especially while working at system level/product level we will not have much chance to debug the code using break points in code for example it can be in application/firmware/dsp code

so if suppose you are stuck with wrong output and landed in finding out the bug and in case your sim/evm does not support any real time debugging then what is the method you are going to approach for step by step debugging.

So here comes the solution for this kind of problems.

For example: Consider a sample code flow show below.

main()
{

mem_alloc_inp();

mem_alloc_out();

input_read();

decimation_dsp_algo();

conv_dsp_algo();

output_read();

output_write();
}

suppose decimation_dsp_algo(); module is the cause for the corruption of the total output.

Just place a loop as show below and verify the contents of input and output buffers in the memory of decimation_dsp_algo();

main()
{

mem_alloc_inp();

mem_alloc_out();

input_read();

while(); /* 1st Verify input */

decimation_dsp_algo();

while(); /* 2nd Verify output */

conv_dsp_algo();

output_read();

output_write();
}

Note: Need to remove 1st while to verify output buffer

PID Controller Design with MATLAB and Simulink 22 Oct 2009 3:00 PM IST


PID control is ubiquitous. Although simple in theory, the design and tuning of PID controllers can be difficult and time consuming in practice.In this webinar we will show you a simple and straightforward way to quickly design, tune, and implement PID controllers. You will learn how to tune PID controllers for control systems in various industries, and how to address practical considerations such as conversion from continuous to discrete-time domain, implementation in the parallel or ideal form, output saturation, and anti-windup protection.A Q&A session will follow the presentation and demos.

Register Now Invite a Colleague

Register for this webinar at: https://mathworksevents.webex.com/mathworksevents/onstage/g.php?d=662297765&t=a&s_v1=1-AVDSGP_1-4VOULYWe look forward to having you attend.

[News] IFR WorldRobotics 2009 Statistical Report Released



Service robots are increasingly entering factories, hospitals, public buildings, dangerous and hazardous areas, oceans, space, cow barns, fields, etc.

The new IFR WorldRobotics 2009 Statistical Report, just released, reports $11 billion service robots and $19 billion industrial robots through 2008. Service robots held their own in 2008 and have a bright future; industrial robots are regrouping into non-industrial areas.

SANTA BARBARA, CA (October 5, 2009) - "By 2015 we will see many robots in and around most companies sweeping, guarding and serving. These new robots will partly be introduced by the industrial robot companies who are broadening their scope and by new and innovative companies being very attractive employers for young engineers and IT specialists" says Arturo Baroncelli, of Comau Robotics, Italy.

“Due to the fact that the largest user group of industrial robots - car makers - will not return to high purchase volumes like in the past, robot manufacturers are putting more effort into the handling and green power segments, with a wide range of new applications" said Klaus M. Paulus, from MOTOMAN GmbH, Germany.

The new WorldRobotics report costs $750 but the abstracts can be read free by following the links on THE ROBOT REPORT. For careers, investments, science and technology, this is an industry to watch closely with a business mindset. The founder of a leading robotics company said about THE ROBOT REPORT: “...your site has been a mainstay of my presentations. It shows next-generation robotics as ‘a real business and not just a big playground.’”

THE ROBOT REPORT also compiles a proprietary tracking device, Robo-Stox(TM), which graphically compares worldwide publicly traded robotic stocks to the NASDAQ index - a comparison which clearly shows that the robotic stocks of the UK, the EU, Korea and Japan, with the assistance of strategic public-private consortiums, are surpassing the U.S. - particularly in the area of service robotics.


About The Robot Report
The Robot Report is a U.S. based research website focused on tracking the worldwide business of robotics and compiling and updating the most comprehensive database of public and private companies and research and educational facilities participating in the robotics industry.

There are over 100 news items and 1,100 robotic businesses and research links on the site. Bookmark and revisit often to keep current with this dynamic emerging industry.

(http://www.TheRobotReport.com).

Contact
Frank Tobe
805 895-4141
(
ftobe@TheRobotReport.com)


© 2009 The Robot Report. All rights reserved. ROBO-STOX™ is proprietary to The Robot Report.

Related Posts

Twitter Updates

Random Posts

share this post
Bookmark and Share
| More
Share/Save/Bookmark Share