Community Translation - Including the Cortex Microcontroller Software Interface Standard (CMSIS) Library in a PSoC® Creator™ Project - KBA90457

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
2 Replies
AikoO_51
Moderator
Moderator
Moderator
100 sign-ins First question asked 50 solutions authored

Hi Moto-san,

I confirmed the KBA.

Please work to do.

Thanks,

Aiko

Aiko Ohtaka
Infineon Technologies
0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Original KBA: KBA90457

Including the Cortex Microcontroller Software Interface Standard (CMSIS) Library in a PSoC® Creator™...

Translated by: MoTa_728816

==============================

タイトル:PSoC® Creator に CMSIS ライブラリをインクルードする - KBA90457

ヴァージョン:*A

質問:

PSoC® Creatorに CMSIS (Cortex Microcontroller Software Interface Standard) ライブラリをインクルードするのにはどうしたら良いですか?

回答:

下記の手順にしたがってプロジェクトに CMSIS ライブラリをインクルードしてください:

1. CMSIS ライブラリをプロジェクトのディレクトリにコピーしてください。

2. PSoC Creator の Workspace Explorer で、対象のプロジェクトを右クリックして Build Settings > Compiler > General を選択します。図1 のように、Additional Include Directoris の欄に CMSIS ライブラリの “include”フォルダのパスを追加します。

3. 図 1のように、同じウィンドウ内で、Preprocessor Definitions の欄に ARM_MATH_CM3 を追加します。

図 1. コンパイラ設定

001-183045.png

4. 図 2のように、同じウィンドウ内で、Linker > General へ移動して、Additional Libraries の欄に m を追加します。変更を Apply 後、ウィンドウを閉じます。

図 2. リンカ設定

002-183046.png

5. Workspace Explorer 内の Source Files を右クリックして、 Add > Existing Item を選択し、使用する必要なソースファイル全てを追加してください。

これでプロジェクトはビルドできます。

==============================

21-May-2020

moto

0 Likes