Picproje Elektronik Sitesi

MİKRODENETLEYİCİLER => ARM => Konuyu başlatan: piskopatisa - 10 Şubat 2014, 12:23:21

Başlık: CooCox attribute sorunu...
Gönderen: piskopatisa - 10 Şubat 2014, 12:23:21
Arkadaşlar selamlar,
Keilde şöyle bir tanım var,

static char degisken[256] __attribute__ (at(0x0x00010000));

Bu kod coocox ta çalışmıyor.
Diziye başlangıç adresi atıyor.
Coocox ta böyle bir kodu nasıl derlerim ?
Başlık: Ynt: CooCox attribute sorunu...
Gönderen: muhittin_kaplan - 10 Şubat 2014, 14:54:43
http://stackoverflow.com/questions/841433/gcc-attribute-alignedx-explanation (http://stackoverflow.com/questions/841433/gcc-attribute-alignedx-explanation)

http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html (http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html)

mesaj birleştirme:: 10 Şubat 2014, 15:04:27

Bak burada senin sorduğunu sormuşlar.

http://www.keil.com/support/docs/2829.htm (http://www.keil.com/support/docs/2829.htm)
Başlık: Ynt: CooCox attribute sorunu...
Gönderen: piskopatisa - 13 Şubat 2014, 00:15:28
Cevap için teşekkür ederim. Bunu denemiştim zaten, bu şekilde derlemede hata vermiyor ama program yinede çalışmıyor.
En iyisi keil ile devam etmek sanırım...

Aslında yapmaya çalıştığım LPC1769 'un dahili hafızasında veri saklamak. Keil'de NVOL_flash diye kütüphane var. Buradaki bazı kodları GNU C desteklemiyor. Farklı bir yöntem varmıdır ?