Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Accessing memory sections from software.

Altera_Forum
Honored Contributor II
1,104 Views

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.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
379 Views

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).
0 Kudos
Altera_Forum
Honored Contributor II
379 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
379 Views

I see. I am not aware of such feature available.

0 Kudos
Reply