- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Created new modus application as follows : BSP > PSoC™ 62S2 > CY8CEVAL-062S2 > [NEXT]
: Select Application > Peripherals > MCUboot - Based Basic Bootloader > [CREATE]
2. Two project folders are created namely : MCUboot-Based_Basic_Bootloader.blinky_cm4 and MCUboot-Based_Basic_Bootloader.bootloader_cm0p
3. While building MCUboot-Based_Basic_Bootloader.blinky_cm4 we face 2 errors as mentioned below.
make[1]: *** [../../mtb_shared/core-make/release-v1.9.1/make/core/build.mk:557: CY_BUILD_app_postbuild] Error 126
make: *** [../../mtb_shared/core-make/release-v1.9.1/make/core/main.mk:434: secondstage_build] Error 2
"C:/Infineon/Tools/ModusToolbox/tools_2.4/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.4 CY_IDE_TOOLS_DIR=C:/Infineon/Tools/ModusToolbox/tools_2.4 -j4 all" terminated with exit code 2. Build might be incomplete.
11:46:12 Build Failed. 2 errors, 11 warnings. (took 7m:493ms)
providing the way to resolve this error and compile without these errors would be helpful.
Solved! Go to Solution.
- Labels:
-
ispn:39597:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AbhiMin31 ,
To install the 'Click' module in python, open a command prompt and enter the following command:
python -m pip install click
The build will also subsequently ask for other python modules as well and you can install those modules in the same way using the command "python -m pip install <name of module>"
Hope this helps!
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AbhiMin31 ,
Can you please provide the log of the console as a text file here so we can understand the issue/errors in more detail from the same.
You can do this by clicking on the copy Build Log button near the console:
I also observed from the image you shared that the access to the python tool is not allowed and hence the build returns "Permission denied error" for you.
Can you please try running ModusToolbox in administrator mode and see if this resolves the issue?
Can you also please navigate to the path in the below image from explorer and see if the python.exe file is present in the same?
If not can you please install python 3.10 in C drive by giving the installation location as C:\Python310 and then adding this path to the environment variables as shown below (path added here should contain the python.exe file)
Verification : Open a command terminal and run the python --version command and make sure you get the output as below after editing the path environment variable
After this close and reopen ModusToolbox and try the build operation once again.
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alen,
Thanks for your support,
Hopefully the "Permission denied error" for python has been rectified on your suggestions.
Regarding the ideas you mentioned earlier, I tried running ModusToolbox in administrator mode but still faced the same issue even after python issue resolved.
I'll attach the logs and Screenshots for your reference, please do the needful.
Thanks and regards,
Abinayaviji.
Build Log:
10:15:31 **** Incremental Build of configuration Debug for project MCUboot-Based_Basic_Bootloader.blinky_cm4 ****
"C:\\Infineon\\Tools\\ModusToolbox\\tools_2.4\\modus-shell\\bin\\make" CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.4 CY_IDE_TOOLS_DIR=C:/Infineon/Tools/ModusToolbox/tools_2.4 -j4 all
Tools Directory: C:/Infineon/Tools/ModusToolbox/tools_2.4
CY8CEVAL-062S2.mk: ./libs/TARGET_CY8CEVAL-062S2/CY8CEVAL-062S2.mk
Log file= "C:/temp/device-configurator-cli/device-configurator-cli-20220525.101555.287-4888.log"
Command line= "C:/Infineon/Tools/ModusToolbox/tools_2.4/device-configurator/device-configurator-cli.exe --library ../../mtb_shared/mtb-pdl-cat1/release-v2.4.0/devicesupport.xml ../../mtb_shared/mtb-pdl-cat1/release-v2.4.0/devicesupport.xml --build ./libs/TARGET_CY8CEVAL-062S2/COMPONENT_BSP_DESIGN_MODUS/design.modus --check-mcu=CY8C624ABZI-S2D44 --check-coprocessors= --readonly --skip-build"
Prebuild operations complete
Commencing build operations...
Tools Directory: C:/Infineon/Tools/ModusToolbox/tools_2.4
CY8CEVAL-062S2.mk: ./libs/TARGET_CY8CEVAL-062S2/CY8CEVAL-062S2.mk
Initializing build: mtb-example-psoc6-mcuboot-basic-blinky Debug CY8CEVAL-062S2 GCC_ARM
Auto-discovery in progress...
-> Found 223 .c file(s)
-> Found 46 .S file(s)
-> Found 22 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 6 .a file(s)
-> Found 581 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete
Constructing build rules...
Build rules construction complete
==============================================================================
= Building application =
==============================================================================
Generating compilation database file...
-> D:/modus/new/MCUboot-Based_Basic_Bootloader/blinky_cm4/build/BOOT/blinky_cm4/compile_commands.json
Compilation database file generation complete
Building 218 file(s)
cp -f ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky.hex ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky_raw.hex; rm -f ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky.hex; C:/Infineon/Tools/ModusToolbox/tools_2.4/gcc/bin/arm-none-eabi-objcopy --change-addresses=0 -O ihex ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky.elf ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky_unsigned.hex; python ../../mtb_shared/mcuboot/v1.7.0-cypress/scripts/imgtool.py sign --header-size 0x400 --pad-header --align 8 -v 1.0.0 -S 0x10000 -M 128 -R 0 -k ../bootloader_cm0p/keys/cypress-test-ec-p256.pem ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky_unsigned.hex ./build/BOOT/blinky_cm4/CY8CEVAL-062S2/Debug/mtb-example-psoc6-mcuboot-basic-blinky.hex;
Traceback (most recent call last):
File "D:\modus\new\mtb_shared\mcuboot\v1.7.0-cypress\scripts\imgtool.py", line 17, in <module>
from imgtool import main
File "D:\modus\new\mtb_shared\mcuboot\v1.7.0-cypress\scripts\imgtool\main.py", line 19, in <module>
import click
ModuleNotFoundError: No module named 'click'
make[1]: *** [../../mtb_shared/core-make/release-v1.9.1/make/core/build.mk:557: CY_BUILD_app_postbuild] Error 1
make: *** [../../mtb_shared/core-make/release-v1.9.1/make/core/main.mk:434: secondstage_build] Error 2
"C:/Infineon/Tools/ModusToolbox/tools_2.4/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.4 CY_IDE_TOOLS_DIR=C:/Infineon/Tools/ModusToolbox/tools_2.4 -j4 all" terminated with exit code 2. Build might be incomplete.
10:16:31 Build Failed. 2 errors, 0 warnings. (took 1m:128ms)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AbhiMin31 ,
To install the 'Click' module in python, open a command prompt and enter the following command:
python -m pip install click
The build will also subsequently ask for other python modules as well and you can install those modules in the same way using the command "python -m pip install <name of module>"
Hope this helps!
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alen,
Thanks for your suggestion, It was really helpful and working fine and the build was successful.
Thanks,
Abinayaviji