2017-11-09 7 views
0

私の同僚とAtmelStudio v7.0.1645を使用してAtmel SAM V71 Xplained Ultra(ATSAMV71Q21)のソフトウェアを開発しています。私たちはコードのための共有リポジトリを持っています。Atmel Studio:プロジェクトデバイスのシリアル番号に問題がないようにする

私たちはこれらのボードをいくつか持っています。その結果、ボードをプログラミングする際に問題が発生します。

.cprojファイルのバージョン管理下には、特定のボードのシリアル番号がToolNumberフィールドに配置されています。現在

<Project DefaultTargets="Build" 
    xmlns="http://schemas.microsoft.com/developer/msbuild/2003" 
    ToolsVersion="14.0"> 
    <PropertyGroup> 
    ... 
    <avrtool>com.atmel.avrdbg.tool.edbg</avrtool> 
    <avrtoolserialnumber>ATML2000...</avrtoolserialnumber> 
    <avrtoolinterface>SWD</avrtoolinterface> 
    <com_atmel_avrdbg_tool_edbg> 
     <ToolOptions> 
     <InterfaceProperties> 
      <SwdClock>2000000</SwdClock> 
     </InterfaceProperties> 
     <InterfaceName>SWD</InterfaceName> 
     </ToolOptions> 
     <ToolType>com.atmel.avrdbg.tool.edbg</ToolType> 
     <ToolNumber>ATML2000...</ToolNumber> 
     <ToolName>EDBG</ToolName> 
    </com_atmel_avrdbg_tool_edbg> 
    <avrtoolinterfaceclock>2000000</avrtoolinterfaceclock> 
    </PropertyGroup> 
</Project> 

フィールドの値が間違っているならば、ボードはエラーで失敗プログラム:[ERROR] The tool specified has been disconnected. Please reconnect the tool or choose another one

シリアル番号はユーザー固有であるべきであり、ソースコントロールに含まれるべきではありません。アトメルスタジオはどのようにしてそのように働くことができますか?

答えて

0

だけでなく自分の質問に答えることがあります...

私は解決策がコミットユーザー固有の要素を取り除くために、いくつかのスクリプト、Pythonとバッシュを使って書かれを使用していたことを決めました。彼らはコミット後にも復元されます。

コードはGitHubにあります。https://github.com/GRArmstrong/atmel-studio-git-hooks

関連する問題