Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

[SoC]Reading a .txt file from SD in kid DE1/DE2?

I'm doing a project about tranfer file ".txt" from kit FPGA DE1 to PC via UART . How can I read data in ".txt" from SDCard(FAT32) using SOC Nios II ?

Please, giving me some advice or document about it !

Thank for reading !

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I think there are some examples of reading files from SD on the DE1 CD. Take that as a starting point and add code to print the content of your file to the console UART. You may need to change from a jtag uart to a UART in the FPGA connected to the RS232 port on the board. You will need a DB9 to USB adapter to see the results on your PC.