I am building an application using PSoC Creator v4.2, and I would like to change the commands that run during the build process.
I am building a bootloader and bootloadable applications, and I have customized these applications to have different start adresses than the original start address (I want them to be in different addresses in the memory of my device).
Whenever I am building the bootloadable software, these commands run one after the other:
- Create the design
- Compile the code
- Create <bootloadable>_1.elf
- Create <bootloadable>_1.hex (using cyelftool -B)
- Create <bootloadable>_2.elf
- Create <bootloadable>_2.hex (using cyelftool -B)
- Merge bootlaodable application into <bootloadable>.hex (using cyelftool -M)
One of my applications is larger than half the memory of my device. To make both versions of this application to compile, I changed the start location of the second application (<bootloadable>_2.hex) to start in the start as well (because I don't use this version of the application, so I don't care about the output of this command). But, the last command in my build failes and I have no idea how to avoid it.
After the build finishes (with its errors), I take the output elf file from the first application <bootloadable>_1.elf and merge it with my second bootloadable using cyelftool, the output hex file works as expected on my device.
Is there any way to customize the build, and make it run only a subset of the commands it is currently running? (hopefully, I would be able to remove stages 5-7 from the build, because I don't use the output created from these commands, and they make my build fail).
If not, does anyone has an idea as to how to make the last stage pass the compilation (so the build won't fail)?
I am attaching the project with the bootloader and the bootloadables, the application that fails the build is "second_dummy_application".
I have moved over all the build settings and couldn't find anything that could help me solve this problem.
I have also tried building the code from the command line, but the same failure happen there as well.
I went farther and grepped for the string of "cyelftool" in all the project, but couldn't find any relevant reference.
Any help will be greatly appriciated,
custom_build.tar.gz 3.5 MB