Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 08:12:43 20:12


Login with username, password and session length


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

Posts: 154

Thank You
-Given: 103
-Receive: 188


WWW
« on: June 28, 2014, 06:21:58 18: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
Inactive

Offline Offline

Posts: 1

Thank You
-Given: 0
-Receive: 0


« Reply #1 on: July 09, 2014, 11:10:02 23: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: 154

Thank You
-Given: 103
-Receive: 188


WWW
« Reply #2 on: July 10, 2014, 06:22:40 06: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
Active Member
***
Offline Offline

Posts: 120

Thank You
-Given: 90
-Receive: 83



« Reply #3 on: July 10, 2014, 07:01:44 07: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: 12

Thank You
-Given: 9
-Receive: 1


« Reply #4 on: July 30, 2014, 11:42:14 11: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