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

PSoC™ 6 SDK Forum Discussions

David_Zhang
Level 5
First solution authored 50 replies posted 50 questions asked
Level 5

Hi Cypress:

   when we download the psoc6 code form github of  https://github.com/cypresssemiconductorco?q=mtb-example-psoc6%20NOT%20Deprecated,   when we import the project and  with offline  of  modustoolbox-offline-content-1.0.0.36.zip, and build it , it show error with "app-id is not set" ; can you help to advice how to solve it due to we has no internet ;

David_Zhang_0-1616470594138.png

 

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator First comment on KBA First comment on blog 5 questions asked
Moderator

Hello @David_Zhang ,

The reason the error comes up is because this particular code example "mtb-example-psoc6-dfu-basic" is not part of the offline zip package. So, it fails with this error because it cannot find the respective app-id of this code example in the offline manifests.

Please follow these steps to get this example running:
1. Download the zip archive attached to this post
2. Extract the zip archive inside the .modustoolbox/offline/git folder
3. Navigate to the .modustoolbox\offline\manifests-v2.X folder and edit the mtb-ce-manifest file to add this after the <apps> XML tag:

 

  <app>
  <name>Basic Device Firmware Upgrade (DFU)</name>
    <id>mtb-example-psoc6-dfu-basic</id>
    <uri>https://github.com/cypresssemiconductorco/mtb-example-psoc6-dfu-basic</uri>
    <description>This example demonstrates basic device firmware update (DFU), also known as "bootloading", with PSoC® 6 MCU.</description>
    <req_capabilities>psoc6</req_capabilities>
    <versions>
      <version>
        <num>Latest 1.X release</num>
        <commit>latest-v1.X</commit>
      </version>
      <version>
        <num>1.0.0 release</num>
        <commit>release-v1.0.0</commit>
      </version>
    </versions>
  </app>

 

Please see the attached mtb-ce-manifest.xml for reference. You can also copy and paste this file too if that's easier. 

4. Now run, New Application > Project Creator > Choose BSP > Find the "Basic Device Firmware Upgrade" template and click Create.

DheerajK_81_0-1616515845230.png

The application will be created successfully. Let me know your observations 🙂

Regards,
Dheeraj

View solution in original post

0 Likes
2 Replies
DheerajK_81
Moderator
Moderator First comment on KBA First comment on blog 5 questions asked
Moderator

Hello @David_Zhang ,

The reason the error comes up is because this particular code example "mtb-example-psoc6-dfu-basic" is not part of the offline zip package. So, it fails with this error because it cannot find the respective app-id of this code example in the offline manifests.

Please follow these steps to get this example running:
1. Download the zip archive attached to this post
2. Extract the zip archive inside the .modustoolbox/offline/git folder
3. Navigate to the .modustoolbox\offline\manifests-v2.X folder and edit the mtb-ce-manifest file to add this after the <apps> XML tag:

 

  <app>
  <name>Basic Device Firmware Upgrade (DFU)</name>
    <id>mtb-example-psoc6-dfu-basic</id>
    <uri>https://github.com/cypresssemiconductorco/mtb-example-psoc6-dfu-basic</uri>
    <description>This example demonstrates basic device firmware update (DFU), also known as "bootloading", with PSoC® 6 MCU.</description>
    <req_capabilities>psoc6</req_capabilities>
    <versions>
      <version>
        <num>Latest 1.X release</num>
        <commit>latest-v1.X</commit>
      </version>
      <version>
        <num>1.0.0 release</num>
        <commit>release-v1.0.0</commit>
      </version>
    </versions>
  </app>

 

Please see the attached mtb-ce-manifest.xml for reference. You can also copy and paste this file too if that's easier. 

4. Now run, New Application > Project Creator > Choose BSP > Find the "Basic Device Firmware Upgrade" template and click Create.

DheerajK_81_0-1616515845230.png

The application will be created successfully. Let me know your observations 🙂

Regards,
Dheeraj

0 Likes
David_Zhang
Level 5
First solution authored 50 replies posted 50 questions asked
Level 5

Hi  Dheeraj:

   it's very useful for me, tks;

0 Likes