フィルターのクリア

Custom Toolchain: need to add a post-build step

2 ビュー (過去 30 日間)
Sean
Sean 2015 年 5 月 25 日
編集済み: Matthias Weber 2016 年 6 月 22 日
I am creating a custom toolchain and after compiling and linking the application, I need to run another tool that converts the .elf output to .hex. I've tried adding this tool as an Archiver, Download or Execute tool, but I will always fail validation of the tool and the tool is never run.
This is the error I get when I run validation:
Skipped the existence check for 'Elf to Hex Converter'. Cannot determine the utility that needs to be checked for existence from the
build tool command 'java $(ELF_CONVERT)'.
My tool configuration is:
tc.addMacro('JAVA_PATH', 'C:\ARMTools\ide\jre\bin');
tc.addMacro('ELF_CONVERT', '-jar C:\ARMTools\Tools\arm-atollic-reports.jar convert hex sizeinfo list $(PRODUCT)');
tool = tc.getPostbuildTool('Execute');
tool.setName( 'Elf to Hex Converter');
tool.setPath( '$(JAVA_PATH)');
tool.setCommand( 'java $(ELF_CONVERT)');
tool.setCommandPattern('|>TOOL<||>TOOL_OPTIONS<|');
What am I missing?
  2 件のコメント
Sean
Sean 2015 年 6 月 7 日
bump
Matthias Weber
Matthias Weber 2016 年 6 月 22 日
編集済み: Matthias Weber 2016 年 6 月 22 日
Have you added/set options for your build configurations as well?
i.e. for all
tc.setBuildConfigurationOption('all', 'Execute', 'foobary');
or for a specific one:
cfg = tc.getBuildConfiguration('Faster Runs');
cfg.setOption('Execute', 'foobarz');
No clue if this is necessary, but it's an idea. Maybe those calls are necessary and you can set the options to an empty string (i.e. '').
Cheers

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeBuild Configuration についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by