由于自己新建工程的配置问题,自己的工程能直接debug但是放在sd卡1跑不起来。于是我直接拉出starterware的gpio工程,直接用他原来的配置,把源文件等放到自己的工程中。还有以下配置,属于自己的工程就出来了。
保存为AM335x_V1.0。
"${PROJECT_LOC}/../Lib/include"
"${PROJECT_LOC}/../Lib/include/
ARMv7a"
"${PROJECT_LOC}/../Lib/include/armv7a/am335x"
"${PROJECT_LOC}/../Lib/include/hw"
"${PROJECT_LOC}/../BSP/inc"
"${PROJECT_LOC}/../Lib/u***lib/include"
//Predefined Symbols 添加
am335x
am335x_15x15
DMA_MODE
//Build->steps->post build 修改对比
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/${ConfigName}/${ProjName}.out" "../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/${ConfigName}/${ProjName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" & "../../../../../../../tools/ti_image/tiimage.exe" "0x80000000" "NONE" "../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/${ConfigName}/${ProjName}.bin" "../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/${ConfigName}/${ProjName}_ti.bin"
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${PROJECT_LOC}/${ConfigName}/${ProjName}.out" "${PROJECT_LOC}/${ConfigName}/${ProjName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" & "${PROJECT_LOC}/../tools/ti_image/tiimage.exe" "0x80000000" "NONE" "${PROJECT_LOC}/${ConfigName}/${ProjName}.bin" "${PROJECT_LOC}/${ConfigName}/${ProjName}_ti.bin"
//Basic Option 修改
"../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/${ConfigName}/${ProjName}.out"
"${PROJECT_LOC}/${ConfigName}/${ProjName}.out"
//去掉--stack和--heap的值
//Linker Output 修改
"../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/${ConfigName}/${ProjName}_linkInfo.xml"
"${PROJECT_LOC}/${ConfigName}/${ProjName}_linkInfo.xml"
//ARM Compiler添加
--unaligned_access=on --enum_type=packed --neon
//新建自己的工程补充:
ARM Linker
-m"${ProjName}.map" -i"${CG_TOOL_ROOT}/lib" -i"${CG_TOOL_ROOT}/include" --reread_libs --warn_sections --xml_link_info="${PROJECT_LOC}/${ConfigName}/${ProjName}_linkInfo.xml" --ram_model
//Build -> Builder
去掉User default build command的勾
|