Exteral memory and compilier setup.

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

How do I setup the AVR/GNU linker to recognize external

RAM and RAM size? Micro is Atmega1280 with 32k on the

external bus.

 

I am moving some projects from AS6 to AS7 and I

am being flagged for program memory usage. In

particular Data memory.

 

The code compiles and runs without errors in AS6.

 

Thanks in advance.

 

A.

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

https://www.nongnu.org/avr-libc/...

 

To be honest I don't know what you mean by "being flagged"? Do you mean the requirement for "const" on PROGMEM and __flash? 

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

I dare say he means the build reports that he has overflowed the data memory. How does he tell AS7 that he has extra data memory?

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


Cliff,

 

I get a a specific warning. ( See below. )

 

No errors for "const". Seems I ran into this years ago. When I first wrote the code. I

just don't recall whats required to to correct the problem.

 

The compiler just doesn't know about the external memory.

 

Thanks,

A.

 

Attachment(s): 

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

There should be a checkbox somewhere in the project properties for that...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

Thanks,

 

This was the first thing I thought of. If its there, I can't locate it. Doesn't mean

its not there though. crying

 

A.

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


The only check box I have found that could be related is found in the Common/General sub menu. I have

tried compiling with this selected and deselected. No change.

 

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


In AS6, deselection of this flag removes the memory error warning. In AS7

the error still appears whether the check box is selected or not.

 

Any ideas?

 

 

 

Thanks,

 

A.

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

Nevermind, I see now that is AS6 you had external memory already.

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

Last Edited: Sun. Mar 15, 2020 - 03:54 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Brian,

 

Thanks for the feedback.

 

The code compiles and runs in AS6 only if the external memory check is selected. Otherwise,

it indicates the same error.

 

This is an ongoing project that has migrated from AS4, through AS6, without issues. It requires

all of the memory currently in use and always has. ( Migration to AS7 is the only change recently made. )

 

From what I can tell, the problem appears to be that in my installation of AS7, selection of the check for

external memory check box has no effect.

 

Any ideas?

 

Thanks,

 

A.