0
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?

シンセ先輩から貰った TG-LPC11U35-501、Lチカで遊ぶ。( Ubuntu 24.04 lts , Firefox )

Last updated at Posted at 2024-12-28

参考

o_coq706.jpg

x arduinoじゃないけど ちょつとかんれん?

x 過去ログを見よ!!!
x こまかい所は、省略、各自独自に調査せよ!!!
x linuxの基本操作がわからないと激ムズ
(ちなみに20年から30年UinxをやっているAIX,Solaris(なんのこと))
(ls cd cp mv rm mkdir pwd(は、おぼえよう))(dd は おまけ)

目的
ubuntuでmbedで遊ぶ
(mbedは、2027年で終了)

● mbedにログイン、プロジェクトの新規作成、いろいろ、コンパイル

o_coq700.jpg

ソース


#include "mbed.h"

DigitalOut myled(LED1);

int main() {
  while(1) {
    myled = 1;
    wait(0.2);
    myled = 0;
    wait(0.2);
  }
}



● コンパイル完了、ダウンロードディレクトリーにコピー完了

o_coq701.jpg

● ファイルからコンパイル済みバイナリーの確認

o_coq702.jpg

● ISPを押しながらリセット操作し、ディスクから状態を確認

o_coq703.jpg

● なぜか普通にコピーすると失敗するのでddコマンドでコピー

o_coq704.jpg

ダウンロードディレクトリーで操作


dd bs=1024 conv=nocreat,notrunc if=c011_mbed2-example-blinky.LPC11U35_501.bin of=/media/user1/CRP\ DISABLD/firmware.bin

● リセット後にLチカ成功

o_coq705.jpg

0
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
0
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?