Re: [Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-15 Thread Alan Hourihane
On Fri, 2010-10-15 at 16:44 +0200, Raphael Neider wrote: > Hi, > > >> __code unsigned char __at( 0xf0 ) > >> values[] = { > >>0x00, 0x01, > >>0x02, 0x03, > >>0x04, 0x05, > >> }; > >> > >> Unfortunately, when I use the EEPROM read commands for index 0, I get > >> 0x00, for index 1,

Re: [Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-15 Thread Alan Hourihane
Thanks for the reply Richard, but there's actually nothing wrong with supplying EEPROM data at compile time. The code actually works fine with PIC16F, it's just PIC18F doesn't pad extra 0x00's between each byte in the HEX file, whereas PIC16F generated HEX files do. If I force SDCC to use short

Re: [Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-15 Thread Richard Gray
In view of the silence on this subject, I'll just tell you about my (few) experiences of PIC EEPROM programming. I was using the 16F series, but I would imagine there are similarities. Programming the EEPROM on PICs, as I understand it is a runtime thing, rather than a program time (or compile

Re: [Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-15 Thread Alan Hourihane
On Fri, 2010-10-15 at 16:44 +0200, Raphael Neider wrote: > Hi, > > >> __code unsigned char __at( 0xf0 ) > >> values[] = { > >>0x00, 0x01, > >>0x02, 0x03, > >>0x04, 0x05, > >> }; > >> > >> Unfortunately, when I use the EEPROM read commands for index 0, I get > >> 0x00, for index 1,

Re: [Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-15 Thread Raphael Neider
Hi, >> __code unsigned char __at( 0xf0 ) >> values[] = { >> 0x00, 0x01, >> 0x02, 0x03, >> 0x04, 0x05, >> }; >> >> Unfortunately, when I use the EEPROM read commands for index 0, I get >> 0x00, for index 1, I get 0x02, and index 2, I get 0x04. Could you check whether/which of th

Re: [Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-15 Thread Alan Hourihane
On Wed, 2010-10-13 at 16:24 +0100, Alan Hourihane wrote: > Hi, > > I wonder if someone can help. > > I'm using a PIC18F242 / PIC18F2420 and sdcc 2.9.0 and currently using > this code to pop things into EEPROM storage. > > __code unsigned char __at( 0xf0 ) > values[] = { > 0x00, 0x01, >

[Sdcc-user] Putting values in EEPROM on PIC18F

2010-10-13 Thread Alan Hourihane
Hi, I wonder if someone can help. I'm using a PIC18F242 / PIC18F2420 and sdcc 2.9.0 and currently using this code to pop things into EEPROM storage. __code unsigned char __at( 0xf0 ) values[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, }; Unfortunately, when I use the EE