Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 3rd May 2007, 09:19 AM   (permalink)
Default Strange problem

Hi All,

I'm facing a very strange problem in due course of my development.

My application is called Modbus.

When i download my Modbus code to my controller, the code gets downloaded.
Automatically it gets reset, and starts working perfectly, without any problems.

But if i reset it now. Then after a few statements after reset the controller seems to hang. Now comes the interesting part. Now even if i download my Modbus code, the controller hangs after executing a few statements after reset.

But if i download some other code ( ANY CODE) and then download the Modbus code it works. But after a reset the controller behaves in a similar way given above.

See the flowchart of the problem attached. I intend to provide a clear picture of my problem through this flowchart.

I'm stuck up at this strange problem.
Friends...any suggestions??
Attached Images
File Type: jpg problem_flow.JPG (21.6 KB, 9 views)
tkvenki is offline   Reply With Quote
Old 3rd May 2007, 11:39 AM   (permalink)
Default

Your description suggest that something is not initialised correctly. To try and identify the problem you could try,
Initialise all ram to a fixed value.
Call all initialise routines twice to see if they hang the second time.
Try to identify where the code stops and work back from there.

Mike.
Pommie is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Very strange problem with a crystal oscillator patroclus General Electronics Chat 23 20th June 2006 10:36 PM
Strange WPU problem. 2camjohn Micro Controllers 3 10th April 2006 02:05 AM
Very strange problem with portb in 16F628 patroclus Micro Controllers 3 2nd December 2005 01:19 PM
Help! STRANGE problem with my walkman varun General Electronics Chat 3 28th February 2004 04:32 AM
strange color camera problem schrodingerscat Electronic Projects Design/Ideas/Reviews 5 4th October 2003 07:25 PM



All times are GMT. The time now is 04:50 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.