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.
AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.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:
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)?
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.
AS6 has a "memories" section - I think it's under "linker" in the Project settings.
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?
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
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.
Down two to "Toolchain". Within that there are various sections:
Under "AVR/GNU Linker" you should see "Memory Settings".
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
Please correct me if I am wrong.
© 2018 Microchip Technology Inc.