Community Translation - CapSense V7.0 ported to Keil uVision does not compile - KBA230001

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

cross mob
yasa_4608926
Level 4
Level 4
Distributor - Marubun (Japan)
250 sign-ins 5 solutions authored 25 replies posted

Hi,

I tried to translate this KBA230001 into Japanese.

CapSense V7.0 ported to Keil uVision does not compile - KBA230001

CapSense V7.0 ported to Keil uVision does not compile - KBA230001

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

タイトル:

Keil uVisionへ移植したCapSense V7.0がコンパイルできません - KBA230001

問題点:

CapSense V7.0コンポーネントを含むCapSenseプロジェクトをKeil uVisionへエクスポートしていますが、次のエラーが発生します:

Generated_Source/PSoC4/CapSense_SensingCSD_LL.c(807): error: #268: declaration may not appear after executable statement in block

          uint32 idacARegValue;

Generated_Source/PSoC4/CapSense_SensingCSD_LL.c(809): error:  #268: declaration may not appear after executable statement in block

          uint32 idacBRegValue;

回答:

PSoC CreatorではC99 standardでプロジェクトをコンパイルしていて、Keil uVisionではC90 standardでプロジェクトをコンパイルしていると発生します。

この問題を解決するには、Keil uVisionで、Project > Options for target ‘プロジェクト名’ > C/C++ タブ > C99 Mode のチェックボックスを有効にしてください。

コンパイル時にC99 standardを使用するようにKeilを設定することで、問題は解決されます。

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

1 Reply
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

We receive your translation, it will be published to KBA to Community.

After upload, You will receive the points as the word of KBA.

Due to the current volume of works, Please bear with me for the delayed the response,

Thanks for your contribution to CDC!

Will keep you update the status.

Thanks,

Jenna Jo

Jenna Jo