Hallo all,
I am using VisualGDB for ARM embedded project. I have a problem to define a symbol for linker file.
I have the following line in my .ld file:
M_VECTOR_RAM_SIZE = DEFINED(__flash_vector_table__) ? 0x0 : 0x0400;
I need to define __flash_vector_table__ to be evaluated by linker to set M_VECTOR_RAM_SIZE = 0x0.
I tried to define it in main.c
#define __flash_vector_table__
I tried to define it in VisualGDB project properties and also in Visual Studio properties.
But the generated map file still shows
0x00000400 M_VECTOR_RAM_SIZE = DEFINED (__flash_vector_table__)?0x0:0x400
It means that the symbol __flash_vector_table__ was not defined during linking.
Please can anybody help me to define symbol to be considered in .ld file??
Thanks,
Libor