Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ko:odroidsmartpower [2013/09/12 17:21] john1117 [How to control Smart Power] |
ko:odroidsmartpower [2013/09/13 16:52] john1117 [How to write firmware] |
||
---|---|---|---|
Line 10: | Line 10: | ||
{{http://www.hardkernel.com/renewal_2011/_Files/prdt/2013/201307/201307231859514295.jpg}} | {{http://www.hardkernel.com/renewal_2011/_Files/prdt/2013/201307/201307231859514295.jpg}} | ||
---- | ---- | ||
- | |||
====== Specifications ====== | ====== Specifications ====== | ||
|MCU|PCI18F45K50| | |MCU|PCI18F45K50| | ||
Line 24: | Line 23: | ||
|Output|4mm diameter banana jack, USB Host port, Wire connector| | |Output|4mm diameter banana jack, USB Host port, Wire connector| | ||
|ETC|Firmware update via USB| | |ETC|Firmware update via USB| | ||
- | ====== Components ====== | + | ====== Components ===== |
---- | ---- | ||
=== PACKAGE INCLUDES : === | === PACKAGE INCLUDES : === | ||
Line 44: | Line 43: | ||
Measure the system load of ODROIDs, X / X2 / U2 / XU\\ | Measure the system load of ODROIDs, X / X2 / U2 / XU\\ | ||
- | LCD shows voltage, current, watt and watt-hour(Wh) simultaneously.\\ | + | LCD shows voltage, current, watt and watt-hour(Wh) simultaneously. |
===== PC Application ===== | ===== PC Application ===== | ||
You can see the graphical energy transient on your PC via USB interface. | You can see the graphical energy transient on your PC via USB interface. | ||
Line 51: | Line 50: | ||
{{http://www.hardkernel.com/renewal_2011/_Files/prdt/2013/201307/201307231634494316.jpg}} | {{http://www.hardkernel.com/renewal_2011/_Files/prdt/2013/201307/201307231634494316.jpg}} | ||
- | PC 프로그램 사용 방법 및 기능 설명 | + | |
====== Hardware ====== | ====== Hardware ====== | ||
---- | ---- | ||
- | |||
- | 회로도 이미지 삽입\\ | ||
- | 회로도 설명\\ | ||
This file is the full schematics of ODROID Smart Power. | This file is the full schematics of ODROID Smart Power. | ||
http://dn.odroid.com/Smart_Power/PowerMeter20130624.pdf | http://dn.odroid.com/Smart_Power/PowerMeter20130624.pdf | ||
PCI18F45K50 MCU data sheet : http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en558861 | PCI18F45K50 MCU data sheet : http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en558861 | ||
- | |||
- | 마이크로칩 PICkiit 디버거 링크\\ | ||
- | |||
- | Can use the PICkit In-Circuit Debugger. See here for more information: | ||
- | http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en538340 | ||
- | |||
====== Software ====== | ====== Software ====== | ||
---- | ---- | ||
- | ===== Cross Compiler ===== | + | ===== How to write firmware ===== |
- | MPLAB C18 v3.43 or higher (From Microchip homepage : http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&redirects=c18) | + | === Cross Compiler install === |
+ | MPLAB C18 v3.43 or higher (From Microchip homepage : | ||
+ | http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&redirects=c18) | ||
+ | In my case, Standard-Eval Version (Free of Charge) was downloaded for my code optimization. It is the trial version and can only be used for 60 days. | ||
- | In my case, Standard-Eval Version (Free of Charge) was downloaded for my code optimization. It is the trial version and can only be used for 60 days. | + | === IDE install === |
- | ===== IDE ===== | + | USB framework, main Smart Power firmware 소스 컴파일을 위한 통합개발환경 다운로드\\ |
X IDE v1.51 or higher (From Microchip homepage : http://www.microchip.com/pagehandler/en-us/family/mplabx ) | X IDE v1.51 or higher (From Microchip homepage : http://www.microchip.com/pagehandler/en-us/family/mplabx ) | ||
- | ===== How to write bootloader ===== | ||
- | ==== Step-by-Step guide to write a bootloader ==== | ||
- | |||
- | **필요 주변기기** : microchip사의 PICkit In-Circuit Debugger, micro USB cable | ||
- | |||
- | **부트로더 소스 다운로드** | ||
- | |||
- | http://dev.odroid.com/projects/pic18f45k50/wiki/FrontPage?action=download&value=Microchip_Solutions_v2012-10-15.zip | ||
- | |||
- | **MPLAB X IDE 실행 및 프로젝트열기** | ||
- | |||
- | file -> Opoen Project -> 다운받은경로/USB/Device-Bootloaders/HID/Firmware - PIC18 Non-J/MPLAB.X | ||
- | |||
- | **빌드** | ||
- | |||
- | Run -> Build Project | ||
- | |||
- | **다음 경로에 .hex 파일 생성 확인** | ||
- | |||
- | 다운받은경로/USB/Device - Bootloaders/HID/Firmware - PIC18 Non-J/MPLAB.X/dist/pic18f14k50/production | ||
- | |||
- | **Smart Power와 PC micro USB 케이블로 연결** | ||
- | |||
- | **PICkit의 5pin header와 Smart Power의 5Pin과 연결(Smart Power 5Pin이미지 필요)** | ||
- | |||
- | **MPLAB IPE 실행 및 아래와같이 설정** | ||
- | |||
- | Family : Advanced 8-bit MCUs (PIC18) | ||
- | Device : PIC18F14K50 | ||
- | |||
- | **Tool에 PICkit 잡히면 Connect 버튼 선택** | ||
- | |||
- | **Browse로 hex파일 선택 후 Program버튼 클릭** | ||
- | |||
- | 부트로더가 잘 구워졌다면 Smart Power의 ON/OFF 버튼을 누른 상태로 micro USB cable을 연결하게되면 위쪽 led가 점멸하게됨 | ||
- | |||
- | ===== How to write firmware ===== | ||
- | |||
- | The firmware source code of ODROID Smart Power.\\ | ||
- | http://dn.odroid.com/Smart_Power/smart_power_fw.zip\\ | ||
- | |||
- | **MPLAB X IDE 실행 및 프로젝트열기** | ||
- | |||
- | file -> Opoen Project -> 다운받은경로/USB/Device - HID - Custom Demos/Firmware/MPLAB.X | ||
- | |||
- | **빌드** | ||
- | |||
- | Run -> Build Project | ||
- | |||
- | **다음 경로에 .hex 파일 생성 확인** | ||
- | 다운받은경로/USB/Device - HID - Custom Demos/Firmware/MPLAB.X/dist/pic18f14k50/production | + | === firmware source code downloads === |
+ | 다음 경로에서 Smart Power firmware 소스코드를 받을 수 있습니다. http://dn.odroid.com/Smart_Power/smart_power_fw.zip | ||
- | **Smart Power와 PC micro USB 케이블로 연결** | + | 압축을 풀면, 아래와 같이 두개의 폴더가 있습니다.\\ |
+ | Microchip : USB framework firmware\\ | ||
+ | USB/Device - HID - Custom Demos/Firmware : main Smart Power firmware\\ | ||
+ | **HIDBootloader (windows)를 이용한 펌웨어 쓰기** | ||
+ | * USB/Device - Bootloaders/HID 폴더의 HIDBootloader (windows)를 실행합니다. | ||
+ | * Smart Power의 ON/OFF버튼을 누른채 Smart Power와 PC를 micro usb cable로 연결합니다. | ||
+ | * ON/OFF 버튼과 START/STOP버튼 사이의 LED중 위에 LED가 점멸하는것을 확인합니다. | ||
+ | * HIDBootloader에서 import firmware image 버튼을 눌러 hex파일을 선택합니다. | ||
+ | * Erase/Program/Verify Device 버튼을 누릅니다. | ||
+ | * 마지막으로 Reset Device 버튼을 누르면 firmware 쓰기가 완료됩니다. |