- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to build HelloWorld example with CY8CPROTO-064S1-SB board with MTB 3.0.
This is the error message I got. Please advice. Thanks.
Traceback (most recent call last):
File "C:/Users/XXXXXXXX/mtw3/Hello_World/bsps/TARGET_APP_CY8CPROTO-064S1-SB/psoc64_postbuild.py", line 281, in <module>
main(sys.argv[1:])
File "C:/Users/XXXXXXXX/mtw3/Hello_World/bsps/TARGET_APP_CY8CPROTO-064S1-SB/psoc64_postbuild.py", line 253, in main
tools.sign_image(app_hex_path,1)
File "C:\Users\XXXXXXXX\ModusToolbox\tools_3.0\python\lib\site-packages\cysecuretools\main.py", line 268, in sign_image
if not self._validate_policy(['pre_build', 'dap_disabling']):
File "C:\Users\XXXXXXXX\ModusToolbox\tools_3.0\python\lib\site-packages\cysecuretools\main.py", line 915, in _validate_policy
raise ValueError(f"Cannot find policy file '{self.policy}'")
ValueError: Cannot find policy file 'C:\Users\XXXXXXXX\mtw3\Hello_World\policy\policy_single_CM0_CM4.json'
make[1]: *** [../mtb_shared/core-make/release-v3.0.3/make/core/bwc.mk:155: _mtb_build__legacy_bsp_postbuild] Error 1
make: *** [../mtb_shared/core-make/release-v3.0.3/make/core/main.mk:376: secondstage_build] Error 2
"C:/Users/XXXXXXXX/ModusToolbox/tools_3.0/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/Users/XXXXXXXX/ModusToolbox/tools_3.0 CY_IDE_BT_TOOLS_DIR= -j8 all" terminated with exit code 2. Build might be incomplete.
16:37:45 Build Failed. 2 errors, 0 warnings. (took 1m:5s.905ms)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GaryLim ,
As this is a PSoC64 kit we must provision the kit before building.
Hence you are getting errors such as ValueError: Cannot find policy file etc.
Please refer to the 3.ModusToolbox Tools Provisioning Flow section of Secure Boot Document. After provisioning your kit try to build the same project again.
Warm Regards,
Gautami J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GaryLim ,
As this is a PSoC64 kit we must provision the kit before building.
Hence you are getting errors such as ValueError: Cannot find policy file etc.
Please refer to the 3.ModusToolbox Tools Provisioning Flow section of Secure Boot Document. After provisioning your kit try to build the same project again.
Warm Regards,
Gautami J