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.

PROCESSOR-SDK-AM64X: boot loader question, .load data section

Part Number: PROCESSOR-SDK-AM64X

Tool/software:

Hi,

I am running am64x dev board without os.   

TMDS64EVM


I am using   C:\ti\mcu_plus_sdk_am64x_09_01_00_41   ospi boot.

question, during the boot,  SBL is definitely loading .data section, .bss section.

would you like to point me where the detail of this piece of code is?  in assembly or in C.

Thanks

  • I saw in boot_arm7r.c

    (void) memset((void*)&__BSS_START, 0x00, bss_size);

    but how about .data section
  • Hi Jun Tu,

    .data section doesn't manually have to be initialized, as the compiler and linker automatically place the initialized variable in your code in the .data section.

    .bss section is initialized with zeros, as all the uninitialized variables in your code go to .bss section and their value is initialized to zero. To ensure this, the init code is initializing the .bss section with all zeros.

    Best regards,

    Meet.