[an error occurred while processing this directive]
|
И я проверил, обрати внимание на выделенные строки.
#define PGM_P const char __flash *
strlen_P((PGM_P)"Set Alarm 2\n\r");
Результат:
105 bytes in segment ABSOLUTE
296 bytes in segment CODE
12 bytes in segment EEPROM_PAGE1
7 bytes in segment INITTAB
50 bytes in segment NEAR_F
14 bytes in segment NEAR_I
14 bytes in segment NEAR_ID
360 bytes of CODE memory (+ 7 bytes shared)
> 14 bytes of DATA memory (+ 105 bytes shared)
12 bytes of XDATA memory
static __flash char Msg1[] = "Set Alarm 2\n\r";
strlen_P(Msg1);
Результат:
105 bytes in segment ABSOLUTE
296 bytes in segment CODE
12 bytes in segment EEPROM_PAGE1
64 bytes in segment NEAR_F
360 bytes of CODE memory
> 0 bytes of DATA memory (+ 105 bytes shared)
12 bytes of XDATA memory
E-mail: info@telesys.ru