Forum Discussion

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

Using SD-Card reader on DE1 board (with Nios)

Does someone know how could I include an sd-card controller to a nios II project in qsys?

thanks

10 Replies

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

    I have used "The Altera University Program (UP) SD Card IP Core" but during analysis and elaboration in quartus it found the following error :(

    Error: Node instance "packet_memory" instantiates undefined entity "Altera_UP_SD_Card_Memory_Block"

    please help me :(
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I ran into the same problem using the latest 12.0 IP for QSys:

    Error (12006): Node instance "packet_memory" instantiates undefined entity "Altera_UP_SD_Card_Memory_Block"

    Warning (12019): Can't analyze file -- file HostSystem/synthesis/submodules/Altera_UP_SD_Card_Memory_Block.vhd is missing

    I had to manually copy the following files from the IP directory to my Qsys synthesis directory:

    Altera_UP_SD_Card_Memory_Block.bsf

    Altera_UP_SD_Card_Memory_Block.cmp

    Altera_UP_SD_Card_Memory_Block.vhd

    From:

    C:\altera\12.0sp2\ip\University_Program\memory\altera_up_sd_card_avalon_interface\hdl

    To:

    <QsysProjectFolder>\synthesis\submodules
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes, it now compiles and seems to work properly.

    I am able to read the contents of a small text file off of the SD card. I have not tested it beyond this.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I will try to fix the problem in the same way. Thank you for the info :)

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

    --- Quote Start ---

    I ran into the same problem using the latest 12.0 IP for QSys:

    Error (12006): Node instance "packet_memory" instantiates undefined entity "Altera_UP_SD_Card_Memory_Block"

    Warning (12019): Can't analyze file -- file HostSystem/synthesis/submodules/Altera_UP_SD_Card_Memory_Block.vhd is missing

    I had to manually copy the following files from the IP directory to my Qsys synthesis directory:

    Altera_UP_SD_Card_Memory_Block.bsf

    Altera_UP_SD_Card_Memory_Block.cmp

    Altera_UP_SD_Card_Memory_Block.vhd

    From:

    C:\altera\12.0sp2\ip\University_Program\memory\altera_up_sd_card_avalon_interface\hdl

    To:

    <QsysProjectFolder>\synthesis\submodules\

    --- Quote End ---

    Hello,

    I am using Quartus version 12.1, the new SD-IP ,

    but I can't find the file Altera_UP_SD_Card_Memory_Block.vhd

    The file is included for Quartus Version 11.1 , but there is no

    QSYS support as far as I know?

    Any infos available ?

    Thanks and happy new year , Reinhard
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hello,

    I am using Quartus version 12.1, the new SD-IP ,

    but I can't find the file Altera_UP_SD_Card_Memory_Block.vhd

    The file is included for Quartus Version 11.1 , but there is no

    QSYS support as far as I know?

    Any infos available ?

    Thanks and happy new year , Reinhard

    --- Quote End ---

    Hello PDP11GY et all,

    I also encounter a problem like yours. Did you solve it? if you solved it, can you tell me how to fix this problem.

    please tell me if any one has any idea to fix it.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for your reply. I fixed it. I found the Altera_UP_SD_Card_Memory_Block files and added them to project. Finally, everything is ok :)

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

    Hello all,

    I have the same problem with quartus 11.

    When I compile the project I get the error: Error: Node instance "packet_memory" instantiates undefined entity "Altera_UP_SD_Card_Memory_Block"

    But when i add the files Altera_UP_SD_Card_Memory_Block to the project, I can compile the project, but when I run it, sd doesn't work. Just at if(alt_up_sd_card_is_Present()) and doens't work

    In quartus 13 works fine. But I need run it on quartus 11.

    Any solution?

    Thank you