Quantcast
Viewing all articles
Browse latest Browse all 36216

Re: GNU baremetal toolchain with BF506F

Hello again.

 

My application doesn't run in the debugger because the static variables (global or included in functions) aren't initialized to planned values, i.e. in the expression:

static unsigned char ucHeapAmount = 0x800; the "0x800" value is ignored. In the map file I can see that these variables are stored in the .bss section instead in the .data section.

Anybody knows why?. My linker script related to both sections says:

 

.data :

    {

   *(.data)
   SORT(CONSTRUCTORS)

    } >MEM_L1_DATA_A

    __edata = .; PROVIDE (_edata = .);

    .bss :

    {

   __bss_start = .;
   *(.bss)
   *(COMMON)
   . = ALIGN(. != 0 ? 32 / 8 : 1);
   __bss_end = .;

    } >MEM_L1_DATA_A

 

Best regards,

Bonifacio


Viewing all articles
Browse latest Browse all 36216

Trending Articles