No initialize flash array

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

No initialize flash array

1,615件の閲覧回数
lpcware
NXP Employee
NXP Employee
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
タグ(2)
0 件の賞賛
返信
3 返答(返信)

1,542件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信

1,542件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Mon Jun 13 07:02:41 MST 2016
OK Thanks Solved the problem with:

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

0 件の賞賛
返信

1,542件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Mon Jun 13 06:42:03 MST 2016
Assuming that you want to leave whatever values are already stored at that location, you should give the section the NOLOAD attribute in the linker script.
0 件の賞賛
返信