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++

ISS Debugging Problem

Altera_Forum
Honored Contributor II
1,091 Views

Hi all,  

 

I'm a newbie with NIOS II IDE development. I have a strange problem during debugging of the following simple code with the following System Properties: 

 

"Program never exist" Turned ON 

"Small C Library" Turned ON 

each other checkbox is deactivated. 

 

OnChip Memory for all memory Types. No kind of RTOS implemented. Stdout, stderr, stdin set to JTAG 

 

# include <stddef.h># include <stdio.h># include <sys/alt_irq.h># include <sys/alt_alarm.h># include "alt_types.h" 

 

alt_u32 my_alarm_callback (void* context) 

printf ("Timer Callback"); 

return alt_ticks_per_second(); 

 

int main() 

static alt_alarm alarm; 

 

printf("Hello from Nios II!\n"); 

printf("Init Timer\n"); 

 

if (alt_sysclk_init (1) < 0) 

printf ("No system clock available\n"); 

 

if (alt_alarm_start (&alarm,alt_ticks_per_second(),my_alarm_callback,NULL) < 0) 

printf ("No system clock available\n"); 

 

return 0; 

 

When I start a debug session I come to the first printf command, stepping over I come to the next printf command. When I try now, to step over this printf command, the IDE jumps to the alt_alarm.h file, in a row where no commands are written. I have never seen a such behavior. 

 

Anyone knows what could cause this strange behavior?  

 

Thx
0 Kudos
0 Replies
Reply