⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create-this-app

📁 This SPI-mode SD Card controller is a free SOPC Builder component that can be used in any SOPC Build
💻
字号:
#!/bin/bash## This script creates an application Makefile in this directory.# First, check to see if $SOPC_KIT_NIOS2 environmental variable is set.# This variable is required for the command line tools to execute correctly.if [ -z $SOPC_KIT_NIOS2 ]then    echo Required \$SOPC_KIT_NIOS2 Environmental Variable is not set!    exit 1fi# Also make sure that the APP has not been created already.  Check for# existence of Makefile in the app directoryif [ -f ./Makefile ]then    echo Application has already been created!  Delete Makefile if you want to create a new application makefile    exit 1fiBSP_NAME=hal_defaultBSP_DIR=../../bsp/hal_default#always run $BSP_DIR/create-this-bsppushd $BSP_DIR >> /dev/null./create-this-bsp "$@" || {	echo "create-this-bsp failed"	exit 1}popd >> /dev/nullcmd="nios2-app-generate-makefile --bsp-dir $BSP_DIR --src-rdir ./src --elf-name sd_test.elf --set APP_CFLAGS_OPTIMIZATION -O3 --set APP_INCLUDE_DIRS \"src src/alt_touchscreen src/alt_tpo_lcd src/alt_video_display src/fonts src/graphics_lib\""echo "create-this-app: Running \"$cmd\""$cmd || {    echo "nios2-app-generate-makefile failed"    exit 1}cmd="make"echo "create-this-app: Running \"$cmd\""$cmd || {    echo "make failed"    exit 1}echoecho "To download and run the application:"echo "    1. Make sure the board is connected to the system."echo "    2. Run 'nios2-configure-sof -C ../../..' to configure the FPGA with the hardware design."echo "    3. If you have a stdio device, run 'nios2-terminal' in a different shell."echo "    4. Run 'make download-elf' from the application directory."echoecho "To debug the application:"echo "    Import the project into Nios II IDE.  Refer to Nios II IDE Documentation for more information."echoexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -