Forum Discussion
Altera_Forum
Honored Contributor
21 years agoredirecting printf in HAL
Hi I have a Nios System that allows me to remotely download (through Ethernet Only) the FPGA data & code without using the Ethernet Blaster Cable / EPCS Devices on a Altera NDK 1s10(Stratix...
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- Hi I have a Nios System that allows me to remotely download (through Ethernet Only) the FPGA data & code without using the Ethernet Blaster Cable / EPCS Devices on a Altera NDK 1s10(Stratix). Now i want to redirect outputs from printf to my function. I notice that in system library properties , there is a list of devices to which i can redirect my output. I am guessing that inorder to redirect my output, i have to change some HAL settings file to add my function/device here. any suggestions?? regards Pavan[/b] --- Quote End --- You will need to write a character mode device driver for your device. See chapter 5 of the Nios II Software Developer's Handbook. Slacker is also correct once you have done this you will need the Is_Printable_Device entry in your PTF file, for your device to be available in the IDE for use as stdout.