Real-time embedded

Discussion in 'Embedded Systems and Microcontrollers' started by alphacat, Feb 12, 2010.

  1. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    I have a major problem which I dont understand.

    I got two Ucs that communicate with each other.

    One of the Ucs has its entire code segment full, I cant even add an 'if else' line without the compiler issuing an error that says there isnt enough memory space.

    The problem is that the code-loaded Uc sometimes stops functioning, meaning at the middle of its operation, the code stops running.
    For example, every 5 seconds, its LED blinks, and when it stops functioning, its LED stops blinking.
    I dont manage to always reproduce the situation where the code stops running so its very hard for me to know whether this is a bug in code.

    Could it be due to memory space?

    Thank you.
  2. Markd77

    Senior Member

    Sep 7, 2009
    I'd suspect a bug somewhere. There must be something that can be optimised to make it not completely full and see if it still stops working.
  3. atferrari

    AAC Fanatic!

    Jan 6, 2004
    What micro is that?

    I presume you use C, isn't it?