Enabling external memory in AS6.2

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Freaks,

 

I am trying to setup up the external memory in AS6.2. AS5.0 had an

obvious page in the BUILD-CONFIGURATION menu.

 

How do I assign external memory in AS6.2.

 

Thank you,

 

A.

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Assign it to what and for what purpose?

 

Can we assume you are using avr-gcc? if so this page in the manual talks about the use of external memory:

 

http://www.nongnu.org/avr-libc/u...

 

So are you talking about code to enable external (that is messing EXTMEM or whatever) that needs to go into .init1 or similar?

 

Or are you talking about putting .bss or .data or the heap or the stack into it?

 

Or are you simply talking about initialising a uint8_t * pointer to point into the region where it's located so you can just treat it as one big array (possibly the easiest use of it in fact)?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cliff,

 

Sorry about the ambiguity.

 

In previous versions of AS, I had to set SRAM .data 0x8000.

When setting this in AS5 it was done PROJECT->PROPERTIES window.

 

I cannot find this form or anything similar in AS62. All I am try to do

is let the compiler know to use the external memory instead of internal

memory using AS62.

 

Thanks,

 

A.

 

 

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AS6 has a "memories" section - I think it's under "linker" in the Project settings.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cliff,

 

I have looked through every menu. This is the spot where I have found the

memory configuration on previous versions, but it does not appear as expected.

 

 

Am I missing something?

 

A.

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cliff,

 

I have located the section where the external data is set. The reason I was

looking for this initially is that I was being flagged for exceed the data memory

space.

 

 

The error is as follows:

 

 

This has is not a problem when compiling on previous versions of AS.

 

Should I start another thread?

 

Thank you for your assistance.

 

A.

 

 

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Down two to "Toolchain". Within that there are various sections:

 

http://www.atmel.com/webdoc/atme...

 

 

Under "AVR/GNU Linker" you should see "Memory Settings".

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cliff,

 

I have set this as shown above. I still get the error unless

I enable the external RAM check as shown below.

 

I am assuming that this flag should be set for projects using

external RAM.

 

Please correct me if I am wrong.

 

Thanks again,

 

A.

 

 

 

 

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA