You can't execute the code from ROM. You need to make a segment in RAM to where you copy the code. Check which addresses the routines will get i RAM, and the make asm command "asm jsr FLASH_ERASE_START;" for instance, where you have #define FLASH_ERASE_START 0x100, or whichever address you link to.
Håkan