ホーム フォーラム Texas Instruments マイコン MSP430 MSP430Flasherで書き込むと起動しない

このトピックには1件の返信が含まれ、2人の参加者がいます。6 年、 5 ヶ月前クライフ クライフ さんが最後の更新を行いました。

3件の投稿を表示中 - 1 - 3件目 (全3件中)
  • 投稿者
    投稿
  • #1192 返信

    kitade
    参加者

    MSP430Flasherで書き込むと起動しない

    デバイス型番:MSP430G2955

    CodeComposerStudio6でMSP430G2955の開発を行っています。CCS Debugでダウンロードすると正常に書き込まれて、実行しても問題ありません。量産では、毎回CCSを立ち上げる事が出来ないので、MSPFlasher-1_03_17_00で書き込む事を考えています。

    書き込むためにはHEXファイルが必要なので、以下の手順でHEXを作成しました。

    1.対象プロジェクトを右クリックし、「Properties」をクリック

    2.「MSP430 Hex Utility」タブで「Enable MSP430 Hex Utility」にチェック。

    3.Output Format OptionsにてOutput Formatを

    「Output Intel hex format(–intel,-i)」に変更します。

    4.「Apply and Close」でPropertiesを閉じます。

    5.右クリックで対象プロジェクトを「Clean Project」実行し、ビルドします。

    このHEXファイルをMSP430FLasherで書き込むとマイコンが起動しません。

    何か、別の設定があるのでしょうか?

    長くて申し訳ありませんが、以下に書き込み時のログを書きます。

    D:\workspace\CCS\MSP430G\FlashWrite\20180417>MSP430Flasher.exe -w “hexfile.
    hex” -v -g -z [VCC]
    * —–/|——————————————————————– *
    * / |__ *
    * /_ / MSP Flasher v1.3.16 *
    * | / *
    * —–|/——————————————————————– *
    *
    * Evaluating triggers…done
    * Checking for available FET debuggers:
    * Found USB FET @ COM15 <- Selected
    * Initializing interface @ COM15…done
    * Checking firmware compatibility:
    * The firmware of your FET is outdated.
    – Would you like to update it? (Y/N): Y

    *********************************************************
    *
    * Initializing Update Bootloader.
    * Erasing firmware memory section.
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:
    * Programming new firmware:

    * Exit Update Bootlader and reboot firmware.

    *********************************************************
    *
    * Initializing Update Bootloader.
    * Erasing firmware memory section.
    * Erasing firmware memory section.
    * Erasing firmware memory section.
    * Erasing firmware memory section.
    * Erasing firmware memory section.
    * Programming new firmware:
    * |||||||||||||||||||||||||||||||||||| 72%
    * Exit Update Bootlader and reboot firmware.

    * Exit Update Bootlader and reboot firmware.

    * Exit Update Bootlader and reboot firmware.

    * Exit Update Bootlader and reboot firmware.

    * Exit Update Bootlader and reboot firmware.

    * Update was successfully finished.
    *
    *********************************************************
    * FET firmware is up to date.
    * Reading FW version…done
    * Setting VCC to 3000 mV…done
    * Accessing device…done
    * Reading device information…done
    * Loading file into device…done
    * Verifying memory (hexfile.hex)…done
    *
    * —————————————————————————-
    * Arguments : -w hexfile.hex -v -g -z [VCC]
    * —————————————————————————-
    * Driver : loaded
    * Dll Version : 31200004
    * FwVersion : 31100001
    * Interface : TIUSB
    * HwVersion : U 1.40
    * JTAG Mode : AUTO
    * Device : MSP430G2x55
    * EEM : Level 1, ClockCntrl 1
    * Erase Mode : ERASE_ALL
    * Prog.File : hexfile.hex
    * Verified : TRUE
    * BSL Unlock : FALSE
    * InfoA Access: FALSE
    * VCC ON : 3000 mV
    * —————————————————————————-
    * Starting target code execution…done
    * Disconnecting from device…done
    *
    * —————————————————————————-
    * Driver : closed (No error)
    * —————————————————————————-
    */

    D:\workspace\CCS\MSP430G\FlashWrite\20180417>pause
    続行するには何かキーを押してください . . .

     

     

     

    #1195 返信

    kitade
    参加者

    一応、自己解決できましたので書いておきます。

    intel Hexでは書き込めず、TI_txtなら書けました。

    1.対象プロジェクトを右クリックし、「Properties」をクリック
    2.「MSP430 Hex Utility」タブで「Enable MSP430 Hex Utility」にチェック。
    3.Output Format OptionsにてOutput Formatを
    「Output TI-TXT hex format(–ti_txt)」に変更します。
    4.「Apply and Close」でPropertiesを閉じます。
    5.右クリックで対象プロジェクトを「Clean Project」実行し、ビルドします。
    6.hexファイルが生成されますので、拡張子をtxtに変えます。
    7.以下で書き込めました。
    CLS
    MSP430Flasher.exe -w “hexfile.txt” -v -g -z [VCC]
    pause

    #1220 返信
    クライフ
    クライフ
    従業員

    kitade様

    投稿頂きまして、誠にありがとうございます。

    またお客様で解決できたとのことで、安心致しました。

     

    参考までに、最初の投稿のログデータを確認致しましたが、

    次のようなコメントがあることから、デバイスへファイルの書き込みは行われているようです。

    * Reading device information…done
    * Loading file into device…done
    * Verifying memory (hexfile.hex)…done

    Driver : closed (No error)

    ただ、Intel形式でないhexファイル(motorolerなど)では、Flasherが対応していないため、

    書き込みしても正しくプログラムを実行できないことがあります。

    可能性ですが、Flasher実行時に指定したhexファイルがIntel形式でなかったことも考えられます。

     

    MSP430FlasherはTI-TXTファイル形式でも対応しておりますので、txtファイルで書き込み頂いて問題御座いません。

    差し支えなければ、TI-txtファイルで今後も書き込みを頂ければ幸いです。

     

3件の投稿を表示中 - 1 - 3件目 (全3件中)