+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<configurations XML_version="1.2" id="configurations_0">
- <configuration XML_version="1.2" id="configuration_0">
- <instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Emulator" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Emulator" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
- <connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Emulator">
- <instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
- <instance XML_version="1.2" href="drivers/tixds100v2cs_dap.xml" id="drivers" xml="tixds100v2cs_dap.xml" xmlpath="drivers"/>
- <instance XML_version="1.2" href="drivers/tixds100v2cortexR.xml" id="drivers" xml="tixds100v2cortexR.xml" xmlpath="drivers"/>
- <platform XML_version="1.2" id="platform_0">
- <instance XML_version="1.2" desc="RM48L952" href="devices/rm48l952.xml" id="RM48L952" xml="rm48l952.xml" xmlpath="devices"/>
- </platform>
- </connection>
- </configuration>
-</configurations>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<configurations XML_version="1.2" id="configurations_0">
- <configuration XML_version="1.2" id="configuration_0">
- <instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Emulator" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Emulator" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
- <connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Emulator">
- <instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
- <instance XML_version="1.2" href="drivers/tixds100v2cs_dap.xml" id="drivers" xml="tixds100v2cs_dap.xml" xmlpath="drivers"/>
- <instance XML_version="1.2" href="drivers/tixds100v2cortexR.xml" id="drivers" xml="tixds100v2cortexR.xml" xmlpath="drivers"/>
- <platform XML_version="1.2" id="platform_0">
- <instance XML_version="1.2" desc="TMS570LS3137" href="devices/tms570ls3137.xml" id="TMS570LS3137" xml="tms570ls3137.xml" xmlpath="devices"/>
- </platform>
- </connection>
- </configuration>
-</configurations>
-% Copyright (C) 2013-2014 Czech Technical University in Prague
+% Copyright (C) 2013-2015 Czech Technical University in Prague
%
% Authors:
% - Carlos Jenkins <carlos@jenkins.co.cr>
% Readme file in <cssroot>/ccs_base/scripting/examples/loadti/readme.txt
% OpenOCD wiki at https://rtime.felk.cvut.cz/hw/index.php/TMS570LS3137#OpenOCD_setup_and_Flashing
-function rpp_download(modelName, buildDirectory, use_openocd, use_sdram, ccxml_filename)
+function rpp_download(modelName, buildDirectory, use_openocd, use_sdram)
RppLibRoot = getpref('rpp', 'RppLibRoot');
CCSRoot = getpref('rpp', 'CCSRoot');
disp(['### -> Uncheck the option "Download compiled binary to SDRAM" (set use_sdram to false) to download the code to the Flash memory.'])
else
disp(['### Downloading ', modelName, ' to RPP board...']);
+ ccxml_filename = ccxml_read(RppLibRoot);
if isunix
- ccxml_filename = strcat(RppLibRoot, '/../loadti/', strrep(char(ccxml_filename), '"', ''));
% -r, --reset Reset target before run
% -c, --cfg-file=CONFIG_FILE Target setup config file
command = [...
'"', outfile, ...
'" 2> "', downloadLog, '"'];
else
- ccxml_filename = strcat(RppLibRoot, '\..\loadti\', strrep(char(ccxml_filename), '"', ''));
% -r, --reset Reset target before run
% -c, --cfg-file=CONFIG_FILE Target setup config file
command = [...
end
end
+
+function ccxml_path = ccxml_read(RppLibRoot)
+ f = fopen(fullfile(RppLibRoot, 'Makefile.config'), 'r');
+ while ~feof(f),
+ l = fgetl(f);
+ [val, count] = sscanf(l, ' TARGET_CCXML = %s');
+ if count, ccxml=val; end
+ [val, count] = sscanf(l, ' TARGET = %s');
+ if count, target=val; end
+ end
+ ccxml_path = fullfile(RppLibRoot, 'build', target, ccxml);
+ fclose(f);
+end
\ No newline at end of file
-% Copyright (C) 2013-2014 Czech Technical University in Prague
+% Copyright (C) 2013-2015 Czech Technical University in Prague
%
% Authors:
% - Carlos Jenkins <carlos@jenkins.co.cr>
use_openocd = str2double(makertwArgs(i).Value);
elseif strcmp(makertwArgs(i).DisplayLabel, 'RPP_DOWNLOAD_TO_SDRAM')
use_sdram = str2double(makertwArgs(i).Value);
- elseif strcmp(makertwArgs(i).DisplayLabel, 'RPP_CCXML_FILE_NAME')
- ccxml_filename = makertwArgs(i).Value;
end
end
if getenv('RPP_NO_DOWNLOAD')
disp(['RPP_NO_DOWNLOAD defined - skipping downloading to target.'])
else
- rpp_download(modelName, makertwBuildDirectory, use_openocd, use_sdram, ccxml_filename);
+ rpp_download(modelName, makertwBuildDirectory, use_openocd, use_sdram);
end
end