會員登陸
帳號:

密碼:

記住我



忘記密碼?

現在註冊!
網站導航
最新下載
訪問統計 (自2012/5/3)


正在流覽:   1 名訪客





請問Curiosity PIC32 MZ EF 開發板和Harmony 2.4.0 設定範例問題
中級會員
註冊日期:
2007/07/02 10:23
來自 桃園市楊梅區
所屬群組:
註冊會員
文章: 65
等級: 6; EXP: 95
HP : 0 / 148
MP : 21 / 4916
離線
楊老師及各位前輩好!

DM320104 Curiosity PIC32 MZ2048 EFM100 開發板

http://www.microchip.com/Developmentt ... ools&utm_campaign=Article


我的使用環境如下:
1. Win10 & Oracle Java 9.0.1 SDK 64bit
2. MPLAB X 4.05
3. XC32 1.44
4. Harmony 2.0.4 & Harmony Configurator 2.0.4
5. MCC 3.45.1


我依照美國官網下載範例, 試以下兩程式,
1. USB MSD Host Demo
http://www.microchip.com/mymicrochip/ ... er.aspx?ddocname=en588539

2. WIFi based LED Control Demo
http://www.microchip.com/mymicrochip/ ... er.aspx?ddocname=en593884


操作問題如下
1, Project Properties 的設定並非 Curiosity PIC32 MZ EF, 改選設定 pic32_mz_ef_curiosity, Refresh debug tool status, 可已找到該板並讀出PKOB. Harmony 2.0.4 也解決設定問題後, 可正常啟動.

2. Project Path 路徑字元長度縮短, 解壓縮 Project 目錄放在 C:\microchip\apps\ 下

C:\microchip\apps\msd_basic\firmware\src\system_config\pic32mz_ef_curiosity\pic32mz_ef_curiosity.mhc



3. 重新 open project後, 有以下等等 Loading Error

Error: Project "msd_basic" refers to file "nvm_disk_images.h" which does not exist in the disk. The project failed to load.
上Error 有四個同樣訊息

Error: Project "msd_basic" refers to file "drv_tmr_variant_mapping.h" which does not exist in the disk. The project failed to load.

Error: Project "msd_basic" refers to file "drv_tmr_local.h" which does not exist in the disk. The project failed to load.

Error: Project "msd_basic" refers to file "drv_tmr.h" which does not exist in the disk. The project failed to load.

Error: Project "msd_basic" refers to file "drv_tmr_mapping.h" which does not exist in the disk. The project failed to load.

Error: Project "msd_basic" refers to file "drv_tmr_compatibility.h" which does not exist in the disk. The project failed to load.

Error: Project "msd_basic" refers to file "drv_usbfs_local.h" which does not exist in the disk. The project failed to load.

Error: Project "msd_basic" refers to file "drv_usbfs_variant_mapping.h" which does not exist in the disk. The project failed to load.
......一長串

================

請問 Properties 的路徑哪裡沒設定正確?



4. 但依照範例 1 文件http://www.microchip.com/mymicrochip/ ... er.aspx?ddocname=en593890

到 Page4 操作 Clean and Build the project後,
CLEAN SUCCESSFUL (total time: 6ms)

但遇到 ERROR '_CNCONB_SIDL_MASK' undeclared 問題?
a. ../src/system_config/pic32mz_ef_curiosity/framework/peripheral/ports/processor/../templates/ports_ChangeNoticeInIdlePerPort_Default.h:64:44: error: '_CNCONB_SIDL_MASK' undeclared (first use in this function)
*(&CNCONBCLR + (channel - 1) * 0x40) = _CNCONB_SIDL_MASK;


"C:\Program Files (x86)\Microchip\xc32\v1.44\bin\xc32-gcc.exe" -c -mprocessor=32MZ2048EFM100 -MMD -MF build/pic32mz_ef_curiosity/production/_ext/1637942171/sys_devcon_cache_pic32mz.o.d -o build/pic32mz_ef_curiosity/production/_ext/1637942171/sys_devcon_cache_pic32mz.o ../src/system_config/pic32mz_ef_curiosity/framework/system/devcon/src/sys_devcon_cache_pic32mz.S -DXPRJ_pic32mz_ef_curiosity=pic32mz_ef_curiosity -legacy-libc -Wa,--defsym=__MPLAB_BUILD=1,-MD=build/pic32mz_ef_curiosity/production/_ext/1637942171/sys_devcon_cache_pic32mz.o.asm.d,--gdwarf-2


