Announcements
IMPORTANT: Cypress Developer Community currently doesn’t allow sign-in to prepare for the upcoming transition. To learn more, check out our announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

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

ArunKumarChoul
Employee

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

Version: **

Question:
Why does my legacy BTSDK project (version 2.7.1 or older) fail to build in ModusToolbox™ 2.4?

Answer:
There have been changes with the build system in more recent versions of the software that affect older projects. You may see errors like the following:

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

Workaround:

  1. Identify the location of the current BSP:
    1. Open the modus-shell terminal and navigate to the application folder.
    2. Run the following:
      make get_app_info | grep 'SHAREDLIBS='
    3. Look for the following output with the path relative to the application folder. For example:

      ./../../../wiced_btsdk/dev-kit/bsp/TARGET_<bsp_name>
      That is the location of the active BSP.

  2. Navigate to the folder discovered in step 1c.

  3. Edit the BSP Makefile. This file is located in the BSP folder and named after the BSP name. For example:  <bsp_name>.mk

  4. Search in the file for the comment line:

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

  5. Place the following lines immediately above that comment line:

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

  6. Save the file and retry to build the project.

The legacy project should build successfully in the ModusToolbox™ 2.4 environment.

 

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Oct 11, 2021 03:11 AM
Updated by:
 
Contributors