-
-
Save rajivr/8f773c7d057c19393bffc0f0354bc6ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elf2tbf --verbose "target/tbf/"app"/cortex-m4.elf" "target/tbf/"app"/"app".tbf" --arch ARMv7M --heap_mem_size 2048 --kernel_mem_size 2048 --package_name app --pam_start_addr 0x20010000 --tbf_header_addr 0x08040000 | |
Opt { | |
arch: ARMv7M, | |
tbf_header_addr: 134479872, | |
pam_start_addr: 536936448, | |
heap_mem_size: 2048, | |
kernel_mem_size: 2048, | |
package_name: "app", | |
verbose: true, | |
input: "target/tbf/app/cortex-m4.elf", | |
output: "target/tbf/app/app.tbf", | |
} | |
Program entry point address found at 0x8040081 | |
initial mpu flash region size = 0x56bc | |
final mpu flash region size after power of two adjustment = 0x8000 | |
initial mpu sram region size = 0x14b8 | |
final mpu sram region size after power of two adjustment = 0x2000 | |
TbfHeader.base | |
version: 2 0x2 | |
header_size: 80 0x50 | |
total_size: 32768 0x8000 | |
flags: 0 0x0 | |
TbfHeader.main | |
base: TbfHeaderTlv { tipe: AosMain, length: 28 } | |
entry_point_addr: 134480001 0x8040081 | |
heap_mem_size: 2048 0x800 | |
kernel_mem_size: 2048 0x800 | |
text_section_size: 21540 0x5424 | |
stack_section_size: 2048 0x800 | |
data_section_size: 536 0x218 | |
bss_section_size: 672 0x2A0 | |
TbfHeader.package_name | |
base: TbfHeaderTlv { tipe: AosPackageName, length: 3 } | |
name: app | |
padding: 1 0x1 | |
TbfHeader.mpu_region_flash | |
base: TbfHeaderTlv { tipe: AosMpuRegionFlash, length: 8 } | |
start_address: 134479872 0x8040000 | |
size: 32768 0x8000 | |
TbfHeader.mpu_region_sram | |
base: TbfHeaderTlv { tipe: AosMpuRegionSram, length: 8 } | |
start_address: 536936448 0x20010000 | |
size: 8192 0x2000 | |
TBF_HEADER_BLOCK size: 128 | |
Calculated header padding: 48 | |
Calculated ELF section data (i.e., .text and .data binary blob): 22076 | |
Calculated ELF section padding: 10564 | |
Total package size: 32768 | |
cp target/thumbv7em-none-eabi/debug/app target/thumbv7em-none-eabi/debug/app.elf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment