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.

LAUNCHXL-F28379D: Memory location for global variable

Part Number: LAUNCHXL-F28379D

For F28379D, 1) if I define any global variables then in which memory location it will store and 2) location address could be 16 bit or 32 bit long or only 16-bit address for the global variable?

Regards,
Jay 

  • Actually, I want to access the address of any global variable of the project, so I have created a 32-bit pointer but even if I am assigning the right address of any variable to a pointer(ptr), when I am accessing the value(*ptr) of that pointer variable some garbage value is coming.

    Please help me to solve this.

    Regards,
    Jay

  • Jay,

    I've assigned your post to one of our team members, please expect a reply by tomm, 2/22 as we are out of the office for the President's Day holiday in the US today the 21st.

    Best,

    Matthew

  • Hi Jay,

    The global variables are part of .bss/.data section. (.ebss for uninitialized globals, .data for initialized globals). You can specofiy which memroy location to use for these sections in the linker cmd file.

    Eg:

    .bss : > RAMLS4
    .data  : > RAMLS4
    If you would like to know exactly which address location is allocated to the global, you can refer to the .map file.
    Regards,
    Veena