Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

NIOS II code crash! Strange Behaviour... NIOS bug?

Hi, Can anyone explain why debugger may be crashing?

Single stepping over CODE-A crashed the debugger requiring a power reset of USB blaster, sof download and restart eclipse.

Running over CODE-A works ok.

[CODE-A]:

for (int i=0; i < MAX_INPUT_STRING; ++i) e->cmd[i] = me->m_cmdString[i];

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hard to say. What options did you use when compiling? Compiling with anything other than -O0 could cause weird debug stuff to happen. How are "me" and "e" declared?