1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PSLabのファームウェアのアップデート(Ubuntu, PicKit3)

Posted at

 数年前にスイッチサイエンスからケースとともに購入したPSLabを久しぶりにスマホにつないだら、ファームウェアが古いと出ました。

にしたがってアップデートしました。
 私のはV5らしいです。私は、古いAVRしかしらないのでPIC界隈のことはわかりません。PicKit3というprogrammerを使い、MPLAB X IDEをインストールして書き換えるそうです。PicKit3は中華製のを買いました。
 しかし、MAPLAB X IDEのインストールのときにMD5のチェックサムエラーとMPLABからPicKit3が認識されないという問題に遭遇しました。

チェックサムエラー

によると、Ubunut 25.10は、

sudo apt install coreutils-from-gnu coreutils-from-uutils- --allow-remove-essential

するそうです。

MPLABからPicKit3が認識されない

によると、v6.25ではだめでv6.20にするそうです。

ファームビルド

 上記のgithubからgit cloneし、cmakeのところは、

cmake -DLEGACY_HARDWARE=true ..

にして、ビルドします。

書き換え

 PSLabにピンソケットをつけPicKit3とつなぎました。PicKit3のケースの三角マークがピン1です。
PSLabとPicKit3を両方ともPCとつなぎ、

sudo /opt/microchip/mplabx/v6.20/mplab_platform/bin/mdb.sh flash.mdbscript

で書き換えます。

bootloaderは試していません

書き換えるとbootloaderもはいるようですが、V5のハードだと起動はむずかしそうなので試していません。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?