-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 22 Nov 2010 20:37:22 -0500 Jason White wrote: > >> There must be a way to define contents of EEPROM that should be > >> programmed when the code is being programmed into chip. >=20 > Ive used sdcc for a while , as far as I know they do not exist. you > best bet in my mind would be to paste in whatever data you need in > the eeprom into piklab (The only linux microcontroller IDE I know > of), after reading the chip all data fields are editable so you could > paste whatever you want into the data EEPROM field and hit "program" > and that generally will cover most eeprom needs. Ive got no idea how > to program eeprom if your just using the command line or running a > wine emulation of mplab. >=20 > anyways it sounds like a good opportunity to suggest some decent > improvements for sdcc (though, sdcc is a c compiler, not a eeprom > programmer) You can probably use __code and __at to achieve the desired result, the same way you do for configuration fuses, by specifying as the parameter to __at the address that the HEX file needs to contain to signal to the programming tool that you're talking about EEPROM. Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: GnuPT 2.7.2 iEYEARECAAYFAkzrT58ACgkQXUF6hOTGP7eRvQCfW3mgd1h+dxOzt28V9qr6lEHC sK4An09OFRs+6HGu9Z2u7O2YSD9JV2gy =3Dqa45 -----END PGP SIGNATURE----- --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .