Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 01:45:51 13:45


Login with username, password and session length


Pages: [1]
Print
Author Topic: Interfacing External SRAM with ATmega128?  (Read 3804 times)
0 Members and 1 Guest are viewing this topic.
xpress_embedo
Active Member
***
Offline Offline

Posts: 173

Thank You
-Given: 122
-Receive: 254


« on: June 28, 2014, 05:21:58 17:21 »

Hello!! Everyone!!
I want to interface External SRAM with ATmega128 Micro-controller, after searching on internet i found this link.
http://www.scienceprog.com/adding-external-memory-to-atmega128/

I want to achieve the same thing, but the problem is that i don't know how to change linker setting in AVR Studio 5.1.
It is written in the link to add this in Linker Option
-Wl,--section-start,.data=0x801100,--defsym=__heap_end=0x8030ff

But i did not get where to change this.


Logged
schisanoa
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 3
-Receive: 5


« Reply #1 on: July 09, 2014, 10:10:02 22:10 »

If I understand you are looking for the location of the linker option menu, right? If yes it should be under the project option menu. Or try with menu Project -> properties, toolchain, AVR/GNU linker, miscellaneous.

Logged
xpress_embedo
Active Member
***
Offline Offline

Posts: 173

Thank You
-Given: 122
-Receive: 254


« Reply #2 on: July 10, 2014, 05:22:40 05:22 »

I know where is the linker option is available, it present in
Project->Project Properties

After that select AVR/GNU C Linker

But i dont know how to modify it to use external sram.
If someone can upload the snapshot of this process, it will help me alot.
Logged
h0nk
Senior Member
****
Offline Offline

Posts: 256

Thank You
-Given: 208
-Receive: 230



« Reply #3 on: July 10, 2014, 06:01:44 06:01 »

Hello xpress_embedo,

if the options are flagged with a: -Wl as Your example, they are used in the context of the
compiler driver. So You must add them to the compiler options (and not as expected
to the linker options.)

Best Regards
Logged
krishna.velu
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 10
-Receive: 1


« Reply #4 on: July 30, 2014, 10:42:14 10:42 »

if the options are flagged with a: -Wl as Your example, they are used in the context of the
compiler driver. So You must add them to the compiler options (and not as expected
to the linker options.)

"gcc" is a compiler.
"ld" is a linker, in the GCC world.

-Wl says the gcc compiler to pass the following option to the linker. The thing is you can call the linker through the compiler indirectly.

So when you invoke "gcc main.o" this will compile & link (internally calls ld also) will give the final executable.
If you call gcc with option -C it will just compile wont link. So if you want to pass a flag to linker ld through compiler you should use -Wl

example
gcc main.o -Wl,lgcc
In this lgcc will be passed on to linker saying that linker to use the library "gcc" (here gcc is library libgcc.a not the compiler "gcc.exe"  Cool Tongue)

@xpress_embedo if you explain the whole process or all the compiler/linker options you use, then I can help you.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC