lpcware

No initialize flash array

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by blasiis on Mon Jun 13 05:42:14 MST 2016
Dear all, i have LPC1758 abd a structure fixed in rom like this:


__attribute__ ((section(".myText"))) const uint8_t arText[200];


Tastiera_Lcd_Debug_memory.ld:
..........
  MyText   (rx) : ORIGIN = 0x00068000, LENGTH = 0x8000 /* 32K */

Tastiera_Lcd_Debug.ld:
..........
.myText : ALIGN(4)
{ *(.myText)
} > MyText


When I program the flash entering in debug, the text array is initializated to 0x00, how can I not initialize the rom array ?


Thanks

Outcomes