[ATMega168 WinAVR] Huge const arrays and RAM size

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

Is it possible to use VERY LARGE const char (or int) arrays (much larger than the RAM size) WITHOUT uploading them to RAM? How must I define them?

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

Where do you expect the array to be stored then? Define VERY LARGE.

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

I expect it to be stored in the flash memory. It will be about 4..6 K bytes.

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

Quote:
I expect it to be stored in the flash memory.
So why are you not storing them there? Have you looked at progmem tutorial in the tutorial forum?
Quote:
GCC and the PROGMEM Attribute

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Thank you very much, it's exactly what I need.