Forum Discussion
Altera_Forum
Honored Contributor
15 years agoprintf crashes SW with ISR
Hi there all! I've been trying to debug this code for a couple of days now but I'm still stuck. I've been looking for similar threads here and read most if it. I've also read "User guide embedd...
Altera_Forum
Honored Contributor
15 years agoThanks a lot Slacker!
This is what I found:
void alt_sys_init( void )
{
ALTERA_AVALON_JTAG_UART_INIT( JTAG_UART, jtag_uart );
ALTERA_AVALON_UART_INIT( UART, uart );
ALTERA_AVALON_CFI_FLASH_INIT( CFI_FLASH, cfi_flash );
}
So ALTERA_AVALON_UART_INIT( UART, uart ); is being called, I guess the function is defined in: "altera_avalon_uart.h" or am I completely wrong? I did a quick search on my harddrive for altera_avalon_uart.h and this file is located in Quartus and not the Nios directory. Do the functions get its parameters from the system.h ? Anyhow the questions above are quite unimportant. If I get it right, should I now try to locate the altera_avalon_uart.h and change the HAL-interrupt that I previously was interrupting with? My goal is to have a program that gets information through UART on interrupt and stores the data from the UART in a vector. Hope im not too confusing ;) Over and out, mr_embedded