Use external RAM to store varibles

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

Is it possible to configure atmel studio to use external ram on AVRs that don't support external RAM by hardware? Something like you write code that writes to and reads from external parallel or SPI ram and when you create variables then atmel studio uses that code instead of writing to internal SRAM. The speed doesn't really matter.

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

No, you'd have to implement a suitable interface.

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

clawson wrote:
No, you'd have to implement a suitable interface.

Keil has this for the 8051.

 

I think implementing it would require you to delve into the innards of the compiler (and Linker?)  - maybe along the lines of __flash or __eeprom ... ?

 

https://gcc.gnu.org/wiki/avr-gcc#Address_Spaces

 

http://nongnu.org/avr-libc/user-manual/group__avr__eeprom.html

 

​But, in this day & age, why not simply choose a ship which has adequate memory for your application?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...