各種リソース
- SDCC
irMagicianはSDCC (Small Device C Compiler)のVer.2.9によってビルドされています。SDCCはバージョンアップが重ねられており、現行のVer.3系列ではうまくビルド出来ないかも知れません。ここでは Linuxの開発環境の構築を行います。- 入手
- ビルド
SDCCをそのままビルドすると、下記のようなエラーが発生します。
原因はgetlineの衝突ですので、/usr/include/stdio.h のgetline部分を一時的に以下のように編集します。1234567891011/* Like `getdelim', but reads up to a newline.This function is not part of POSIX and therefore no officialcancellation point. But due to similarity with an POSIX interfaceor due to the implementation it is a cancellation point andtherefore not marked with __THROW. *//*extern _IO_ssize_t getline (char **__restrict __lineptr,size_t *__restrict __n,FILE *__restrict __stream) __wur;*/その後、./configure, make, sudo make install を順番に行いビルドします。
ビルドが通ったら、忘れないうちに上記の変更は元に戻しておきましょう!
- ライブラリのコピー
先に入手したライブラリを/usr/local/share/sdcc/libにコピーします。
- ブートローダ
- ファームウェア
- SDCC ベース(現行品)
- MPLAB ベース(実験実装)
- 回路図