Re: 要開啟MHC時,若configuration不是default,會出現錯誤而無法動作
|
||||
---|---|---|---|---|
管理員
![]() ![]() ![]() |
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 |
|||
|