- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ;
Solved! Go to Solution.
- Labels:
-
ModusToolbox PSoC 6 SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
The application will be created successfully. Let me know your observations 🙂
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
The application will be created successfully. Let me know your observations 🙂
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dheeraj:
it's very useful for me, tks;