.data :
{ data_beg = .; databegsrc = endoftext; *(.data) data_end = .; } >ram AT>flashThis causes however that the value of the symbol will be in the 300xxx range of the address space instead of the 100xxx range. Apparantly the Yagarto linker adds the base value of the segment to the symbol. Therefore the initialisation of the C-variables fails. For the demo it does not seem to be a problem but when using other functions for your own apllications the controller will surely crash. For example my printf hang-up the system. By moving the __data_beg_src__ initialisation to the .text segment the problem is solved:
I tested this with Yagarto 4.6.2 and after modification everything (also printf) works. Does anybody have similar experiences? Robprog : { *(.text) *(.rodata) *(.rodata*) *(.glue_7) *(.glue_7t) } >flash __end_of_text__ = .; __data_beg_src__ = __end_of_text__; .data : { __data_beg__ = .; *(.data) __data_end__ = .; } >ram AT>flash