Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-03-03 Thread Antonio Todo Bom
Dear Tamas, I use piklab software to write my PIC projects. Normally it does all compilation and links fine. I invite you to enjoy it too. I was looking about ande bellow the arguments used by piklab to compile and link. [NOTES] introduced here to clean my specific files. Please replace by the y

Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-03-03 Thread Raphael Neider
Hi, > (looked into lst file and checked the content of the hex file). > > When there are no interrupt routine specified, the main code was put directly > to 0x00 address. > It works, but not good practice, because it overlaps the interrupt vectors. > Even without interrupt routines defined, the i

Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-03-03 Thread Philipp Klaus Krause
On 03.03.2013 19:25, Philipp Klaus Krause wrote: > Sounds like you don't link a crt0.o or not the right crt0.o. Read crt0.rel for crt0.o. Philipp -- Everyone hates slow websites. So do we. Make your web apps faster wit

Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-03-03 Thread Philipp Klaus Krause
On 01.03.2013 13:33, Butuza Tamas wrote: > Hello, I made some further investigations. > > (looked into lst file and checked the content of the hex file). > > When there are no interrupt routine specified, the main code was put directly > to 0x00 address. > It works, but not good practice, becaus

[Sdcc-user] Bug with PIC18F interrupt routine definition

2013-03-01 Thread Butuza Tamas
Hello, I made some further investigations. (looked into lst file and checked the content of the hex file). When there are no interrupt routine specified, the main code was put directly to 0x00 address. It works, but not good practice, because it overlaps the interrupt vectors. Even without inter

Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-02-28 Thread M L
Make sure the cpu clock (ext. osc) is working, test code with the internal osc. first. 2013/2/28, Butuza Tamas : > Dear sdcc users and developers, > > At the past I used sdcc for 14 bit pic devices with success.Now I'd like to > use sdcc for a 16 bit pic microcontroller, but I have a problem just

Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-02-28 Thread Sebastien Lorquet
Hi, I don't know if you're doing it right or not, but for pic16 I always had success by using the routines and helpers from signal.h The only thing you can't do is declare an interrupt routine in a H file and define it elsewhere (and I don't know why :) ). Regards, Sebastien Le 28/02/2013 10:25

Re: [Sdcc-user] Bug with PIC18F interrupt routine definition

2013-02-28 Thread Diego Herranz
Why not compiling, assembling and linking in one command: sdcc -mpic16 -p18f46k22 test.c SDCC assembles and links the needed libraries by default. I think the -I. is not necessary. If you need a custom linker script (e.g. MylinkerScript.lkr) it can be provided like this: sdcc -mpic16 -p18f46k22

[Sdcc-user] Bug with PIC18F interrupt routine definition

2013-02-28 Thread Butuza Tamas
Dear sdcc users and developers, At the past I used sdcc for 14 bit pic devices with success.Now I'd like to use sdcc for a 16 bit pic microcontroller, but I have a problem just at the beginning. I tried to use timer interrupt, but my program was not able to run. After some investigation, I foun