5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

BLE Nano V2ボードをFeather nRF52のファームウェアで開発する

Posted at

概要

Feather nRF52のファームウェアは使いたいけどボードはもっとシンプルなのがいい人。

ブートローダー書き込み

https://github.com/adafruit/Adafruit_nRF52_Arduino
bin/bootloader内にあるfeather52_bootloader_5.1.0_s132_dual.hexファイルをドラッグアンドドロップで書き込む。
IMG_0408.jpg

書き込み器の制作

Feather nRF52のブートローダーはArduino Unoなどと同じようにUSBシリアル変換器を介してファームウェアをマイコンに書き込みます。その為にまずはNano V2のP6,P8,P21端子を引き出しましょう、この端子とUSBシリアル変換器を接続することになります。
IMG_0409.jpg

https://learn.adafruit.com/assets/39913
の回路図を参考にUSBシリアルボードと繋げます、UBSシリアルは信号レベルが3.3Vの物を使用しましょう。

IMG_0414.jpg
こんな感じ
IMG_0410.jpg

ピン定義の変更

SPIやI2Cに割り当てられているピンがFeather nRF52と全然違うのでその辺のペリファラルを使用したい場合はvariant.hを変更して割り当てたいピンに割り当てたい機能を割り当てる。

実際にはArduinoのボードマネージャーでAdafruit nRF52をインストールした時に追加されるファイルを書き換えます、私の環境ではC:\Users\XXXXX\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\0.8.2\variants\feather52\variant.hでした。

まとめ

たまにはこういうのもいいんじゃないかな。

5
3
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
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?