Add memory size info linker flag

replace/9d5a9f7f7f1f2b7416d1dde85a40426dc64c31f1
Niccolò Izzo 2020-11-27 12:23:59 +01:00
rodzic bf24c31be7
commit 3310b5f730
1 zmienionych plików z 18 dodań i 15 usunięć

Wyświetl plik

@ -231,17 +231,20 @@ linux_opts = {'sources': linux_src,
md380_opts = {'sources': md380_src,
'c_args': md380_args,
'link_args' : '-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'link_args' : ['-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'-Wl,--print-memory-usage'],
'include_directories': md380_inc}
md390_opts = {'sources': md390_src,
'c_args': md390_args,
'link_args' : '-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'link_args' : ['-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'-Wl,--print-memory-usage'],
'include_directories': md390_inc}
mduv380_opts = {'sources': mduv380_src,
'c_args': mduv380_args,
'link_args' : '-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'link_args' : ['-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'-Wl,--print-memory-usage'],
'include_directories': mduv380_inc}
##
@ -288,18 +291,18 @@ foreach t : targets
input : exe,
command : [objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@'])
wrap = custom_target(name+'_wrap',
output : name+'_wrap',
input : bin,
command : [radio_tool,
'--wrap',
'-o', '@OUTPUT@',
'-r', t['wrap'],
'-s', t['load_addr']+':@INPUT@'])
wrap = custom_target(name+'_wrap',
output : name+'_wrap',
input : bin,
command : [radio_tool,
'--wrap',
'-o', '@OUTPUT@',
'-r', t['wrap'],
'-s', t['load_addr']+':@INPUT@'])
custom_target(name+'_flash',
input : wrap,
output : name+'_flash',
command : [radio_tool, '-d', '0', '-f', '-i', '@INPUT@'])
custom_target(name+'_flash',
input : wrap,
output : name+'_flash',
command : [radio_tool, '-d', '0', '-f', '-i', '@INPUT@'])
endif
endforeach