"C:\Program Files (x86)\Microchip\xc32\v1.44\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src/pic32mz_ef_curiosity -I../src -I../src/system_config/pic32mz_ef_curiosity -I../../../../../../framework -I../src/system_config/pic32mz_ef_curiosity/framework -I../src/system_config/pic32mz_ef_curiosity/bsp -MMD -MF build/pic32mz_ef_curiosity/production/_ext/1637942171/sys_devcon.o.d -o build/pic32mz_ef_curiosity/production/_ext/1637942171/sys_devcon.o ../src/system_config/pic32mz_ef_curiosity/framework/system/devcon/src/sys_devcon.c -DXPRJ_pic32mz_ef_curiosity=pic32mz_ef_curiosity -legacy-libc
nbproject/Makefile-pic32mz_ef_curiosity.mk:293: recipe for target 'build/pic32mz_ef_curiosity/production/_ext/1637942171/sys_devcon.o' failed


"C:\Program Files (x86)\Microchip\xc32\v1.44\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src/pic32mz_ef_curiosity -I../src -I../src/system_config/pic32mz_ef_curiosity -I../../../../../../framework -I../src/system_config/pic32mz_ef_curiosity/framework -I../src/system_config/pic32mz_ef_curiosity/bsp -MMD -MF build/pic32mz_ef_curiosity/production/_ext/1698122060/drv_tmr.o.d -o build/pic32mz_ef_curiosity/production/_ext/1698122060/drv_tmr.o ../src/system_config/pic32mz_ef_curiosity/framework/driver/tmr/src/dynamic/drv_tmr.c -DXPRJ_pic32mz_ef_curiosity=pic32mz_ef_curiosity -legacy-libc
../src/system_config/pic32mz_ef_curiosity/framework/peripheral/ports/processor/../templates/ports_ChangeNoticeInIdlePerPort_Default.h: In function 'PORTS_ChangeNoticeInIdlePerPortEnable_Default':


In file included from ../src/system_config/pic32mz_ef_curiosity/framework/peripheral/ports/processor/ports_p32mz2048efm100.h:433:0,
from
.
.
.
.
../src/system_config/pic32mz_ef_curiosity/framework/peripheral/ports/processor/../templates/ports_ChangeNoticeInIdlePerPort_Default.h:64:44: error: '_CNCONB_SIDL_MASK' undeclared (first use in this function)
*(&CNCONBCLR + (channel - 1) * 0x40) = _CNCONB_SIDL_MASK;

我試了兩天, 以上和以下全部和 _CNCONB_SIDL_MASK 有關.

請問是 Project Properties 的哪裡還沒設定正確? 所以找不到該宣告變數??

謝謝您們指點!

2017/12/20 12:36
轉換PDF檔 列印


Re: 請問Curiosity PIC32 MZ EF 開發板和Harmony 2.4.0 設定範例問題
中級會員
註冊日期:
2007/07/02 10:23
來自 桃園市楊梅區
所屬群組:
註冊會員
文章: 65
等級: 6; EXP: 95
HP : 0 / 148
MP : 21 / 4916
離線
楊老師好!

終於找到問題出在 p32mz2048efm100.h 少了以下三行.

C:\Program Files (x86)\Microchip\xc32\v1.44\pic32mx\include\proc\p32mz2048efm100.h

我將以下三行加至 Line 48500: 位置, 已經可以正常編譯

#define _CNCONB_SIDL_POSITION 0x0000000D
#define _CNCONB_SIDL_MASK 0x00002000
#define _CNCONB_SIDL_LENGTH 0x00000001

不好意思, 打擾您們了!
謝謝大家關注!

2017/12/21 00:40
轉換PDF檔 列印






無法在此發表文章
可以在此觀看文章
無法回覆文章
無法編輯自己的文章
無法刪除自己的文章
無法發起投票調查
無法在此投票
無法上傳附加檔案
無法不經審核直接發表文章

[進階搜尋]


搜尋
Microchip連結

網頁捷徑
2018 Winter Elite 報名
教育訓練
其它網站連結
電話: 02-25000405
產品技術問題產品技術支援專線:0800-717718 台北02-25088600 新竹03-5778366 Ext. 8600 高雄07-2137830 MicrochipDIRECT 專線: 07-2137830
Powered by XOOPS © 2001-2012 The XOOPS Project