Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHelp with firts NIOS code
Hello, please with my first nios code. # include "alt_types.h"# include "sys/alt_irq.h"# include "system.h"# include <stdio.h># include <unistd.h> int main(void){ int a = 10...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- https://www.altera.com/en_us/pdfs/literature/hb/nios2/n2sw_nii5v2.pdf See the description of alt_printf() on page 14-78.
Description
The alt_printf() function provides a very minimal printf implementation for use with very small
applications. Only the following format strings are supported: %x, %s, %c, and %%.
So, probably using "%i" is why it doesn't work for you. --- Quote End --- Yes, problem solved, thanks!