Community Translation - Build failure with legacy BTSDK project in ModusToolbox™ 2.4 - KBA234113

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

cross mob
keni_4440091
Level 7
Level 7
500 replies posted 100 solutions authored 50 solutions authored

Dear supporter

I want to translate the following KBA. Please confirm to my work.

Build failure with legacy BTSDK project in ModusToolbox™ 2.4 - KBA234113

Regards,

Nino

 

2 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Nino-san

Confirm to work on this KBA.

Just for note, you might not able to edit content for few days in this week because of Community migration.

Thanks,

Best regards 

Jenna Jo
0 Likes

Dear Jenna

The following shows the translated version in Japanese for targeted KBA.

Please conform and double check.

Regards,

Nino

----------------------------------------------------------------------------------------------

ModusToolbox™ 2.4で過去のBTSDKプロジェクトを使用したビルドの失敗 – KBA234113

 

Version: **

 

質問:

ModusToolbox™ 2.4で過去のBTSDKプロジェクト(バージョン2.7以前)をビルドすると何故失敗しますか?

 

回答:

古いプロジェクトに影響のあるソフトウェアの最新バージョンでのビルドシステムに変更がありました。以下のようなエラーが表示される場合があります:

 

COMPONENT_fw_upgrade_lib/ota_fw_upgrade_common.c: In function 'wiced_ota_fw_upgrade_init':
<command-line>: error: 'DLConfigSSLocation' undeclared (first use in this function)
COMPONENT_fw_upgrade_lib/ota_fw_upgrade_common.c:204:26: note: in expansion of macro 'SS_LOCATION'
  204 |     nv_loc_len.ss_loc  = SS_LOCATION;
      |                                                    ^~~~~~~~~~~
<command-line>: note: each undeclared identifier is reported only once for each function it appears in

 

対策:

 

1.現在のBSPの場所を確認します:

a. modus-shellターミナルを開き、アプリケーションフォルダに移動します。

b. 以下を実行します:

make get_app_info | grep 'SHAREDLIBS='

c. アプリケーションフォルダから相対パスを使用して以下の出力を探します。例えば:

 

./../../../wiced_btsdk/dev-kit/bsp/TARGET_<bsp_name>

それがアクティブBSPの場所になります。

 

  1. 手順1cで見られたフォルダに移動します。

 

  1. BSK Makefileを修正します。このファイルは、BSPフォルダ内にあり、BSP名にちなんだ名前になっています。例えば:

<bsp_name>.mk

 

  1. ファイル内のコメントラインを検索します:

# split up btp file into "x=y" text

 

  1. コメントラインのすぐ上に以下のラインを置きます。

CY_EMPTY=
CY_SPACE=$(CY_EMPTY) $(CY_EMPTY)

 

  1. ファイルを保存し、プロジェクトを再度ビルドします。

 

古いプロジェクトは、ModusToolbox™ 2.4環境で正常にビルドされるはずです。

 

Labels   Other

Tags: build failure legacy BTSDK modustoolbox™ Add tags

 

0 Likes