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 18:09] john1117 [How to write firmware] |
ko:odroidsmartpower [2013/09/16 10:09] 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 50: | Line 49: | ||
{{http://www.hardkernel.com/renewal_2011/_Files/prdt/2013/201307/201307231634494316.jpg}} | {{http://www.hardkernel.com/renewal_2011/_Files/prdt/2013/201307/201307231634494316.jpg}} | ||
+ | |||
+ | |||
====== 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 | ||
- | |||
- | 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 bootloader ===== |
- | 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) | + | |
+ | ===== How to write firmware ===== | ||
+ | === Cross Compiler 설치 === | ||
+ | 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 ===== | + | |
+ | === 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 firmware ===== | ||
- | 다음 경로에서 스마트파워 펌웨어소스코드를 받을 수 있습니다. http://dn.odroid.com/Smart_Power/smart_power_fw.zip | ||
- | 압축을 풀면, 두개의 폴더가있는데 내용은 아래와 같습니다.\\ | + | === firmware source code downloads === |
- | Microchip : USB framework 펌웨어\\ | + | 다음 경로에서 Smart Power firmware 소스코드를 받을 수 있습니다. http://dn.odroid.com/Smart_Power/smart_power_fw.zip |
- | USB/Device - HID - Custom Demos/Firmware : 메인 스마트파워 펌웨어\\ | + | |
+ | 압축을 풀면, 아래와 같이 두개의 폴더가 있습니다.\\ | ||
+ | Microchip : USB framework firmware\\ | ||
+ | USB/Device - HID - Custom Demos/Firmware : main Smart Power firmware\\ | ||
**HIDBootloader (windows)를 이용한 펌웨어 쓰기** | **HIDBootloader (windows)를 이용한 펌웨어 쓰기** | ||
* USB/Device - Bootloaders/HID 폴더의 HIDBootloader (windows)를 실행합니다. | * USB/Device - Bootloaders/HID 폴더의 HIDBootloader (windows)를 실행합니다. | ||
* Smart Power의 ON/OFF버튼을 누른채 Smart Power와 PC를 micro usb cable로 연결합니다. | * Smart Power의 ON/OFF버튼을 누른채 Smart Power와 PC를 micro usb cable로 연결합니다. | ||
- | * ON/OFF 버튼과 START/STOP버튼 사이의 LED중 위에 LED가 점멸하는것을 확인합니다. | + | * ON/OFF 버튼과 START/STOP버튼 사이의 LED중 위에 LED가 점멸 하는것을 확인합니다. |
* HIDBootloader에서 import firmware image 버튼을 눌러 hex파일을 선택합니다. | * HIDBootloader에서 import firmware image 버튼을 눌러 hex파일을 선택합니다. | ||
* Erase/Program/Verify Device 버튼을 누릅니다. | * Erase/Program/Verify Device 버튼을 누릅니다. | ||
- | * 마지막으로 Reset Device 버튼을 누르면 펌웨어 쓰기가 완료됩니다. | + | * 마지막으로 Reset Device 버튼을 누르면 firmware 쓰기가 완료됩니다. |