When using CCS 6.2.0.00050 under Windows, with SYS/BIOS 6.45.1.29, XDCtools 3.32.1.22_core and GNU v4.9.3 compiler I was getting an "org.eclipse.rtsc.xdctools.INVALID_CODEGEN_LOCATION: Invalid codegen location" error on attempting to open a .cfg file for a project using the Cortex-A15 core in a 66AK2H12.
I noticed the error with my own project and a custom platform, but have re-created the problem in new workspace using an unmodified semihost_66AK2H12_CortexA example from SYS/BIOS 6.45.1.29:
Sequence to create was:
1) Create a new workspace and import the semihost_66AK2H12_CortexA example. Set the platform to the TI supplied ti.platform.evmTCI6638K2H. In the project properties Build -> GNU Compiler -> Runtime set the -mfpu option to vfpv4 to work-around the issue in https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/539973
2) Build the project and then restart CCS.
3) Attempt to open the semihost.cfg file and the following error is displayed:
4) In this state closing and then re-opening the semihost.cfg file didn't clear the error.
5) Build the project which succeeds with nothing to do:
**** Build of configuration Debug for project semihost_66AK2H12_CortexA **** "C:\\ti_ccs6_2_0\\ccsv6\\utils\\bin\\gmake" -k all making ../src/sysbios/sysbios.aa15fg ... gmake[1]: Entering directory 'C:/Users/Mr_Halfword/workspace_v6_2_test/semihost_66AK2H12_CortexA/src/sysbios' gmake[1]: Nothing to be done for 'all'. gmake[1]: Leaving directory 'C:/Users/Mr_Halfword/workspace_v6_2_test/semihost_66AK2H12_CortexA/src/sysbios' **** Build Finished ****
6) Close the semihost.cfg file with the error and reopen it. This time the semihost.cfg file loads without error at the SYS/BIOS - Welcome tab.
i.e. what ever causes the initial "org.eclipse.rtsc.xdctools.INVALID_CODEGEN_LOCATION: Invalid codegen location" can be avoided by attempting to compile the project and then (re-)opening the .cfg file.
