PICでUSB

by K.I
2014/07/10

Index


概要


1以前にもいろいろ試したんだけど、サーバクラッシュで記録が全て失われてしまったので、もう一度覚えている範囲でやりなおし。。

[top]

開発環境

MPLAB

C18コンパイラ

MLA


[top]

CDCクラスを使う

CDC_Demoのプロジェクト作成

BootLoaderの書込み

BootLoaderでプログラム書込み

→USB-IO2.0基板に、BootLoader起動用のスイッチと、10kΩのプルアップ抵抗を付ける

CDC_Demoを起動


2あぁ、面倒くさい。もっと簡単な方法ないのかなぁ。

[top]

まとめ

MPLABXって


[top]

参考

評価ボード

ブートローダ

書籍


3とても長いけど、ものすごく参考になる。第498回〜第514回ぐらいが、18F2550を18F14K50に乗せかえる話。

[top]

REVIVE USB(180524追記)

回路図

ファームの書き込み

DiviveUSBの設定

チャタ対応版のREVIVE_USB(書きかけ)

Target device was not found (could not detect target voltage VDD). You must connect to a target device to use PICkit 3.
Programmer to target power is enabled - VDD = 5.000000 volts.
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x107f
configuration memory
program memory
Address: 0 Expected Value: 74 Received Value: 0
Failed to program device

PICkit 3 is trying to supply 5.000000 volts from the USB port, but the target VDD is measured to be 4.750000 volts. This could be due to the USB port power capabilities or the target circuitry affecting the measured VDD.


*****************************************************

Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............PIC18F

Programmer to target power is enabled - VDD = 4.750000 volts.
Target device PIC18F14K50 found.
Device Revision ID = 8

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x107f
configuration memory
Programming/Verify complete

*****************************************************

Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............PIC18F

Programmer to target power is enabled - VDD = 3.250000 volts.
Target device PIC18F14K50 found.
Device Revision ID = 8

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x107f
configuration memory
Programming/Verify complete

[top] [電子工作関連に戻る]

comments powered by Disqus