連載「Picoとマルチコア対応RTOSでArduinoシールドを使おう」第1回

第1回 マルチプロセッサ対応カーネルの環境構築からサンプルの起動まで

● 本文中に登場するURL・コマンドライン

・MSYS2公式ウェブ・ページ
https://www.msys2.org
・リスト1 最新版へのアップデートと開発環境のインストールを行うpacmanコマンド
pacman -Sy
pacman -Suu
pacman -S base-devel
pacman -S mingw-w64-x86_64-toolchain
pacman -S make
・パスの追加
MSYS2_PATH_TYPE = inherit
・GCC-Armの入手先
https://developer.arm.com/downloads/-/gnu-rm
・図2 環境変数Pathへ追加するGCC ARMのパス
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.10\bin
・Pico用のTOPPERS/FMPカーネルの入手先
https://www.toppers.jp/fmp-d-download.html
・Windows用コンフィグレータ(バイナリ)の入手先
https://www.toppers.jp/cfg-download.html
・リスト2 uf2ファイルを生成する手順を追加する
413 $(OBJCOPY) -O srec -S $(OBJFILE) $(OBJNAME).srec
  ifeq ($(DBGENV),ROM)
      $(OBJCOPY) -O binary -S $(OBJFILE) $(OBJNAME).bin
      bin2uf2 $(OBJNAME).bin
  endif
414 $(CFG) –pass 3 –kernel fmp $(INCLUDES) \
・サンプルのビルドで使うコマンド
mkdir SAMPLE1
cd SAMPLE1
../../../configure -T rasperrypi_pico_gcc
ls
make DBGENV=ROM
make clean
make