hi cheplin...
it was a SDRAM timing problem, to solve that (and learn other things) first i did the SOPC builder tutorial, that i've found on the internet... You can find it in the following link
ftp://ftp.altera.com/up/pub/tutorials/de2/computer_organization/tut_sopc_introduction_vhdl.pdf The example works on DE2 pretty well, but for my application I need more memory. So I've found the following tutorial:
ftp://ftp.altera.com/up/pub/tutorials/de2/computer_organization/tut_de2_sdram_vhdl.pdf The design worked well, but when I tryed to use printf, i've got the problem that is described in the first post. I've already solved the problem with printf by using the most powerfull version of the Nios 2, i don't know why, but this solved my problem =]
Best luck
Julio