Re: [Sdcc-user] PIC18f4520; passing array to a function doesn't work

2008-10-16 Thread Bastiaan van Kesteren
Hi, Just tried my 18f452 project code on a 18f4520 with this change, and so far it works completely OK! Thanks a lot!!! (on a side-note, might it be a good idea to disable this by default, as the datasheet suggests it is?) Thanks!, -Bastiaan On Thursday 16 October 2008 22:07:27 Raphael Neide

Re: [Sdcc-user] PIC18f4520; passing array to a function doesn't work

2008-10-16 Thread Raphael Neider
Hi Bastiaan, code char at __CONFIG4L _conf4 = _LVP_OFF_4L & _STVREN_ON_4L; You might need an additional _XINST_OFF_4L here to disable (!) extended instructions of the 4520 part. Good luck, Raphael - This SF.Net email i

Re: [Sdcc-user] PIC18f4520; passing array to a function doesn't work

2008-10-16 Thread Bastiaan van Kesteren
Hi, Had to make a working prototype before the end of the week, so switched to a 18f452, which is working fine now. I'm now using SDCC 2.8.4, snapshot from somewhere last week, with my own usart code, since the usart code appears to be missing for the 18f452 when using SDCC 2.8.4 When compilin

Re: [Sdcc-user] PIC18f4520; passing array to a function doesn't work

2008-10-14 Thread Vaclav Peroutka
Hi Bastian, did you compare generated ASM code for 452 and 4520 ? Are there some differences ? V. > Hi, > > Little follow-up on my own post. > Tried the same code on the 18f452 (with some small changes to the config to > make it run). Thistime using SDCC 2.7.0, as the 2.8 snapshot i was using

Re: [Sdcc-user] PIC18f4520; passing array to a function doesn't work

2008-10-13 Thread Bastiaan van Kesteren
Hi, Little follow-up on my own post. Tried the same code on the 18f452 (with some small changes to the config to make it run). Thistime using SDCC 2.7.0, as the 2.8 snapshot i was using complained about missing _usart functions. It runs as it should. Compiling the code for the 18f4520 using SDC