This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using #ifdef in scatter file in ARM compiler v6

Hi,

I am porting an application from ARM compiler V5 to ARM Compiler V6.0. I have been able to compile the application.While linking there is an issue, we are having #ifdev REV1 in thr scatter file, which is working properly in ARM Compiler V5, but the same is not working in ARM Compiler 6. Ihave done --predefine=-DREV1 while linking, but i got the below error

Error: L6229E: Scatter description C:/Projects/Xnxx/Code/SDK_ARM-V6-Final/xxxxyyy/memory_map.scat is empty.
Error: L6372E: Image needs at least one load region.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 4 warning and 2 error messages.


The scat file shall look like

#ifdef REV1

LR_DATA_RAM 0x20000000 NOCOMPRESS 0x39F00 {
ER_DATA_RAM 0x20000000 {
* (+RW, +ZI)
}
BSP_SERVICE_OUTPUT 0x20039F00 EMPTY 0x100 {
}
ARM_LIB_HEAP 0x2003A000 EMPTY 0x4000 {
}
ARM_LIB_STACK 0x2003E000 FILL 0xDEADBEEF 0x2000 {
}
}

}

#else

LR_DATA_RAM 0x20000000 NOCOMPRESS 0x35F00 {
ER_DATA_RAM 0x20000000 {
* (+RW, +ZI)
}
ARM_LIB_HEAP 0x20035F00 EMPTY 0x4000 {
}
BSP_SERVICE_OUTPUT 0x20039F00 EMPTY 0x100 {
}
ARM_LIB_STACK 0x2003A000 EMPTY 0x1FE0 {
}
}

#endif

Has anyone faced this issue earlier? Could anyone suggest how to overcome this issue?

Regards,

Santhosh

Parents Reply Children