Tool/software:
I have a small section that is not 100% used but I need it filled. I enabled fill by setting default fill to 0xAA
and as you can see below no change. Looking at the hex util output also no evidence of fill. what am I missing?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
I have a small section that is not 100% used but I need it filled. I enabled fill by setting default fill to 0xAA
and as you can see below no change. Looking at the hex util output also no evidence of fill. what am I missing?
I tried method in this post
and it works. in screenshot below 0xAA is fill
So I am reporting a bug because this does NOT work. I do see -Wl,--fill_value=0xAA added to command line but DOES NOT WORK.
if I remove the "FILL = 0xAAAAAAAA" from the linker script and leave the -Wl,--fill_value=0xAA fill value in the linker settings I get this
also tried -Wl,--fill_value=0xAAAAAAAA, no change. Please confirm bug exists. See below for complete linker command line.
"C:/ti/ccs2002/ccs/tools/compiler/ti-cgt-armllvm_4.0.1.LTS/bin/tiarmclang.exe" @"device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -DDEBUG -DBUILD_NAME=\"Debug\" -gdwarf-3 -Wl,-m"S100.map" -Wl,-i"C:/ti/mspm0_sdk_2_01_00_03/source" -Wl,-i"C:/Users/chris/Documents/GitHub/OmniSense/SW/S100" -Wl,-i"C:/Users/chris/Documents/GitHub/OmniSense/SW/S100/Debug/syscfg" -Wl,-i"C:/ti/ccs2002/ccs/tools/compiler/ti-cgt-armllvm_4.0.1.LTS/lib" -Wl,--define=FLASH_START=FLASH_LOW -Wl,--define=INTVECS_START=FLASH_INTVECS -Wl,--define=OS_TEXT=OS_TEXT_LOW -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="S100_linkInfo.xml" -Wl,--fill_value=0xAAAAAAAA -Wl,--rom_model -o "S100.out" "./ti_msp_dl_config.o" "./startup_mspm0g350x_ticlang.o" "./src/S100.o" "./src/adc_controller.o" "./src/buffers.o" "./src/ext_flash_controller.o" "./src/flash_controller.o" "./src/iic_controller.o" "./src/init.o" "./src/io_controller.o" "./src/queue_controller.o" "./src/radio_controller.o" "./src/spi_controller.o" "./src/timer_controller.o" "./src/uart_controller.o" "./src/upload_controller.o" "../device_linker.cmd" -Wl,-ldevice.cmd.genlibs -Wl,-llibc.a
Hi Chris,
also tried -Wl,--fill_value=0xAAAAAAAA, no change. Please confirm bug exists. See below for complete linker command line.
That is wired. I used to think this should work.
I will do a test based on your findings.
B.R.
Sal
Hi Chris,
See the description in the compiler documents:
It only valid in image mode, while in image mode, you requires the ROMS to enable it.
You can find more documents from the product page: https://www.ti.com/tool/ARM-CGT
B.R.
Sal