Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
看過 Low Pin Count USB Development Kit User’s Guide 後確定需要 cd 上的include files 資料才能完成
請問 仁杰兄 可以開放下載嗎? 不然有 18F4k150 TH001A/B 電路板的 user 應該很難用下去! 缺資料在 第6.項 ================================ 2.4.2 Procedure 2.4.2.1 BUILDING THE FRAMEWORK 1. Open the MPLAB IDE by selecting Start>Programs>Microchip>MPLAB IDE vx.xx>MPLAB IDE 2. Once in the MPLAB IDE, start the Project Wizard by selecting Project>Project Wizard 3. Select the PIC18F14K50 as the device, select the MPLAB C18 C Compiler as the language toolsuite, and create a new project folder in the following directory: C:\Microchip Solutions\Project Lab 1\Project Lab 1 4. In the Add Existing Files to Your Project window, navigate to C:\LPCUSBDK_Labs\Lab1_files and copy the following files: a) enumeration.c b) usb_descriptors.c c) HardwareProfile.h d) usb_config.h To copy a file, click on the large letter A in front of the file path in the right pane of the window until a large letter C appears. This mode makes a copy of this file into the new project directory leaving the original file intact. (see Figure 2-1) FIGURE 2-1: This next section will add the files that will build the Framework that takes care of the low level USB functions. This does not need to be done for every application. The included example projects could be easily converted to suit the needs of a custom application. However, in the interest of providing an intuitive introduction to the Framework, this lab builds this application from scratch. 5. Next, navigate to C:\Microchip Solutions\Microchip\Include and copy over the following files: a) Compiler.h b) GenericTypeDefs.h Note: These files are the user files that will need to be changed to implement any application. 6. Navigate to C:\Microchip Solutions\Microchip\Include\Usb and copy the following files: a) usb.h b) usb_ch9.h c) usb_common.h d) usb_device.h e) usb_function_hid.h (file defines components specific to the HID class) f) usb_hal.h g) usb_hal_pic18.h (file defines components specific to the PIC18 architecture) 7. Next, navigate to C:\Microchip Solutions\Microchip\Usb and copy the following file: a) usb_device.c 8. Next, navigate to C:\Microchip Solutions\Microchip\Usb\HID Device Driver tocopy the HID specific source file: a) usb_function_hid.c 9. Finally, navigate to C:\MCC18\lkr and copy the 18f14k50.lkr linker file. 10. Click Next>Finish to exit the project wizard. The Project window should now resemble Figure 2-2. FIGURE 2-2: PROJECT WINDOW FOR LAB 1 If the project window isn’t open in the MPLAB IDE workspace, select View> Project. Next the MPLAB IDE will need to be configured for the Framework by directing the C18 compiler to the associated file locations. 11. In the MPLAB IDE, select Project>Build Options…>Project. The Build Options dialog will appear (Figure 2-3). 12. Click on the Directories tab and select Output Directory and click New to add a new path. Click on the button, navigate to C:\LPCUSBDK_Labs\Lab1_files and create a new folder called output. Highlight the folder and click OK. This will now be the folder where the output files are placed. 13. Within the “Show directories for” drop-down menu, select the “Include Search Path” directory. Ensure that the C:\MCC18\h directory path is listed. Select New and navigate to C:\Microchipsolutions\Microchip\Include and click OK to add to the directory. Repeat these steps to add the application folder C:\LPCUSBDK_Labs\Lab1_files. 14. In the “show directories for:” drop-down menu, select Library Search Path. Ensure that the C:\MCC18\lib is listed. Next, select the Linker-Script Path and ensure that the path points to C:\MCC18\lkr directory. FIGURE 2-3: CONFIGURING FOR MICROCHIP USB FIRMWARE FRAMEWORK
發表於: 2009/7/8 18:16
|
|||
|
Re: 請問 FW2.4 是否只有 USB 相關的範例專案
|
||||
---|---|---|---|---|
資深會員
|
建議你可以報名 何仁杰先生主講 usb 的課.
下載中心 RTC 實作及PDF講義 可以下載有關usb 資料 USB101 Workshop 的 CDC , HID & Custom Class Firmware 以及 PC 端的範例程式 USB101 Workshop 的上課教材 - 黑白版本投影片
發表於: 2009/7/7 23:50
|
|||
|
Re: [兩個 256 bytes 的 "Rom" array 取值錯誤]
|
||||
---|---|---|---|---|
資深會員
|
我用 hitech C pro (Lite )v9.65 PIC 690 測試
總共使用 3個 const char 陣列 只要是 總數 >= 400 就死當. =================================== C18 還沒試過, 你可以把data變少再讀看看.
發表於: 2009/7/7 10:17
|
|||
|
Re: ICD2 一直出現ICD0031/0275 是不是壞了!
|
||||
---|---|---|---|---|
資深會員
|
也許是 16F690 相關的 files 壞了 只要是用 icd2 + 16f690 就掛了.
我用 app013 18f4550 , app001 18f4520 又都正常 可能會要把 mplab 8.3 重灌
發表於: 2009/7/5 11:11
|
|||
|
Re: PICkit2 compile 時發生問題
|
||||
---|---|---|---|---|
資深會員
|
pickit 2 原本能支援的 chips 及 function 就少, 雖然號稱有增加很多, 但是可能 firmware debug 不完整 就放出來了!
我用pickit2 + 16f914 就有類似問題. 最進買了 pickit 3 不知道是否一樣有問題?
發表於: 2009/7/5 11:01
|
|||
|
TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
最近買了 TH001A usb kit 及 pickit 3
下載美國原廠 Low Pin-Count USB Development Kit Project Labs LPCUSBDK_labs_V3.zip 建立 lab4_V3.mcp 找不到一些 include files zip 裡都沒附上, USB001_Workshop 裡也找不到? 有人知道在那裡嗎 ??? =================================== Executing: "C:\MCC18\bin\mcc18.exe" -p=18F14K50 "main.c" -fo="main.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:45:Error [1027] unable to locate 'GenericTypeDefs.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:46:Error [1027] unable to locate 'Compiler.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:48:Error [1027] unable to locate './USB/usb_device.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:49:Error [1027] unable to locate './USB/usb.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:50:Error [1027] unable to locate './USB/usb_function_cdc.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:208:Error [1027] unable to locate 'GenericTypeDefs.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:209:Error [1027] unable to locate 'Compiler.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:211:Error [1027] unable to locate 'USB\usb_device.h' C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:212:Error [1027] unable to locate 'USB\usb.h' MPLAB C18 v3.30 (evaluation) Copyright 2000-2009 Microchip Technology Inc. Days remaining until evaluation becomes feature limited: 14 Halting build on first failure as requested. ---------------------------------------------------------------------- Debug build of project `C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\LAB4_V3.mcp' failed. Language tool versions: mpasmwin.exe v5.30.01, mplink.exe v4.30.01, mcc18.exe v3.30 Preprocessor symbol `__DEBUG' is defined. Sun Jul 05 08:11:26 2009 ---------------------------------------------------------------------- BUILD FAILED ========================================= pickit 3 很沒質感 , 很像不值錢的玩具 , 紅色的 usb 線 塑膠臭味很重
發表於: 2009/7/5 10:51
|
|||
|
Re: 奇怪的 mplab 8.3 & ICD2 for 16f914 debug mode !
|
||||
---|---|---|---|---|
資深會員
|
這是 picc 的組態設定
[16F913]
我只用55.4% rom, 使用是 picc 9.65 LITE 應該沒有記憶體限制 所以應該有 bug !
發表於: 2009/6/29 22:23
Edited by Ryang on 2009年06月30日 09:15:13
|
|||
|
Re: 請問 FW2.4 是否只有 USB 相關的範例專案
|
||||
---|---|---|---|---|
資深會員
|
在usb 的練習中 mchfsusb/fw/hid 下
應該有 mouse 及 Ctrl_IO_AD_DEMO 兩個 HID 可以練習 ! 還有 VB_DEMO/HID_PIC18F4550.exe 可以測試 Ctrl_IO_AD_DEMO 已經很完整, 測試看看 !
發表於: 2009/6/29 22:03
|
|||
|
Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
|
||||
---|---|---|---|---|
資深會員
|
我最近也要試用18F14K50, 會注意這個問題!
發表於: 2009/6/29 10:45
|
|||
|