Forum Discussion
10 Replies
- Altera_Forum
Honored Contributor
You can either find it in the HTML datasheet generated by SOPC builder (in the same folder than the PTF file) or in the IDE itself, in a header file. Go in the syslib -> Debug -> system_description -> system.h
- Altera_Forum
Honored Contributor
The two files: *.html and system.h file can not give a detailed description of each section 's address, such as begining address,end address,section size, ect.
This two files only give the hardware system's address, such as the ddr2 sdram 's address, flash 's address. On this cpu.ptf, i set up several software project, each project has diffrent software size. So the Nios2 should give a file descriping each section 's address. I can not find that file or information.:p - Altera_Forum
Honored Contributor
The information is embedded in the elf file. You can retreive it using a command in the Nios shell. Something like:
nios2-elf-size -Ax my_project.elf - Altera_Forum
Honored Contributor
thanks , i have tried and the address map displayed on the screen.
i found if use software build tools , a *.map file can be generated . this file can also display the address map.:) - Altera_Forum
Honored Contributor
Hello,
I am wondering if there is other way (than the Nios Shell command) to find such file. thanks - Altera_Forum
Honored Contributor
if you are using software build tools design flow, you can find a summary.html in the bsp file folder, it includes the hardware memory assignment. And you can also find a *.map or*.objdump file in the app file folder , it includes the memory assign of the application.
- Altera_Forum
Honored Contributor
I am using the Nios II IDE (v9.0). I can't find such file with the specified extensions neither in the workspace nor in the software folder!
- Altera_Forum
Honored Contributor
i met the same problems as you, so i have to use the software build tools design flow rather than the ide flow.
- Altera_Forum
Honored Contributor
Go to Window > Preferences > Nios II (may not be entirely correct, but you get the point...) and you'll find an option to enable its generation.
- Altera_Forum
Honored Contributor
Do you mean to generate the objdump file? the *.elf.objdump file generated contains a so mixed and confusing information including the assembly code!