ContributionsMost RecentMost LikesSolutionsDE1-SoC Computer with Nios V design files Hi, I'm looking for the design files (mainly the .qsys) of the DE1-SoC Computer with Nios V system mentioned in this file https://fpgacademy.org/Downloads/DE1-SoC_Computer_NiosV.pdf Thanks in advance for your help. Vincent Re: UART stops working when interrupts are enabled Hi Jingyang, Teh, Thanks! At last, this provides an answer to the issue. I will inform my students and colleagues about it and advice them to use the HAL API from now on. Best regards Pr. Vincent Frick Re: UART gets stuck when enabling IRQ (NIOS II) Hi Jingyang, Teh, Thank you for your message. The documentation you suggest does not give any further help on how to configure fast implementation except from setting the HAL environment to default. By "fast" or "small" implementation, do you mean the "small driver" option that can be found in the BSP tool, which can be accessed via Eclipse? If so, my system does not use the small implementation of the driver, (i.e. I always use the default settings, which is the "fast" driver according to the documentation). I would appreciate you provide me with more specific information on how to use fast implementation of the HAL Software. Best regards Vincent Re: UART gets stuck when enabling IRQ (NIOS II) Hi, If you look carefully at the code, when I call the function "void UART_write(char * out_data, int length)" I do open the UART. >> See line fUART=fopen(RFS2_UART_NAME, "w"); where RFS2_UART_NAME defines "/dev/RFS2_UART" in my system.h file. I also open the JTAG_UART in the main program, but that's only for stdio operations, and I don't do anything that involves the JTAG_UART interrupt. Best regards Vincent Re: UART gets stuck when enabling IRQ (NIOS II)Hi Jingyang, Teh, I’m currently on vacation and have no access to my computer. I’ll get back to you next week. Best regards VincentRe: UART gets stuck when enabling IRQ (NIOS II) Hi Jingyang, Teh, No worries, we're all busy. Thanks for your reply! Yet, the problem has nothing to do with the JTAG UART (i.e. the IRQ for this IP is never registered nor unregistered) I use it as my stdio interface. The problem occurs on the RS232 UART (RFS2 UART in my project), i.e. when I enable/disable the IRQ on this interface. Best regards Vincent Re: Is it possible to run NIOSV through SDRAM ? Hi Himanshu, This message to inform you, and everyone in the Intel/Terasic community who might be interested, that I managed to implement a NIOS V using the SDRAM on a DE10-Lite board. A few things need to be carefully considered though if you want the system to work. First, it seems the NIOS V is unable to run at 100 MHz on the DE10-Lite board (while the NIOS II has no problems at 100 MHz). The timing analysis revealed that the maximum frequency is slightly above 95 MHz (maybe Intel people could confirm or otherwise indicate how to improve the NIOS V top frequency on that board). So, I lowered the speed down to 90 MHz (using the altpll IP). By lowering the frequency, I feared the SDRAM module wouldn't work properly since the manufacturer recommends higher frequencies, but it seems to be robust against frequency changes. Second, you need to select at least the Performance (High-effort - increases runtime) optimization mode in the Compiler Settings. In Balanced mode, the system seems to fail reaching the required timing performance. Normally, by doing this, you're in business...! I would also like to add that I experienced some strange behaviours on Ashling RiscFree IDE. First, sometimes the program fails to updated when I want to run a new version. Say for instance, I first run a simple 'Hello World' and then I want to add new instructions, the simple 'Hello World' keeps on running (even when terminating the program properly from the console). I have to restart the whole download process over, and sometimes even need to reset the system before the new app version is taken into account. Any idea where this issue might come from? Best regards Vincent Re: UART gets stuck when enabling IRQ (NIOS II) Hi Jingyang, Teh, Thank you for trying to help. Yet, the above example is based on the nios-dedicated macros for sending/reading data from a UART, which obviously work, and I also successfully used them as previously mentioned. But it still does not answer my original question/issue: why is the use of the fprintf instruction incompatible with the interrupts on the UART, even when the interrupt is disabled prior to using fprintf? To summarize the context and symptoms: Context: System that features a UART Symptoms: 1. Program that manages to send/receive data from that UART without IRQ using fprintf (via a FILE) 2. Program that gets stuck whenever the IRQ of the UART is registered, even when no data is sent or received 3. Program that gets stuck even when no data is sent or received AND trying to unregister or disable the IRQ of the UART I know the solution and workaround exist, but I still would like to understand the cause of this issue. We tried an equivalent code on other microcontrollers and no issues were detected. I hope my request is clearer. Best regards Vincent Re: Is it possible to run NIOSV through SDRAM ? Hi Himanshu, Thanks for your help. I will try it as soon as I receive a reply from Intel regarding the use of a PLL to overclock the NIOS V. The SDRAM on the DE10-Lite board requires at least a 100 MHz clock to run properly, so the whole system needs to be overclocked. NIOS II works perfectly well at 100 MHz, but it seems there is an issue with overclocking the NIOS V, or maybe (probably) I'm missing something. Thanks again Best regards Vincent Re: UART gets stuck when enabling IRQ (NIOS II) Hi, Thanks for your reply. I can try your example but I can't see any source file. Could you check if the files or code were attached to your reply? Best regards Vincent