Other Parts Discussed in Thread: C2000WARE, TMDSCNCD28388D
What is being done:
Port 28377D SPI SD routines to 28388D for use.
Encountered the following four types of errors:
How to solve these problems?
thank!
vince
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
What is being done:
Port 28377D SPI SD routines to 28388D for use.
Encountered the following four types of errors:
How to solve these problems?
thank!
vince
Vince,
Can you provide more details on the error? What are test are you trying to migrate from 28377D to 28388D? How did you migrate the project? Which C2000Ware versions were used on the 28377D project and on the 28388D? Is the project from the C2000Ware examples?
Joseph
Thank you very much for your reply.
The details are as follows:
您能否提供有关错误的更多详细信息?
**** Build of configuration Debug for project RHB_SD_PRO **** "D:\\CCS10installation\\ccs\\utils\\bin\\gmake" -k -j 12 all -O Building file: "../main.c" Invoking: ARM Compiler "D:/CCS10installation/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me --include_path="F:/CCS10workplace/RHB_SD_PRO" --include_path="F:/CCS10workplace/RHB_SD_PRO/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2838x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2838x/driverlib/inc" --include_path="F:/CCS10workplace/RHB_SD_PRO/device" --include_path="D:/CCS10installation/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/utilities/third_party/f2838x/fatfs/src" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c" >> Compilation failure subdir_rules.mk:9: recipe for target 'main.obj' failed "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\inc/hw_types.h", line 51: error #258: invalid redeclaration of type name "uint8_t" (declared at line 59 of "D:/CCS10installation/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include/sys/_stdint.h") "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\inc/hw_types.h", line 52: error #258: invalid redeclaration of type name "int8_t" (declared at line 37 of "D:/CCS10installation/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include/sys/_stdint.h") "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\inc/hw_types.h", line 136: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\inc/hw_types.h", line 137: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\cpu.h", line 63: warning #262-D: explicit type is missing ("int" assumed) "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\cpu.h", line 63: error #66: expected a ";" "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\cpu.h", line 70: warning #262-D: explicit type is missing ("int" assumed) "C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\driverlib\cpu.h", line 70: error #66: expected a ";" "C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2838x/driverlib/erad.h", line 576: warning #190-D: enumerated type mixed with another type "C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/headers/include/f2838x_device.h", line 305: warning #1173-D: unknown attribute "byte_peripheral" "C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/headers/include/f2838x_device.h", line 306: warning #1173-D: unknown attribute "byte_peripheral" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 184: error #111: expected either a definition or a tag name "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1126: error #111: expected either a definition or a tag name "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1127: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1127: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1128: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1128: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1130: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1130: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1131: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1131: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1132: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1132: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1133: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1133: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1134: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1134: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1135: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1135: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1136: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1136: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1137: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1137: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1138: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1138: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1140: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1140: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1141: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1141: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1142: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1142: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1144: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1144: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1145: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1145: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1146: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1146: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1147: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1147: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1149: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1149: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1150: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1150: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1151: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1151: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1153: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1153: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1154: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1154: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1155: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1155: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1156: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1156: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1157: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1157: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1158: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1158: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1159: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1159: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1160: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1160: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1161: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1161: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1162: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1162: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1163: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1163: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1164: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1164: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1165: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1165: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1166: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1166: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1167: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1167: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1168: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1168: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1169: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1169: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1170: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1170: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1171: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1171: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1172: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1172: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1173: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1173: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1174: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1174: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1176: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1176: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1177: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1177: error #18: expected a ")" "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1178: error #41: expected an identifier "C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2838x\headers\include\f2838x_mcan.h", line 1178: error #18: expected a ")" Error limit reached. 100 errors detected in the compilation of "../main.c". Compilation terminated. gmake: *** [main.obj] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
您尝试从 28377D 迁移到 28388D 的测试是什么?
The test is the read and write driver routines of the SD card.
The routine is as follows:
你是如何迁移项目的?
I copied the ff.c file under the project to the new project.
Then, copy the main function part of the project to the main function in the new project.
Then, copied the header file of main.c under the project.
Change the header file 28377S to #include "F28x_Project.h".
28377D 项目和 28388D 使用了哪些 C2000Ware 版本?
The 28377D routine refers to two sources.
The first one is C2000 ware
The path is: C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2837xd\examples\cpu1\sd_card
The second is the developed SD read and write routines downloaded from the Internet.The routine is as follows:
lab46_SD_SPI.rar
The 28388D example refers to C2000 WARE.
Routine source:
C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\examples\c28x\spi
On the basis of the 28388D routine, the 28377D SD card routine has been added.
The added routine is as follows:
Looking forward to your reply.
Thank you!
vince
Later, I re-ported a routine (copy 28377D SD program to spi_ex6_eeprom.c).
The routine is as follows:
The error still exists. The error is as follows:
**** Build of configuration CPU1_RAM for project spi_ex6_eeprom **** "D:\\CCS10installation\\ccs\\utils\\bin\\gmake" -k -j 12 all -O Building file: "../spi_ex6_eeprom.c" Invoking: C2000 Compiler "D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/utilities/third_party/f2838x/fatfs/src" --include_path="F:/CCS10workplace/spi_ex6_eeprom/ff" --include_path="F:/CCS10workplace/spi_ex6_eeprom" --include_path="F:/CCS10workplace/spi_ex6_eeprom/device" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2838x/driverlib" --include_path="D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --define=RAM --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="spi_ex6_eeprom.d_raw" --include_path="F:/CCS10workplace/spi_ex6_eeprom/CPU1_RAM/syscfg" "../spi_ex6_eeprom.c" "../spi_ex6_eeprom.c", line 97: warning #225-D: function "InitPieVectTable" declared implicitly "../spi_ex6_eeprom.c", line 106: warning #169-D: argument of type "uint8_t *" is incompatible with parameter of type "WORD *" "../spi_ex6_eeprom.c", line 57: warning #179-D: variable "error" was declared but never referenced "../spi_ex6_eeprom.c", line 58: warning #179-D: variable "i" was declared but never referenced Finished building: "../spi_ex6_eeprom.c" Building target: "spi_ex6_eeprom.out" Invoking: C2000 Linker "D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --define=RAM --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"spi_ex6_eeprom.map" --heap_size=0x200 --stack_size=0x3F8 --warn_sections -i"D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/lib" -i"D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="spi_ex6_eeprom_linkInfo.xml" --entry_point=code_start --rom_model -o "spi_ex6_eeprom.out" "./f2838x_pievect.obj" "./spi_ex6_eeprom.obj" "./device/device.obj" "./device/f2838x_codestartbranch.obj" "./ff/ff.obj" "../2838x_RAM_lnk_cpu1.cmd" "C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2838x/driverlib/ccs/Debug/driverlib.lib" -llibc.a <Linking> undefined first referenced symbol in file --------- ---------------- ADCA1_ISR ./f2838x_pievect.obj ADCA2_ISR ./f2838x_pievect.obj ADCA3_ISR ./f2838x_pievect.obj ADCA4_ISR ./f2838x_pievect.obj ADCA_EVT_ISR ./f2838x_pievect.obj ADCB1_ISR ./f2838x_pievect.obj ADCB2_ISR ./f2838x_pievect.obj ADCB3_ISR ./f2838x_pievect.obj ADCB4_ISR ./f2838x_pievect.obj ADCB_EVT_ISR ./f2838x_pievect.obj ADCC1_ISR ./f2838x_pievect.obj ADCC2_ISR ./f2838x_pievect.obj ADCC3_ISR ./f2838x_pievect.obj ADCC4_ISR ./f2838x_pievect.obj ADCC_EVT_ISR ./f2838x_pievect.obj ADCD1_ISR ./f2838x_pievect.obj ADCD2_ISR ./f2838x_pievect.obj ADCD3_ISR ./f2838x_pievect.obj ADCD4_ISR ./f2838x_pievect.obj ADCD_EVT_ISR ./f2838x_pievect.obj CANA0_ISR ./f2838x_pievect.obj CANA1_ISR ./f2838x_pievect.obj CANB0_ISR ./f2838x_pievect.obj CANB1_ISR ./f2838x_pievect.obj CIPC0_ISR ./f2838x_pievect.obj CIPC1_ISR ./f2838x_pievect.obj CIPC2_ISR ./f2838x_pievect.obj CIPC3_ISR ./f2838x_pievect.obj CLA1CRC_ISR ./f2838x_pievect.obj CLA1_1_ISR ./f2838x_pievect.obj CLA1_2_ISR ./f2838x_pievect.obj CLA1_3_ISR ./f2838x_pievect.obj CLA1_4_ISR ./f2838x_pievect.obj CLA1_5_ISR ./f2838x_pievect.obj CLA1_6_ISR ./f2838x_pievect.obj CLA1_7_ISR ./f2838x_pievect.obj CLA1_8_ISR ./f2838x_pievect.obj CLA_OVERFLOW_ISR ./f2838x_pievect.obj CLA_UNDERFLOW_ISR ./f2838x_pievect.obj CLB1_ISR ./f2838x_pievect.obj CLB2_ISR ./f2838x_pievect.obj CLB3_ISR ./f2838x_pievect.obj CLB4_ISR ./f2838x_pievect.obj CLB5_ISR ./f2838x_pievect.obj CLB6_ISR ./f2838x_pievect.obj CLB7_ISR ./f2838x_pievect.obj CLB8_ISR ./f2838x_pievect.obj CMTOCPUXIPC0_ISR ./f2838x_pievect.obj CMTOCPUXIPC1_ISR ./f2838x_pievect.obj CMTOCPUXIPC2_ISR ./f2838x_pievect.obj CMTOCPUXIPC3_ISR ./f2838x_pievect.obj CMTOCPUXIPC4_ISR ./f2838x_pievect.obj CMTOCPUXIPC5_ISR ./f2838x_pievect.obj CMTOCPUXIPC6_ISR ./f2838x_pievect.obj CMTOCPUXIPC7_ISR ./f2838x_pievect.obj CM_STATUS_ISR ./f2838x_pievect.obj CPUCRC_ISR ./f2838x_pievect.obj DATALOG_ISR ./f2838x_pievect.obj DMA_CH1_ISR ./f2838x_pievect.obj DMA_CH2_ISR ./f2838x_pievect.obj DMA_CH3_ISR ./f2838x_pievect.obj DMA_CH4_ISR ./f2838x_pievect.obj DMA_CH5_ISR ./f2838x_pievect.obj DMA_CH6_ISR ./f2838x_pievect.obj ECAP1_ISR ./f2838x_pievect.obj ECAP2_ISR ./f2838x_pievect.obj ECAP3_ISR ./f2838x_pievect.obj ECAP4_ISR ./f2838x_pievect.obj ECAP5_ISR ./f2838x_pievect.obj ECAP6_2_ISR ./f2838x_pievect.obj ECAP6_ISR ./f2838x_pievect.obj ECAP7_2_ISR ./f2838x_pievect.obj ECAP7_ISR ./f2838x_pievect.obj ECATRST_ISR ./f2838x_pievect.obj ECATSYNC0_ISR ./f2838x_pievect.obj ECATSYNC1_ISR ./f2838x_pievect.obj ECAT_ISR ./f2838x_pievect.obj EMU_ISR ./f2838x_pievect.obj EPWM10_ISR ./f2838x_pievect.obj EPWM10_TZ_ISR ./f2838x_pievect.obj EPWM11_ISR ./f2838x_pievect.obj EPWM11_TZ_ISR ./f2838x_pievect.obj EPWM12_ISR ./f2838x_pievect.obj EPWM12_TZ_ISR ./f2838x_pievect.obj EPWM13_ISR ./f2838x_pievect.obj EPWM13_TZ_ISR ./f2838x_pievect.obj EPWM14_ISR ./f2838x_pievect.obj EPWM14_TZ_ISR ./f2838x_pievect.obj EPWM15_ISR ./f2838x_pievect.obj EPWM15_TZ_ISR ./f2838x_pievect.obj EPWM16_ISR ./f2838x_pievect.obj EPWM16_TZ_ISR ./f2838x_pievect.obj EPWM1_ISR ./f2838x_pievect.obj EPWM1_TZ_ISR ./f2838x_pievect.obj EPWM2_ISR ./f2838x_pievect.obj EPWM2_TZ_ISR ./f2838x_pievect.obj EPWM3_ISR ./f2838x_pievect.obj EPWM3_TZ_ISR ./f2838x_pievect.obj EPWM4_ISR ./f2838x_pievect.obj EPWM4_TZ_ISR ./f2838x_pievect.obj EPWM5_ISR ./f2838x_pievect.obj EPWM5_TZ_ISR ./f2838x_pievect.obj EPWM6_ISR ./f2838x_pievect.obj EPWM6_TZ_ISR ./f2838x_pievect.obj EPWM7_ISR ./f2838x_pievect.obj EPWM7_TZ_ISR ./f2838x_pievect.obj EPWM8_ISR ./f2838x_pievect.obj EPWM8_TZ_ISR ./f2838x_pievect.obj EPWM9_ISR ./f2838x_pievect.obj EPWM9_TZ_ISR ./f2838x_pievect.obj EQEP1_ISR ./f2838x_pievect.obj EQEP2_ISR ./f2838x_pievect.obj EQEP3_ISR ./f2838x_pievect.obj FMC_ISR ./f2838x_pievect.obj FPU_OFLOW_ISR ./f2838x_pievect.obj FPU_UFLOW_ISR ./f2838x_pievect.obj FSIRXA1_ISR ./f2838x_pievect.obj FSIRXA2_ISR ./f2838x_pievect.obj FSIRXB1_ISR ./f2838x_pievect.obj FSIRXB2_ISR ./f2838x_pievect.obj FSIRXC1_ISR ./f2838x_pievect.obj FSIRXC2_ISR ./f2838x_pievect.obj FSIRXD1_ISR ./f2838x_pievect.obj FSIRXD2_ISR ./f2838x_pievect.obj FSIRXE1_ISR ./f2838x_pievect.obj FSIRXE2_ISR ./f2838x_pievect.obj FSIRXF1_ISR ./f2838x_pievect.obj FSIRXF2_ISR ./f2838x_pievect.obj FSIRXG1_ISR ./f2838x_pievect.obj FSIRXG2_ISR ./f2838x_pievect.obj FSIRXH1_ISR ./f2838x_pievect.obj FSIRXH2_ISR ./f2838x_pievect.obj FSITXA1_ISR ./f2838x_pievect.obj FSITXA2_ISR ./f2838x_pievect.obj FSITXB1_ISR ./f2838x_pievect.obj FSITXB2_ISR ./f2838x_pievect.obj I2CA_FIFO_ISR ./f2838x_pievect.obj I2CA_HIGH_ISR ./f2838x_pievect.obj I2CA_ISR ./f2838x_pievect.obj I2CB_FIFO_ISR ./f2838x_pievect.obj I2CB_ISR ./f2838x_pievect.obj ILLEGAL_ISR ./f2838x_pievect.obj MCANSS0_ISR ./f2838x_pievect.obj MCANSS1_ISR ./f2838x_pievect.obj MCANSS_ECC_CORR_PLS_ISR ./f2838x_pievect.obj MCANSS_WAKE_AND_TS_PLS_ISR ./f2838x_pievect.obj MCBSPA_RX_ISR ./f2838x_pievect.obj MCBSPA_TX_ISR ./f2838x_pievect.obj MCBSPB_RX_ISR ./f2838x_pievect.obj MCBSPB_TX_ISR ./f2838x_pievect.obj MPOST_ISR ./f2838x_pievect.obj NMI_ISR ./f2838x_pievect.obj PIE_RESERVED_ISR ./f2838x_pievect.obj PMBUSA_ISR ./f2838x_pievect.obj PieCtrlRegs ./f2838x_pievect.obj PieVectTable ./f2838x_pievect.obj RTOS_ISR ./f2838x_pievect.obj SCIA_RX_ISR ./f2838x_pievect.obj SCIA_TX_ISR ./f2838x_pievect.obj SCIB_RX_ISR ./f2838x_pievect.obj SCIB_TX_ISR ./f2838x_pievect.obj SCIC_RX_ISR ./f2838x_pievect.obj SCIC_TX_ISR ./f2838x_pievect.obj SCID_RX_ISR ./f2838x_pievect.obj SCID_TX_ISR ./f2838x_pievect.obj SDFM1DR1_ISR ./f2838x_pievect.obj SDFM1DR2_ISR ./f2838x_pievect.obj SDFM1DR3_ISR ./f2838x_pievect.obj SDFM1DR4_ISR ./f2838x_pievect.obj SDFM1_ISR ./f2838x_pievect.obj SDFM2DR1_ISR ./f2838x_pievect.obj SDFM2DR2_ISR ./f2838x_pievect.obj SDFM2DR3_ISR ./f2838x_pievect.obj SDFM2DR4_ISR ./f2838x_pievect.obj SDFM2_ISR ./f2838x_pievect.obj SPIA_RX_ISR ./f2838x_pievect.obj SPIA_TX_ISR ./f2838x_pievect.obj SPIB_RX_ISR ./f2838x_pievect.obj SPIB_TX_ISR ./f2838x_pievect.obj SPIC_RX_ISR ./f2838x_pievect.obj SPIC_TX_ISR ./f2838x_pievect.obj SPID_RX_ISR ./f2838x_pievect.obj SPID_TX_ISR ./f2838x_pievect.obj SYS_ERR_ISR ./f2838x_pievect.obj TIMER0_ISR ./f2838x_pievect.obj TIMER1_ISR ./f2838x_pievect.obj TIMER2_ISR ./f2838x_pievect.obj USBA_ISR ./f2838x_pievect.obj USER10_ISR ./f2838x_pievect.obj USER11_ISR ./f2838x_pievect.obj USER12_ISR ./f2838x_pievect.obj USER1_ISR ./f2838x_pievect.obj USER2_ISR ./f2838x_pievect.obj USER3_ISR ./f2838x_pievect.obj USER4_ISR ./f2838x_pievect.obj USER5_ISR ./f2838x_pievect.obj USER6_ISR ./f2838x_pievect.obj USER7_ISR ./f2838x_pievect.obj USER8_ISR ./f2838x_pievect.obj USER9_ISR ./f2838x_pievect.obj WAKE_ISR ./f2838x_pievect.obj XINT1_ISR ./f2838x_pievect.obj XINT2_ISR ./f2838x_pievect.obj XINT3_ISR ./f2838x_pievect.obj XINT4_ISR ./f2838x_pievect.obj XINT5_ISR ./f2838x_pievect.obj disk_initialize ./ff/ff.obj disk_ioctl ./ff/ff.obj disk_read ./ff/ff.obj disk_status ./ff/ff.obj disk_write ./ff/ff.obj get_fattime ./ff/ff.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "spi_ex6_eeprom.out" not built gmake[1]: *** [spi_ex6_eeprom.out] Error 1 >> Compilation failure makefile:150: recipe for target 'spi_ex6_eeprom.out' failed gmake: *** [all] Error 2 makefile:146: recipe for target 'all' failed **** Build Finished ****
In summary, there are two types of errors:
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking;
Looking forward to your reply!
vince
Hi Vince,
This is a known issue when you combine bitfield and driverlib headers in the same CCS project. The names used for MCAN bitfield structs and the driverlib macros are the same, this is leading to these compile errors.
If you are not using both bitfield header and driverlib headers, I recommend you remove one of the headers from the #includes.
Or, include bitifled headers before driverlib headers ->
#include "f28x_project.h"
#include "driverlib.h"
There is a ticket raised to rename the bitfield structs, so that there is no conflict.
Regards,
Veena
I found out that before I was transplanting, in order to use InitPieVectTable();
Added the f2838x_pievect.c file to the project.
Then it caused a series of problems, and later discovered that if you really use InitPieVectTable();, you don't need to add the f2838x_pievect.c file. Then, I delete the f2838x_pievect.c file on my side.
The works are as follows:
There are some new problems, I'm here to ask, thank you.
Looking forward to your reply
Thank you
The errors in the picture, disk_initialize and a series of problems are not defined.
Then, find the stdio_sd.h file, copy this file to the spi_ex6_eeprom project, and compile it.
In this way, a series of problems such as disk_initialize, which were not defined, were solved. But there is a new error issue.
as follows:
#102 "Uint8" has already been declared in the current scope.
#20 identifier "__IO" is undefined
#66 expected a ";"
How to deal with these situations?
The details of the error are as follows:
**** Build of configuration CPU1_RAM for project spi_ex6_eeprom **** "D:\\CCS10installation\\ccs\\utils\\bin\\gmake" -k -j 12 all -O Building file: "../diskio.c" Invoking: C2000 Compiler "D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="F:/CCS10workplace/spi_ex6_eeprom" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/common/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/device_support/f2838x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/utilities/third_party/f2838x/fatfs/src" --include_path="F:/CCS10workplace/spi_ex6_eeprom/ff" --include_path="F:/CCS10workplace/spi_ex6_eeprom" --include_path="F:/CCS10workplace/spi_ex6_eeprom/device" --include_path="C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2838x/driverlib" --include_path="D:/CCS10installation/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include" --define=RAM --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="diskio.d_raw" --include_path="F:/CCS10workplace/spi_ex6_eeprom/CPU1_RAM/syscfg" "../diskio.c" >> Compilation failure subdir_rules.mk:9: recipe for target 'diskio.obj' failed "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 124: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 124: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 125: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 125: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 125: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 126: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 126: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 126: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 127: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 127: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 127: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 128: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 128: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 128: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 129: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 129: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 129: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 130: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 130: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 131: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 131: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 131: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 132: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 132: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 132: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 133: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 133: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 133: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 134: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 134: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 134: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 135: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 135: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 135: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 136: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 136: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 136: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 137: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 137: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 138: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 138: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 138: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 139: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 139: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 139: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 140: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 140: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 140: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 141: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 141: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 141: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 142: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 142: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 142: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 143: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 143: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 143: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 144: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 144: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 144: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 145: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 145: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 145: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 146: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 146: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 146: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 147: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 147: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 147: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 148: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 148: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 148: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 149: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 149: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 149: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 150: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 150: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 150: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 151: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 151: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 151: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 152: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 152: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 152: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 153: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 153: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 153: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 154: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 154: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 154: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 155: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 155: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 155: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 156: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 156: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 156: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 157: error #20: identifier "__IO" is undefined "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 157: error #102: "Uint8" has already been declared in the current scope "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 157: error #66: expected a ";" "F:/CCS10workplace/spi_ex6_eeprom/device/sdio_sd.h", line 158: error #20: identifier "__IO" is undefined Error limit reached. 100 errors detected in the compilation of "../diskio.c". Compilation terminated. gmake: *** [diskio.obj] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
After trying to modify and find a lot of information, the above problem still exists.
Looking forward to your reply
Thank you
vince
Hi Vince,
If you are combining bitfield and driverlib code, please add "_DUAL_HEADERS" as a predefined symbol in the CCS project.
Are you using both driverlib and bitifeld code in your project? If not, I would highly recommend not to mix these headers,
InitPieVectTable function is defined pievect.c file. If you want to use this function, you need to include this file.
Regards,
Veena
Hello, regarding bitifeld code, I am not sure if it is used in the project.
What is bitifeld code?
What is certain is that #include "driverlib.h" is used.
Looking forward to your reply.
thanks
vince
Hi Vince,
The bitfield files includes the files under device_support/headers and <device>_<peripheral>.c files in device_support/common.
These accesses the peripheral registers using bitfield structs.
Regards,
Veena
Hi,Veena Kamath
I am transplanting the SD card reading and writing code of 28377D found on the Internet to the spi_ex6_eeprom project.
The transplanted code is as follows: (Although there are only a few warnings left, the while loop in spi_xmit_byte() in SD_spi_Transmission.c is stuck in the process of running)
Moreover, my transplantation is currently just copying the missing .c and .h files to the project.
The configuration of some registers and pins has not been modified.
On the one hand, I would like to ask how to deal with these warnings? (I checked the information and said that the storage location of the program is not defined in the CMD file.)
On the other hand, I would also like to ask how to modify the configuration of registers and pins for such transplantation? (The schematic design is as follows:)
The tested platform is the 28388D evaluation board purchased from ti's official website:
TMDSCNCD28388D
The software used is: ccs10.1
I feel that for program transplantation.
My ability is no longer enough to continue the transplantation work.
Looking forward to getting help from the company.
Looking forward to your reply
Thank you
vince
Hi,
If you are using bitfield headers, you need to add the linker command file F2837xD_Headers_BIOS_cpu1.cmd to correctly map the peripheral register structs. This should resolve the warnings.
For using different different GPIO pins, you need to update the code which configures the MUX and GMUX registers for the required pins. The mux value can be found in the datasheet.
Since you are using driverlib as well, you can use the function GPIO_setPinConfig to configure the pins. Please refer to the original driverlib eeprom example on how to configure the SPI pins.
Regards,
Veena
hi
Add the f2838x_headers_BIOS_cpu1.cmd file to the project, and the warning disappears.
Only the following warning remains:
There is a new problem. When the program is running in a single step, it can't get out of the while loop.
In other words, the IDLE response has not been obtained.
What causes this phenomenon?
Looking forward to hearing from you.
thanks
vince
Hi Vince,
Is response variable being updated in an ISR? In that case, make sure the variable is declared volatile.
Regards,
Veena
HI,
The response variable changes as follows:
Change from 0 to 65280
After the change, it has been unable to get out of the while loop.
In that case, make sure the variable is declared volatile.
Now, response is defined as uint16_t in the program.
Now, the response in the program is defined as uint16_t response.
You mean, change to volatile uint16_t response.
Looking forward to your reply!
thanks
vince
HI,Veena Kamath
Currently, the program sends 0xFF00 to the SD card, and the SD card always cannot return 0x00 or 0x01.
Only 0xFF can be returned.
After thinking and searching for information, the following problems were found:
In the above function, the DUMMY_DATA sent is only two bytes.
However, after searching for information, it was found that if you want the SD card to return a one-byte command, you need to send a 6-byte command to the SD card.
Originally DUMMY_DATA was defined as 0xFF00;
My idea is to define DUMMY_DATA as a 6-byte command during the initialization phase of the SD card and send it out. The command definition is as follows:
#define DUMMY_DATA 0x7700000000FF;
Is this kind of thinking effective?
Looking forward to your reply!
Thanks!
vince
HI,
How to send a 6-byte command to the register that controls the SD card?
Looking forward to your reply!
thanks
vince