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.
Hello,
I have been working with the instaspin_foc examples within motorware. I have modified proj_lab01 to demonstrate that I can integrate some I2C peripheral communications and I can successfully compile+run my program on my TMS320F28069 from RAM. I now want to install this to Flash on my TMS320F28069 so the program runs on powerup.
I have modified the compiler configuration to include the "--define=FLASH" as in all the other instaspin_foc examples. Unfortunately, I am getting the following error:
<Linking> warning: illegal COFF version specified; version 2 assumed warning #10247-D: creating output section ".cio" without a SECTIONS specification warning #10210-D: creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size undefined first referenced symbol in file --------- ---------------- _memCopy ./proj_lab01_I2C.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "proj_lab01_withI2C.out" not built >> Compilation failure makefile:169: recipe for target 'proj_lab01_withI2C.out' failed gmake: *** [proj_lab01_withI2C.out] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
I have spent some time researching this, but I have not been able to make progress. Any help here is greatly appreciated! Please let me know if additional info is needed.
Thanks,
--J
J,
I'd look to make sure the memCopy.c file is included in your project(this will also pull in memCopy.h). When we switch over the flash compiles there are still some sections that have to be ran from RAM, memCopy is what we use to copy from Flash to RAM before execution.
Here is the path I have on my PC: C:\ti\motorware\motorware_1_01_00_18\sw\modules\memCopy\src\memCopy.c
Best,
Matthew
Thanks for the response, however, I tried the following and I am getting the exact same error
1) In the properties for C2000 Compiler, I added --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/memCopy/src" to the include options
2) In the properties for C2000 Linker, I added -i"C:/ti/motorware/motorware_1_01_00_18/sw/modules/memCopy/src" to the library search path
3) I copied memCopy.c and memCopy.h from the folder listed above directly into my project folder
I attempted to recompile after each of the steps above and I am getting the same error. How can I further debug this?
Thanks,
John Easum
Actually, I noticed in my 3) attempt from above the file "memCopy.c" was "excluded from build" for some reason. After including this in the build I was able to successfully compile with Flash. Not sure what exactly happened but I am up and running.
Thanks!