I am trying to use the sample example code “ek-lm3s2965 - boot_serial” ,when I tried to compile the code for “Stellaris LM3S2965” as a target board and profile setting as “ ROM” in Code Sourcery G++ IDE

I am getting these error message

 

c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: __cs3_region_start_ram not aligned

' '

c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: __cs3_region_init_size_ram not aligned

'Building target: boot_serial.axf'

c:/program files/codesourcery/sourcery g++/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: section .rodata loaded at [00000000,00000037] overlaps section .text loaded at [00000000,0000072f]

 

And when i am using the sample example  code “ek-lm3s2965 - boot_serial” ,when I tried to compile the code for “Stellaris LM3S2965” as a target board and profile setting as “ RAM” in Code Sourcery G++ IDE

I am getting these error message

 

'Building target: boot_serial.axf'

'Invoking: Sourcery G++ C Linker'

arm-none-eabi-gcc -L"C:\TESTING BOOT LOADER\ek-lm3s2965 - boot_serial\boards\ek-lm3s2965\boot_serial" -L"C:\TESTING BOOT LOADER\ek-lm3s2965 - boot_serial\boot_loader" -mthumb -mcpu=cortex-m3 -Wl,--gc-sections -Xlinker -Map="boot_serial.map" -T lm3s2965-rom.ld -mcpu=cortex-m3 -mthumb -T bl_link.ld -o"boot_serial.axf" "@objs.rsp" "@user_objs.rsp" "@libs.rsp"

/opt/codesourcery/arm-none-eabi/lib/src/start_c.c:87: undefined reference to `main'

collect2: ld returned 1 exit status

cs-make: *** [boot_serial.axf] Error 1

 

 

Please let me know what I am missing any setting or is there any way to debug this problem?