• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: 要開啟MHC時,若configuration不是default,會出現錯誤而無法動作
#2
管理員
管理員


查看用戶資訊
Configure 有分
1. Project Configuration (在Project Properties中可以設定不同的Configuration)
以及
2. Harmony Configuration

Harmony 3在改用 yml 當成configuration之後,
便無法在MPLAB X IDE中, 切換不同的 Project Configuration, 來自動產生對應的 Harmony configuration.
因此無論 Project Configuration 有幾個,
一律只有切到新建專案的那個Configuration時, 才能進入Harmony設置

如果要做到不同的 Project Configuration 可以對應不同的 Harmony Configuration時,
可以依照以下步驟來達成
相關步驟可以參考以下連結
https://microchip-mplab-harmony.github ... _mhc_important_files.html

1. 先建立專案並命名 Project Configuration 為 "main"
2. 進入 Harmony 並 Gencode
3. 此時會產生以 "main" 為名的 Harmony Configuration folder
"firmware\src\config\main"
4. 關閉 MPLAB X IDE
5. 執行 [HarmonyFramework]\mhc\runmhc.bat
6. 此時會開啟 standalone MHC GUI
7. 點選 File> New Configuration
8. 專案路徑與專案名稱需設為剛剛新建的專案
9. Configuration Name 設為第二組名稱, 如 "second"
10. Path 中的名稱不會跟著改, 維持顯示 default 是正常的
11. 一樣指定 chip part number
12. 按 [Finish] 即可產生新的 Harmony Configuration "second"
13. 執行一次 Gencode
14. 即可產生以 "second" 命名的 Harmony Configuration Folder
"firmware\src\config\second"
15. 離開 standalone MHC
16. 回到 MPLAB X IDE 打開專案
17. 新增一組 "second" 的 Project Configuration
18. 之後切換 Project configuration 即可切換對應名稱的 Harmony Configuration

發表於: 2021/10/29 17:42

Edited by Libra on 2021年10月29日 18:26:12
Edited by Libra on 2021年11月01日 08:05:13
Edited by Libra on 2021年11月01日 08:05:39
Edited by Libra on 2021年11月01日 08:07:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


要開啟MHC時,若configuration不是default,會出現錯誤而無法動作
#1
資深會員
資深會員


查看用戶資訊
MPLAB X 5.45
MHC 3.8.2

我在Project中,依建議增加了offset、combine兩種config,來對應有無bootloader的情況,
但想要開啟MHC時,必須先把config設回default,否則會出現錯誤視窗,如附檔

請問這是原本就有的限制嗎?
還有雖然我標了MPLAB X與MHC的版本,但我印象這個問題滿久了,用較舊的版本時就有遇到過

Attach file:



jpg  MHC開啟異常.jpg (31.14 KB)
4537_617b9caf649f2.jpg 988X145 px

發表於: 2021/10/29 15:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------