Hi,
I'm trying to modify the linker file produced by Halcogen, but the only way I know of to get what I need is to modify the halcogen code as opposed to putting my code inside of a user code block. This means that any time I re-generate halcogen code it gets written over.
Is there any way to add my own user section, or perhaps another way I can modify the linker to get the same result?
Halcogen produced code is:
/* Section Configuration */
SECTIONS
{
.intvecs : {} > VECTORS
.text : {} > FLASH0 | FLASH1
.const : {} > FLASH0 | FLASH1
.cinit : {} > FLASH0 | FLASH1
.pinit : {} > FLASH0 | FLASH1
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM
}
/* USER CODE BEGIN (5) */
/* USER CODE END */
But what I want to do is:
/* Section Configuration */
SECTIONS
{
.intvecs : START( ulFlashStartAddr ) {} > VECTORS
.text : {} > FLASH0 | FLASH1
.const : END( ulFlashEndAddr ) {} > FLASH0 | FLASH1
.cinit : {} > FLASH0 | FLASH1
.pinit : {} > FLASH0 | FLASH1
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM
}
/* USER CODE BEGIN (5) */
/* USER CODE END */
Thanks