Arduino IDE Bug Checked on 1.8.12
in attachment
Bug.ino (1.04 KB)
Please provide a detailed description of the problem.
pert:
Please provide a detailed description of the problem.
i'am writing it now ...
pert:
Please provide a detailed description of the problem.
#define VAL_COUNT_MAX 4
#define VAL_WORDS 6
const int VALS[] PROGMEM = {
0x20DF, 0x08F7, 0x8877, 0x48B7, 0xC837, 0x28D7
,0x4040, 0x00FF, 0x807F, 0x40BF, 0xC03F, 0x20DF
,0x0101, 0x7887, 0xC03F, 0xC837, 0xD827, 0x20DF
,0x807F, 0x708F, 0x807F, 0x40BF, 0x609F, 0x20DF // Please Comment it when Use VAL_COUNT_MAX = 3 !!! <<<<<<<<<
};
first, sorry for bad english,
Environment: Arduino Uno
BUG is in calculating Used Space of flash memory (32k)
PROGMEM used for int array.
Array is 4 Groups of (6 ints).
3)VAL_COUNT_MAX is the groups count.
using this data in the program.
when set VAL_COUNT_MAX = 4 and use the all values in array above Sketch uses 1392 bytes.
when set VAL_COUNT_MAX = 3 and use only 3 rows in the array Sketch uses 1426 bytes !!!
in 6 i expect Sketch uses 1392-12 bytes why it uses 1426 bytes?? is it BUG ??
thanks for support.