Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Accessing memory sections from software.

Is there a way to access the beginning and end of the memory sections from within the software? For example, I need to know where the .text section begins and ends so that I can calculate a checksum but I don't want to hardcode it.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I am not sure if you are looking for this but please take a look into .objdump file generated in the software folder (same directory with .elf file).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Right, I'm aware of the .objdump file. What I'm wanting is something that will give me the beginning/end addresses of sections while I'm still working on the code. Until I'm finished coding and testing, I really don't want to hardcode it and change it every time I add or take away code.