![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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?? |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |