Do this once:
$ git remote add upstream [email protected]:armmbed/mbed-os.git
And do this when need to sync:
$ git fetch upstream
$ git merge upstream/master
$ git push
Do this once:
$ git remote add upstream [email protected]:armmbed/mbed-os.git
And do this when need to sync:
$ git fetch upstream
$ git merge upstream/master
$ git push
/* mbed Microcontroller Library | |
* Copyright (c) 2006-2013 ARM Limited | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
DAPLink 新規ターゲットの追加
projects.yaml
の projects:
の部分に追加する。
lpc11u35_xxx_if:
- *module_if
- *module_hic_lpc11u35
#! /usr/bin/env python | |
# codeing: utf-8 | |
import serial | |
def send_normal_command(cmd): | |
ser.write(cmd) | |
rcv_buf = "" | |
while rcv_buf != "OK\r\n": | |
rcv_buf = ser.readline() |
/* mbed Microcontroller Library | |
* Copyright (c) 2006-2013 ARM Limited | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
yotta がインストール(アップデート)できない場合の対処方法(OS X)
OS X版で yotta をアップデートしようとしたのですが、以下のようなエラーが出て、インストールできませんでした。
$ sudo pip install yotta
# snip
Requirement already satisfied (use --upgrade to upgrade): Cython in /Library/Python/2.7/site-packages (from hidapi->pyOCD<1.0,>=0.3->valinor<1.0,>=0.0.0->yotta)
Installing collected packages: setuptools, enum34, ipaddress, idna, pycparser, cffi, cryptography, PyJWT, pathlib, functools32, jsonschema, argcomplete, mbed-test-wrapper, pyyaml, intelhex, hidapi, pyOCD, argparse, xmltodict, project-generator-definitions, project-generator, pyelftools, valinor, jsonpointer, yotta
#include "mbed.h" | |
DigitalOut myled(PA17); | |
Serial pc(PB22, PB23); | |
int main() { | |
pc.printf("hello, mbed world.\n"); | |
while(1) { | |
myled = 1; | |
wait(0.2); |
/* | |
* Copyright (c) 2016 ARM Limited | |
* SPDX-License-Identifier: Apache-2.0 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
#! /usr/bin/env python | |
# coding: utf-8 | |
# This script creates copy from mbed user code repository | |
# You must install Mercurial package (pip install mercurial) | |
# | |
# Usage: python clone_mbed_user_repo.py <mbed_user_name> <password> <sessionid_developer of coockei> | |
# e.g. $ python clone_mbed_user_repo.py MACRUM password kjdt3hu1loppvyyxq60nhokssa1k48ul | |
# | |
# <sessionid_developer> can be found from developer tool of the web brawser |