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:
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
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