Tool/software: Starterware
Hello,
I am trying to build the bootloader bootloader_boot_mcspi_a8host_release_ti.bin using the given project at "C:\ti\pdk_am335x_1_0_5\packages\ti\starterware\bootloader\ccs".
I imported all the dependent projects and built the libboard_boot.a, libsoc_boot.a and libdal.a as it was not able to find these libraries. I was getting an error during linking
"section `.stack' will not fit in region `OCMCRAM' region `OCMCRAM' overflowed by 42xxx bytes. Then I reduced the STACKSIZE under GNU Linker->Symbols to 0xC000.
This solved the build problem but it is generating a bootloader image of 1gb which is not correct.
Also the "bootloader_boot_mcspi_a8host_release.out" file is 177kb in size as compared 51kb (compared from C:\ti\pdk_am335x_1_0_5\packages\ti\starterware\binary\bootloader\bin\am335x-evm\gcc).
I checked the user guide on building bootloader but it is not specific about the configuration. E.g. it says "Set build configuration for dependant projects as "FixedPoint". Libraries generated with other configurations won't link with bootloader application because of "Floating Point suppport" mismatch." What does it mean? Where do I need to change this?
GNU compiler flags set:
-mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -mfpu=neon -mlong-calls -DBOOT_MCSPI -DAM335X_FAMILY_BUILD -Dam3359 -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -I"../../src/am335x/" -I"../../include/" -I"../../../examples/gpio/" -I"../../../include/" -I"../../../include/am335x/" -I"../../../include/utils/" -I"../../../include/hw/" -I"../../../device/" -O2 -funsigned-char -ffunction-sections -fdata-sections -Wall
GNU linker flags set:
-mcpu=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -mfpu=neon -DBOOT_MCSPI -DAM335X_FAMILY_BUILD -Dam3359 -O2 -funsigned-char -ffunction-sections -fdata-sections -Wall -Wl,-Map,"../../../binary/bootloader/bin/am335x-evm/ccs/bootloader_boot_mcspi_a8host_release.map" --entry Entry -Wl,--gc-sections -L"../../../binary/dal/lib/am335x-evm/a8/ccs/am335x_release/" -L"../../../binary/device/lib/am335x-evm/a8/ccs/am335x_release/" -L"../../../binary/board/lib/am335x-evm/a8/ccs/am335x_boot_release/" -L"../../../binary/utils/lib/am335x-evm/a8/ccs/am335x_release/" -L"../../../binary/soc/lib/am335x-evm/a8/ccs/am335x_boot_release/" -Wl,--defsym,STACKSIZE=0xC000 -Wl,--defsym,HEAPSIZE=0x400
These are my settings for building the bootloader.
Can someone please share the process on how to build the bootloader?