Building SAM7S_EK solution

Hello,

I can build the Fez Hydra Solution just fine, deploy it and run it so I am confident I am setup properly,
however I cannot build the SAM7S_EK solution. (using gcc)

I initially had some missing #defines (C:\netmf-open-firmware\Application\TinyBooter\TinyBooter.cpp)
GHI_VERSION_MAJOR version numbers. I fixed that now I am getting a very weird error in the final link
of the TinyBooter: (using gcc compiler)

C:\gcc\bin…\arm-none-eabi\bin\ld.exe : error : no memory region specified for loadable section `SectionForCustomHeapBegin’ [C:\netmf-open-firmware\Solutions\SAM7S_EK\TinyBooter\TinyBooter
.proj]
C:\netmf-open-firmware\tools\targets\Microsoft.SPOT.System.GCC.targets(325,2): error MSB3073: The command ““C:\gcc\bin…\arm-none-eabi\bin\ld.exe” -static --gc-sections --no-warn-mismatch
–library-path=C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\lib --library-path=C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\ANY_MEDIA\release\lib --all
ow-multiple-definition -u ARM_Vectors -u start --Map C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\Tinybooter.map --output=C:\netmf-open-firmware\BuildOutpu
t\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\Tinybooter.axf --script=C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\Tinybooter_scatterfile.ldf C:\netmf-open-f
irmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\obj\Solutions\SAM7S_EK\TinyBooter\Allocator.obj C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\obj\Solu
tions\SAM7S_EK\TinyBooter\TinyBooterEntry.obj -( C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\ANY_MEDIA\release\lib\TinybooterLib.lib C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\l
e\ANY_MEDIA\release\lib\CRC.lib C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\ANY_MEDIA\release\lib\WireProtocol.lib Crypto_stub.lib GlobalLock_hal.lib TinyHal.lib backlight_hal_stubs.
lib batterycharger_hal_stubs.lib batterymeasurement_hal_stubs.lib lcd_hal_stubs.lib cpu_cache_stubs.lib cpu_ebiu_stubs.lib cpu_LCD_stubs.lib cpu_spi_stubs.lib cpu_watchdog_stubs.lib system

initialization_hal_loader.lib asyncproccall_pal.lib blockstorage_pal.lib AT91_BL_EFC.lib Watchdog_pal_stubs.lib Buttons_pal.lib COM_pal.lib DebuggerPort_SSL_config_stubs.lib i2c_pal_stubs.l
ib sockets_pal_stubs.lib config_pal_loader.lib events_pal.lib heap_pal.lib piezo_pal_stubs.lib SimpleHeap.lib SimpleHeap_config.lib tinycrt_pal_loader.lib AT91_AIC.lib AT91_GPIO.lib AT91_Pr
eStackInit.lib AT91_SAM.lib AT91_TIMER.lib AT91_TIME.lib fs_pal_stubs.lib FS_Config_stubs.lib Ink_pal_stubs.lib Gesture_pal_stubs.lib palevent_pal_stubs.lib Time_pal.lib TimeService_pal_stu
bs.lib cpu_mmu_stubs.lib SAM7X_Bootstrap.lib AT91_USB.lib usb_pal.lib usart_pal_stubs.lib cpu_usart_stubs.lib usb_pal_config_AT91SAM7S.lib BlockStorage_AddDevices_SAM7S_EK.lib Sam7S_BL_conf
ig.lib -) -( “C:\gcc\arm-none-eabi\lib\thumb\libm.a” “C:\gcc\arm-none-eabi\lib\thumb\libc.a” “C:\gcc\lib\gcc\arm-none-eabi\4.9.3\thumb\libgcc.a” -) -( C:\netmf-open-firmware\tools\ads_v3_
1\Lib\armlib\h_t.l C:\netmf-open-firmware\tools\ads_v3_1\Lib\armlib\c_t.l -)” exited with code 1. [C:\netmf-open-firmware\Solutions\SAM7S_EK\TinyBooter\TinyBooter.proj]
Done Building Project “C:\netmf-open-firmware\Solutions\SAM7S_EK\TinyBooter\TinyBooter.proj” (cleanbuild target(s)) – FAILED.

When I run the commandline generating the error I get:
It seems it cannot find the input libraries. When I check the --library-path the input libs are there.

C:\netmf-open-firmware>“C:\gcc\bin…\arm-none-eabi\bin\ld.exe” -static --gc-sections --no-warn-mismatch --library-path=C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM
S_EK\lib --library-path=C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\ANY_MEDIA\release\lib --allow-multiple-definition -u ARM_Vectors -u start --Map C:\netmf-open-firmware\BuildOut
ut\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\Tinybooter.map --output=C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\Tinybooter.axf --script=C:\netmf-open-fir
ware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\Tinybooter_scatterfile.ldf C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\obj\Solutions\SAM7S_EK\TinyB
oter\Allocator.obj C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\obj\Solutions\SAM7S_EK\TinyBooter\TinyBooterEntry.obj -( C:\netmf-open-firmware\BuildOutput\THUM
\GCC4.9\le\ANY_MEDIA\release\lib\TinybooterLib.lib C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\ANY_MEDIA\release\lib\CRC.lib C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\ANY_ME
IA\release\lib\WireProtocol.lib Crypto_stub.lib GlobalLock_hal.lib TinyHal.lib backlight_hal_stubs.lib batterycharger_hal_stubs.lib batterymeasurement_hal_stubs.lib lcd_hal_stubs.lib cpu_ca
he_stubs.lib cpu_ebiu_stubs.lib cpu_LCD_stubs.lib cpu_spi_stubs.lib cpu_watchdog_stubs.lib system_initialization_hal_loader.lib asyncproccall_pal.lib blockstorage_pal.lib AT91_BL_EFC.lib Wa
chdog_pal_stubs.lib Buttons_pal.lib COM_pal.lib DebuggerPort_SSL_config_stubs.lib i2c_pal_stubs.lib sockets_pal_stubs.lib config_pal_loader.lib events_pal.lib heap_pal.lib piezo_pal_stubs.l
b SimpleHeap.lib SimpleHeap_config.lib tinycrt_pal_loader.lib AT91_AIC.lib AT91_GPIO.lib AT91_PreStackInit.lib AT91_SAM.lib AT91_TIMER.lib AT91_TIME.lib fs_pal_stubs.lib FS_Config_stubs.lib
Ink_pal_stubs.lib Gesture_pal_stubs.lib palevent_pal_stubs.lib Time_pal.lib TimeService_pal_stubs.lib cpu_mmu_stubs.lib SAM7X_Bootstrap.lib AT91_USB.lib usb_pal.lib usart_pal_stubs.lib cpu

sart_stubs.lib usb_pal_config_AT91SAM7S.lib BlockStorage_AddDevices_SAM7S_EK.lib Sam7S_BL_config.lib -) -( “C:\gcc\arm-none-eabi\lib\thumb\libm.a” “C:\gcc\arm-none-eabi\lib\thumb\libc.a"
C:\gcc\lib\gcc\arm-none-eabi\4.9.3\thumb\libgcc.a” -) -( C:\netmf-open-firmware\tools\ads_v3_1\Lib\armlib\h_t.l C:\netmf-open-firmware\tools\ads_v3_1\Lib\armlib\c_t.l -)
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Crypto_stub.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find GlobalLock_hal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find TinyHal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find backlight_hal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find batterycharger_hal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find batterymeasurement_hal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find lcd_hal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_cache_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_ebiu_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_LCD_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_spi_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_watchdog_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find system_initialization_hal_loader.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find asyncproccall_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find blockstorage_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_BL_EFC.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Watchdog_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Buttons_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find COM_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find DebuggerPort_SSL_config_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find i2c_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find sockets_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find config_pal_loader.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find events_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find heap_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find piezo_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find SimpleHeap.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find SimpleHeap_config.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find tinycrt_pal_loader.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_AIC.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_GPIO.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_PreStackInit.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_SAM.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_TIMER.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_TIME.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find fs_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find FS_Config_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Ink_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Gesture_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find palevent_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Time_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find TimeService_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_mmu_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find SAM7X_Bootstrap.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find AT91_USB.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find usb_pal.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find usart_pal_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find cpu_usart_stubs.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find usb_pal_config_AT91SAM7S.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find BlockStorage_AddDevices_SAM7S_EK.lib: No such file or directory
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: cannot find Sam7S_BL_config.lib: No such file or directory

C:\netmf-open-firmware>

Any Ideas?
Thanks

I am making progress.

Getting this from the linker:
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: C:\netmf-open-firmware\BuildOutput\THUMB\GCC4.9\le\FLASH\release\SAM7S_EK\bin\tinyclr.axf section ER_FLASH' will not fit in regionLR_FLASH’
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: section ER_CONFIG loaded at [0013e000,0013e90b] overlaps section ER_FLASH loaded at [00100000,00149213]
C:\gcc\bin…\arm-none-eabi\bin\ld.exe: region `LR_FLASH’ overflowed by 75748 bytes

while building the SAM7S_EK

thanks

Found this comment in the scatterfile_tinyclr_gcc.xml file:

so am I SOL? unless I go purchase expensive compilers I will not be able to build the SAM7S_EK?