Flowcode application compiled into bootloader memory area – how to shift start address correctly?
Posted: Wed Feb 11, 2026 11:53 am
Hello Ben,
I have created a bootloader for my dsPIC33EP128GM604 using the Microchip IDE. It works, and I can flash an application that was also created with MPLAB using the UBHA tool over UART.
My problem: How can I correctly compile a Flowcode application so that the addresses are shifted to the correct start address? I have already modified the linker script as follows:
reset : ORIGIN = 0x2000, LENGTH = 0x4
ivt : ORIGIN = 0x2004, LENGTH = 0x1FC
program (xr) : ORIGIN = 0x2200, LENGTH = 0x151EC
However, the resulting .hex file still contains data in the bootloader area when I compile with Flowcode. Unfortunately, I am getting a bit desperate. Do you have any tips on how to correctly set the address offset in Flowcode?
Many thanks in advance.
Daniel
I have created a bootloader for my dsPIC33EP128GM604 using the Microchip IDE. It works, and I can flash an application that was also created with MPLAB using the UBHA tool over UART.
My problem: How can I correctly compile a Flowcode application so that the addresses are shifted to the correct start address? I have already modified the linker script as follows:
reset : ORIGIN = 0x2000, LENGTH = 0x4
ivt : ORIGIN = 0x2004, LENGTH = 0x1FC
program (xr) : ORIGIN = 0x2200, LENGTH = 0x151EC
However, the resulting .hex file still contains data in the bootloader area when I compile with Flowcode. Unfortunately, I am getting a bit desperate. Do you have any tips on how to correctly set the address offset in Flowcode?
Many thanks in advance.
Daniel