Here's my required info:
Host OS: Windows 7 Home Premium, Service Pack 1CCS Version: 5.2.1.00018DRV8312EVM 6517813 Rev DCC2803x ISO DIMM REV 1.3Texas Instruments XDS100V1 USB Emulator
InstaSPIN (not GUI) from controlSUITE
I'm having some issues with getting my controller to run from flash. I've modified the project as follows and have verified correct operation in debug mode:
-running in Build Level 8
-stop/start hardware buttons function correctly (GPIO 7 and 9, respectively)
In debug mode, I simply run the program and start/stop using the push buttons. Now I want to run this from flash as a stand-alone. I read the application report SPRA958K (Running an Application from Internal Flash Memory on theTMS320F28xxx DSP), which provided information regarding the modification of the linker command file and existing code. However, I'm still having trouble with a few things. Here's what I've done
1) I copied the linker (F28035_FLASH_BLDC_Int_GUI_DRV83xx.CMD) from the GUI project (GUI_project_InstaSPIN_BLDC) because it has all of the flash and RAM already done. I commented out the two GUI variables since they will not be used and removed the existing linker (F28035_RAM_BLDC_Int.CMD) from the project.
2) I've added FLASH to the predefined symbol list, as it is defined by the compiler. This opens up the flash-related code in the project, which is identical to that in the GUI project as far as I can tell.
My project compiles without errors and appears to erase/program the flash, according to the pop up during the build. It still works when running from the debugger, but it does not work as a stand-alone after cycling the power with the USB cable disconnected. I've noticed a few things related to the build configuration that I'd like clarified.
It appears that the build options for the InstaSPIN GUI project differ from those of the normal InstaSPIN project. Some of the options, such as those on the Diagnostics window on the C2000 Linker section of the project properties (images below), seem to be different for some reason. I tried to make a whole new build configuration, but I haven't had luck with reproducing the options that appear for the GUI project. I have included snapshots of a couple of the screens I'm referencing.
I'm still don't have an answer to my actual question, but at least I can run from flash as a stand-alone now. I didn't have the "DSP2803x_CodeStartBranch.asm" file copied into the project. I still don't have the option of adding the "-w" linker option, which the SPRA958K document says to include as follows:
"It is suggested that the -w linker option be invoked (it is selected by default for all newly createdCCS projects). The -w option will produce a warning if the linker encounters any sections in yourproject that have not been explicitly specified for linking in a linker command file."
Is this only available for certain types of projects?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.