Timeline for How is a 41KB char array filling up 256KB of program memory?
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 19, 2016 at 19:42 | vote | accept | yigiped | ||
| May 23, 2016 at 16:06 | history | tweeted | twitter.com/StackArduino/status/734777502632185858 | ||
| May 22, 2016 at 4:30 | history | edited | yigiped | CC BY-SA 3.0 |
deleted 3 characters in body
|
| May 21, 2016 at 23:54 | comment | added | Chris Stratton | Chances are the AVR architecture is not the right choice for your application. There are plenty of 32-bit ARM parts with 32-bit ints permitting ordinary data pointers to flash offered at lower prices than an AVR with 256KB of flash. | |
| May 21, 2016 at 23:20 | answer | added | Darko | timeline score: 1 | |
| May 21, 2016 at 20:14 | answer | added | Majenko | timeline score: 3 | |
| May 21, 2016 at 20:09 | comment | added | Majenko | 00000108 l O .text 00007fff _ZL5Array | |
| May 21, 2016 at 20:09 | comment | added | yigiped | I will try that. I will update when I have done that. It won't be until later today or Monday though. It is a shame they are limited to 32K when there is so much program memory. | |
| May 21, 2016 at 20:08 | comment | added | Majenko | I have just proved that in experimentation. 32767 is the limit for a progmem array. | |
| May 21, 2016 at 20:05 | comment | added | jfpoilpret | It seems AVR GCC limits the size of variables to 32K. Did you try with an array of 32767 chars, I guess it should work. If you try with 32768 chars, then it should show the error message. | |
| May 21, 2016 at 19:51 | comment | added | yigiped |
The error message is: error: size of variable 'Array' is too large
|
|
| May 21, 2016 at 19:51 | comment | added | yigiped |
I included <avr/pgmspace.h> (that part of my question didn't display as I expected).
|
|
| May 21, 2016 at 19:50 | review | First posts | |||
| May 22, 2016 at 10:26 | |||||
| May 21, 2016 at 19:49 | comment | added | Ignacio Vazquez-Abrams | What is the exact error message? | |
| May 21, 2016 at 19:47 | history | asked | yigiped | CC BY-SA 3.0 |