ライブラリを使用するために必要なパスやビルドオプションなどの情報を取得するための仕組み
投稿者「ちはやふる」のアーカイブ
[cpp] no template named ‘tuple’ in namespace ‘std’
例
|
1 2 |
/usr/local/include/gtest/gtest-printers.h:640:27: error: no template named 'tuple' in namespace 'std' void PrintTo(const ::std::tuple<Types...>& t, ::std::ostream* os) { |
原因
C++11機能が無効である。
解決方法
C++11機能を有効にする。
-std=c++11
[vscode] バイナリ(Hex)編集
Visual Studio Code May 2020 / Download version 1.46.0 からMicrosoft公式(要、拡張機能インストール)
[win] バッチファイル実行引数の展開方法
[git] フォルダを移動したファイルの履歴を追跡する
背景
フォルダを移動した/リネームしたファイルの履歴が(通常操作では)途切れる。
解決策
--follow オプションを付加する
Continue listing the history of a file beyond renames (works only for a single file).
[Mac] telnetをcurlで代替
背景
macOSのデフォルト環境においてtelnetはインストールされない。homebrewなどで別途インストールする必要がある。
書式
|
1 |
% curl -v telnet://<host>:<port> |
接続例
|
1 2 3 4 5 |
% curl -v telnet://192.168.1.13:9000 * Trying 192.168.1.13... * TCP_NODELAY set * Connected to 192.168.1.13 (192.168.1.13) port 9000 (#0) |
[STM32 IoT] デバッガ接続設定
[Mac] スクリーンショットの撮影方法
スクリーンショット ショートカットキー
|
1 |
Shift + Command + 4 + space |
スクリーンショットApp 起動方法
|
1 |
Shift + Command + 5 |
MacOSのUSBシリアル通信方法
MacOSからマイコンボードへUSBシリアル(serial)通信で接続する方法
※ 事前にUSBシリアル変換チップメーカー(FTDI社など)から提供されるMac用ドライバをインストール済みであること。
デバイスファイルのリスト方法
|
1 2 3 4 |
% ls /dev/tty.* /dev/tty.BLTH /dev/tty.usbmodem14103 /dev/tty.Bluetooth-Incoming-Port |
USBシリアルデバイスへの接続方法
|
1 |
% screen [デバイスファイル名] [ボーレート] |
|
1 |
% screen /dev/tty.usbmodem14103 115200 |
接続の終了方法
セッションを終了する。
- control + a を押下する。
- k を押下する。
- ターミナルの下段に "Really kill this window [y/n]" と表示される。
- y を押下する。
内部リンク
STM32 Discovery kit IoT node
STM32 Discovery kit IoT node for STM32L475 MCU
| Part number | B-L475E-IOT01A |
| MPU series | STM32 L4 |
| MPU product name | STM32L475VGT6 |
| MPU core | Arm Cortex-M4 |
| Flash memory | 1 Mbytes |
| SRAM | 128 Kbytes |
