5
4

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.

BLENanoにbootloader.hexをうまく書き込めないとき

Posted at

aa884cc155cf7b01065e442029cbe87d.image.538x354.JPG
BLE Nano

初心者すぎてめっちゃ嵌ったので、備忘録としてメモ。

Mac OS10.10.x(Yosemite)だと、BLENanoにbootloader.hexがうまく書き込めなかった。

前提

BLENanoをArduinoIDEで開発するには
https://github.com/RedBearLab/nRF51822-Arduino/blob/S130/README.md

結論は、以下コマンドで解決した。

sudo mount -u -w -o sync /Volumes/MBED; cp -X ~/(your path)/bootloader.hex /Volumes/MBED/

普通の手順は、BLENanoをmacに挿すとマウントされたMBEDが出現するので、そこにbootloader.hexファイルをドラック&ドロップするだけ。すると、一度アンマウントされて、再度マウントされる。これで完了。

しかし、僕のmacだと、fail.txtといういかにも失敗したっぽいファイルが生成されて、やはりちゃんとbootloaderをロードできていない。

どうやら発売元のRedbareのフォーラムを見ても、同じように困っている人がいるらしい。
挙げ句の果てに、半田付けはちゃんとできているか?みたいな指摘をされていて、ちょっと可愛い。

Please help -- cannot install nRF51822 Arduino Add-on on Mac (Yosemite)

解決につながった記事↓
Yosemite file copier for HDK-based mbed

これの一番下にすごく重要なことが書いてある

Note: If you are using OSX 10.10.x (Yosemite), it has a bug with the OS, please use this method to load firmware:
https://developer.mbed.org/users/okano/notebook/mbed-on-yosemite/?c=14179

ちなみに、何度もマウント、アンマウントを繰り返していると稀に、「/Volumes」のマウントポイントが重複してしまうバグが起こるときがある。

volumes-に重複したマウントポイントを削除する

そのほか、リファレンス

[公式リファレンス]
(http://redbearlab.com/blenano/)
[RedBearLab/nRF51822-Arduino]
(https://github.com/RedBearLab/nRF51822-Arduino)
BLE NanoでiOSアプリとBluetooth通信(BLE Nano編)
[BLE NanoをArduino IDEで開発する]
(http://shokai.org/blog/archives/10424)

appleWatchと連動の知見も↓
[6500円でつくるスマートロック 電子工作編]
(http://qiita.com/toshi-saito/items/87c507350941a95cc660)

おわり

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?