天天看點

華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決

華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決
華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決

在使用MDK進行開發的時候程式編譯沒有問題,點選下載下傳或仿真的時候跳出個對話框提示Flash Timeout.Reset the Target and try it again,如下圖所示:

華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決

這個問題是由于在MDK的FLASH檔案設定的MCU FLASH型号與使用的不相同所導緻的,隻要把正确的MCU的FLASH描述檔案路徑加載給MDK即可解決問題。現在以HC32L136K8TA晶片為例來說明如何解決。

  1. 在HC32L136的工具包中找到FlashHC32L13X.FLM檔案,将其複制到keil_v5\ARM\Flash檔案夾下;
  2. 在MDK工程中點選魔法棒->Utilities->Settings打開Flash Download設定;
    華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決
  3. 在Programming Algorithm中把其中的Flash檔案選中,點選Remove把其移除,點選Add打開Flash選擇對話框;
    華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決
  4. 在Flash選擇框中選中FlashHC32L13X Flash項,點選Add,之後一路點OK到MDK主界面。
    華大單片機HC32L136下載下傳仿真時Flash Timeout.Reset the Target and try it again錯誤解決

經過以上的步驟就可以成功下載下傳或仿真。華大單片機其它型号的設定方法與之相同。

☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆

本文旨在抛磚引玉,其餘具體使用歡迎加群164973950交流。

 國産低功耗華大單片機主力型号如下:

HC32F003 HC32F005 HC32L110 HC32F030 HC32L136 HC32M140 HC32F146 HC32L150 HC32L156

晶片相關資料下載下傳連結:https://blog.csdn.net/lvk/article/details/85260690

☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆

繼續閱讀