Welcome in the forum, Thomas!
As a pure guess, the bootloader project's output files are not in the original place any more. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file. Which Creator version are you using?
This sounds as if your program might be too large. When it builds without your changes, what size is reported?
I use Creator 3.3. I've attached the minimal Bundle. While archiving the workspace it said that the "C:\...\ARM_GCC_493\Debug\PSoC_STM_Modell Prototype.hex" is missing. But that I knew allready.
Can't build the old code anymore.
You need a valid BootLoader project but you selected the .elf and .hex file of your (BootLoadable) project. This will not do what you want and will not fit into flash.
Best is to copy the bootloader example project folder to your project folder and add it to your workspace. Make sure, both projects are for the same device or you'll get an(other) error. Then use the .elf-file from the newly compiled BootLoader project files for the dependencies.
You are using an abs() function which is made for ints, I frequently use
#define abs(x) (x>=0?x:-x)
I would put into the initialization part a CyGlobalIntEnable to have internal needed interrupts enabled, too.
- copied the folder SCB_Bootloader (freshly downloaded from the cypress-website) into my project
- opened my project
- added the UART_Bootloader Project (CY8C4125AXI483) to my workspace
- built the project "UART_Bootloader"
- connected the bootloadable of my project via the dependencies-tab to UART_Bootloader.cydsn\CortexM0\ARM_GCC_493\Debug\UART_Bootloader.hex
- (the UART_Bootloader.elf dependency has afterwards been found by the creator software)
- built my project and downloaded it via the Bootloader host...
and it worked.
#define abs(x) (x>=0?x:-x) : does it override the abs()-function of the library? Isn't this a kind of reserved name?
"#define abs(x) (x>=0?x:-x) : does it override the abs()-function of the library? "