Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

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

Altera_Forum
Honored Contributor II
1,100 Views

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];

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
319 Views

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?

0 Kudos
Reply