如何格式化 SD 卡以用于 Altera DE2-115 演示音乐播放器项目?
How do I format an SD Card for use with the Altera DE2-115 demonstration music player project?
所以我正在尝试 运行 Altera 提供的 Quartus 项目用于从 SD 卡播放 .wav 文件。说明说 运行 一个 bash 文件将所有代码加载到开发板上,运行 nios 软件(而不是使用 Quartus 和 Eclipse)。我按照说明格式化了 SD 卡(FAT16 或 FAT32,都不起作用),它是 2GB 普通 SD 卡(不是 SDHC 或 XC)所以应该没有任何问题,因为我在网上有其他地方你必须使用一张普通的 SD 卡,我自己也尝试过使用 SDHC 卡但失败了。
正如我提到的,我已经尝试过 FAT16 和 FAT32,但没有成功。当我将 SD 格式化为 FAT32 时,我在 windows 命令行中不断收到错误消息“[FAT] 分区类型 (12) 不受支持。”当我格式化为 FAT16 时,出现错误“[FAT] 不支持分区类型 (14)。”
我应该如何格式化此 SD 卡以使其与此 Quartus 代码一起使用?
Link 方向(在 .pdf 的第 95 和 96 页):https://www.intel.com/content/dam/altera-www/global/en_US/portal/dsn/42/doc-us-dsnbk-42-1404062209-de2-115-user-manual.pdf
另外,当我 运行 bash.
时,windows 命令行告诉我的是什么
Info: *******************************************************************
Info: Running Quartus Prime Programmer
Info: Version 18.0.0 Build 614 04/24/2018 SJ Lite Edition
Info: Copyright (C) 2018 Intel Corporation. All rights reserved.
Info: Your use of Intel Corporation's design tools, logic functions
Info: and other software and tools, and its AMPP partner logic
Info: functions, and any output files from any of the foregoing
Info: (including device programming or simulation files), and any
Info: associated documentation or information are expressly subject
Info: to the terms and conditions of the Intel Program License
Info: Subscription Agreement, the Intel Quartus Prime License Agreement,
Info: the Intel FPGA IP License Agreement, or other applicable license
Info: agreement, including, without limitation, that your use is for
Info: the sole purpose of programming logic devices manufactured by
Info: Intel and sold by Intel or its authorized distributors. Please
Info: refer to the applicable agreement for further details.
Info: Processing started: Wed Dec 04 21:30:57 2019
Info: Command: quartus_pgm -m jtag -c 1 -o p;DE2_115_SD_Card_Audio_Player.sof
Info (213045): Using programming cable "USB-Blaster [USB-0]"
Info (213011): Using programming file DE2_115_SD_Card_Audio_Player.sof with checksum 0x00B3A0D0 for device EP4CE115F29@1
Info (209060): Started Programmer operation at Wed Dec 04 21:30:58 2019
Info (209016): Configuring device index 1
Info (209017): Device 1 contains JTAG ID code 0x020F70DD
Info (209007): Configuration succeeded -- 1 device(s) configured
Info (209011): Successfully performed operation(s)
Info (209061): Ended Programmer operation at Wed Dec 04 21:31:05 2019
Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 4435 megabytes
Info: Processing ended: Wed Dec 04 21:31:05 2019
Info: Elapsed time: 00:00:08
Info: Total CPU time (on all processors): 00:00:01
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 119KB in 1.8s (66.1KB/s)
Verified OK
Starting processor at address 0x030401B4
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
===== Welcome to SD-CARD Demo Program =====
Supported File System: FAT16,FAT32, English Short File Name,English Long File Name
Played Wave Files: Wave files on root directory.
Supported Media File: Uncompressed WAV File, Sample-Rate 96K/48K/44.1K/32K/8K, Stereo, 16-bits Sample.
KEY4: Next Song
SW0 ON: Enable Repeat Mode
KEY3: Volume Up
KEY2: Volume Down
Current Voluem:120(47-127)
[AUDIO] AUDIO_Init...
[AUDIO] set audio reg[15] = 0000h
[AUDIO] set audio reg[09] = 0000h
[AUDIO] set audio reg[00] = 0017h
[AUDIO] set audio reg[01] = 0017h
[AUDIO] set audio reg[02] = 005Bh
[AUDIO] set audio reg[03] = 005Bh
[AUDIO] set audio reg[04] = 003Dh
[AUDIO] set audio reg[05] = 0000h
[AUDIO] set audio reg[06] = 0000h
[AUDIO] set audio reg[07] = 0042h
[AUDIO] set audio reg[08] = 0002h
[AUDIO] set audio reg[09] = 0001h
[AUDIO] AUDIO_Init success
[AUDIO] set audio reg[02] = 0078h
[AUDIO] set audio reg[03] = 0078h
[AUDIO] set Line-Out vol(120,120) success
Please insert SD card.
Find SD card
[FAT]the partition type(14) is not supported.
[FAT]Fat_Mount fail
SD card mount fail.
Link 我正在尝试 运行 提供的 Altera 代码:http://download.terasic.com/downloads/cd-rom/de2-115/CD-ROM_NXP_USB/
(从上面 link 下载 .zip 后,路径为:DE2-115_V.1.0.6_SystemCD.zip\DE2-115_V.1.0.6_SystemCD\DE2_115_demonstrations\DE2_115_SD_Card_Audio_Player\demo_batch\DE2_115_SD_Card_Audio_Player.bat
)
好的,所以对于将来发现此 post 的任何人,我找到了解决方案。通过使用 SD 提供的 SD 卡格式化工具格式化 SDSC 卡解决了我的问题,使用 WINDOWS 格式化不起作用。由于某些原因,此工具成功地以 DE2-115 可以识别的方式将卡格式化为 FAT16。
Link 到工具 (Windows): https://www.sdcard.org/downloads/formatter/eula_windows/index.html
Link 到工具 (Mac): https://www.sdcard.org/downloads/formatter/eula_mac/index.html
如果这些链接由于某种原因停止工作只是 google "SD Card format tool" 并且您要确保从 SD 协会下载该链接。
所以我正在尝试 运行 Altera 提供的 Quartus 项目用于从 SD 卡播放 .wav 文件。说明说 运行 一个 bash 文件将所有代码加载到开发板上,运行 nios 软件(而不是使用 Quartus 和 Eclipse)。我按照说明格式化了 SD 卡(FAT16 或 FAT32,都不起作用),它是 2GB 普通 SD 卡(不是 SDHC 或 XC)所以应该没有任何问题,因为我在网上有其他地方你必须使用一张普通的 SD 卡,我自己也尝试过使用 SDHC 卡但失败了。
正如我提到的,我已经尝试过 FAT16 和 FAT32,但没有成功。当我将 SD 格式化为 FAT32 时,我在 windows 命令行中不断收到错误消息“[FAT] 分区类型 (12) 不受支持。”当我格式化为 FAT16 时,出现错误“[FAT] 不支持分区类型 (14)。”
我应该如何格式化此 SD 卡以使其与此 Quartus 代码一起使用?
Link 方向(在 .pdf 的第 95 和 96 页):https://www.intel.com/content/dam/altera-www/global/en_US/portal/dsn/42/doc-us-dsnbk-42-1404062209-de2-115-user-manual.pdf
另外,当我 运行 bash.
时,windows 命令行告诉我的是什么Info: *******************************************************************
Info: Running Quartus Prime Programmer
Info: Version 18.0.0 Build 614 04/24/2018 SJ Lite Edition
Info: Copyright (C) 2018 Intel Corporation. All rights reserved.
Info: Your use of Intel Corporation's design tools, logic functions
Info: and other software and tools, and its AMPP partner logic
Info: functions, and any output files from any of the foregoing
Info: (including device programming or simulation files), and any
Info: associated documentation or information are expressly subject
Info: to the terms and conditions of the Intel Program License
Info: Subscription Agreement, the Intel Quartus Prime License Agreement,
Info: the Intel FPGA IP License Agreement, or other applicable license
Info: agreement, including, without limitation, that your use is for
Info: the sole purpose of programming logic devices manufactured by
Info: Intel and sold by Intel or its authorized distributors. Please
Info: refer to the applicable agreement for further details.
Info: Processing started: Wed Dec 04 21:30:57 2019
Info: Command: quartus_pgm -m jtag -c 1 -o p;DE2_115_SD_Card_Audio_Player.sof
Info (213045): Using programming cable "USB-Blaster [USB-0]"
Info (213011): Using programming file DE2_115_SD_Card_Audio_Player.sof with checksum 0x00B3A0D0 for device EP4CE115F29@1
Info (209060): Started Programmer operation at Wed Dec 04 21:30:58 2019
Info (209016): Configuring device index 1
Info (209017): Device 1 contains JTAG ID code 0x020F70DD
Info (209007): Configuration succeeded -- 1 device(s) configured
Info (209011): Successfully performed operation(s)
Info (209061): Ended Programmer operation at Wed Dec 04 21:31:05 2019
Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 4435 megabytes
Info: Processing ended: Wed Dec 04 21:31:05 2019
Info: Elapsed time: 00:00:08
Info: Total CPU time (on all processors): 00:00:01
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 119KB in 1.8s (66.1KB/s)
Verified OK
Starting processor at address 0x030401B4
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
===== Welcome to SD-CARD Demo Program =====
Supported File System: FAT16,FAT32, English Short File Name,English Long File Name
Played Wave Files: Wave files on root directory.
Supported Media File: Uncompressed WAV File, Sample-Rate 96K/48K/44.1K/32K/8K, Stereo, 16-bits Sample.
KEY4: Next Song
SW0 ON: Enable Repeat Mode
KEY3: Volume Up
KEY2: Volume Down
Current Voluem:120(47-127)
[AUDIO] AUDIO_Init...
[AUDIO] set audio reg[15] = 0000h
[AUDIO] set audio reg[09] = 0000h
[AUDIO] set audio reg[00] = 0017h
[AUDIO] set audio reg[01] = 0017h
[AUDIO] set audio reg[02] = 005Bh
[AUDIO] set audio reg[03] = 005Bh
[AUDIO] set audio reg[04] = 003Dh
[AUDIO] set audio reg[05] = 0000h
[AUDIO] set audio reg[06] = 0000h
[AUDIO] set audio reg[07] = 0042h
[AUDIO] set audio reg[08] = 0002h
[AUDIO] set audio reg[09] = 0001h
[AUDIO] AUDIO_Init success
[AUDIO] set audio reg[02] = 0078h
[AUDIO] set audio reg[03] = 0078h
[AUDIO] set Line-Out vol(120,120) success
Please insert SD card.
Find SD card
[FAT]the partition type(14) is not supported.
[FAT]Fat_Mount fail
SD card mount fail.
Link 我正在尝试 运行 提供的 Altera 代码:http://download.terasic.com/downloads/cd-rom/de2-115/CD-ROM_NXP_USB/
(从上面 link 下载 .zip 后,路径为:DE2-115_V.1.0.6_SystemCD.zip\DE2-115_V.1.0.6_SystemCD\DE2_115_demonstrations\DE2_115_SD_Card_Audio_Player\demo_batch\DE2_115_SD_Card_Audio_Player.bat
)
好的,所以对于将来发现此 post 的任何人,我找到了解决方案。通过使用 SD 提供的 SD 卡格式化工具格式化 SDSC 卡解决了我的问题,使用 WINDOWS 格式化不起作用。由于某些原因,此工具成功地以 DE2-115 可以识别的方式将卡格式化为 FAT16。
Link 到工具 (Windows): https://www.sdcard.org/downloads/formatter/eula_windows/index.html
Link 到工具 (Mac): https://www.sdcard.org/downloads/formatter/eula_mac/index.html
如果这些链接由于某种原因停止工作只是 google "SD Card format tool" 并且您要确保从 SD 协会下载该链接。