[Sdcc-user] Passing data with function calls

2007-07-24 Thread Robert Bergfors
Hello, I have recently moved to SDCC and even more recently started using PIC18*, more specifically 18f2550. I have two problems that I canät seem to figure out; 1. Whenever power is applied, the device seems to start up in a random state and doesn't seem to start running the program. Progra

Re: [Sdcc-user] Passing arguments on funcion calls

2007-07-24 Thread Ernst Bachmann
On Dienstag, 24. Juli 2007, Robert Bergfors wrote: > Quoting Ernst Bachmann <[EMAIL PROTECTED]>: > > It looks to me like you scramble the flash contents while uploading it. > > > > Some ideas where to start looking: > > > > Did you try to re-read the flash contents of the pic and compared them > >

Re: [Sdcc-user] Z80 and bitfields

2007-07-24 Thread Vangelis Rokas
The explanation to the problem you encounter is described in previous messages... I have came up in the past with this issue and solved it for pic16 port by using the PIC16_PACKED_BITFIELDS enviroment variable which aggressively packs bitfields (which is what one expects, before reading specs!!:

Re: [Sdcc-user] Passing arguments on funcion calls

2007-07-24 Thread Robert Bergfors
Quoting Ernst Bachmann <[EMAIL PROTECTED]>: > > It looks to me like you scramble the flash contents while uploading it. > > Some ideas where to start looking: > > Did you try to re-read the flash contents of the pic and compared them with > the original hex? Yes, I use the PICKit2 programmer by M

Re: [Sdcc-user] Passing arguments on funcion calls

2007-07-24 Thread Ernst Bachmann
On Dienstag, 24. Juli 2007, Robert Bergfors wrote: > Hello, > > I have recently moved to SDCC and even more recently started using PIC18*, > more specifically 18f2550. I have two problems that I canät seem to figure > out; > > 1. Whenever power is applied, the device seems to start up in a random >

[Sdcc-user] Passing arguments on funcion calls

2007-07-24 Thread Robert Bergfors
Hello, I have recently moved to SDCC and even more recently started using PIC18*, more specifically 18f2550. I have two problems that I canät seem to figure out; 1. Whenever power is applied, the device seems to start up in a random state and doesn't seem to start running the program. Programmi