[Sdcc-user] Can't link a simple example using PIC16 with SDCC : ASlink no definition of area errors

2016-12-15 Thread Délisson Gonçalves
I'm currently trying to use SDCC to generate an Intel Hex file for a PIC16 device (pic18f452). I'm using a Makefile and multiple source files, to be compiled separately and linked at the end. This is my Makefile setup: CFLAGS=--std-c99 --use-non-free -mpic16 LDFLAGS=--out-fmt-ihx build/image.hex:

Re: [Sdcc-user] Can't link a simple example using PIC16 with SDCC : ASlink no definition of area errors

2016-12-15 Thread Kustaa Nyholm
Sorry don't have time to look at this, but on this page you find my project complete with Makefile that should compile out of the box with SDCC so if you look at the Makefile it might help you. http://www.sparetimelabs.com/usbcdcacm/usbcdcacm.php Below is the relevant part from that Makefile. ch

Re: [Sdcc-user] Can't link a simple example using PIC16 with SDCC : ASlink no definition of area errors

2016-12-15 Thread Erik Petrich
On Fri, 16 Dec 2016, Délisson Gonçalves wrote: I'm currently trying to use SDCC to generate an Intel Hex file for a PIC16 device (pic18f452). I'm using a Makefile and multiple source files, to be compiled separately and linked at the end. This is my Makefile setup: CFLAGS=--std-c99 --use-non-f