Skip to content
Snippets Groups Projects
Commit 6d480f50 authored by Damien George's avatar Damien George
Browse files

pic16bit: Update to compile with latest xc16 v1.35 compiler.

This port has been verified to work with these latest changes.
parent 5089b3ff
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ QSTR_DEFS = qstrdefsport.h ...@@ -6,7 +6,7 @@ QSTR_DEFS = qstrdefsport.h
# include py core make definitions # include py core make definitions
include $(TOP)/py/py.mk include $(TOP)/py/py.mk
XC16 = /opt/microchip/xc16/v1.24 XC16 = /opt/microchip/xc16/v1.35
CROSS_COMPILE = $(XC16)/bin/xc16- CROSS_COMPILE = $(XC16)/bin/xc16-
PARTFAMILY = dsPIC33F PARTFAMILY = dsPIC33F
...@@ -29,7 +29,7 @@ CFLAGS += -O1 -DNDEBUG ...@@ -29,7 +29,7 @@ CFLAGS += -O1 -DNDEBUG
endif endif
LDFLAGS = --heap=0 -nostdlib -T $(XC16)/support/$(PARTFAMILY)/gld/p$(PART).gld -Map=$@.map --cref -p$(PART) LDFLAGS = --heap=0 -nostdlib -T $(XC16)/support/$(PARTFAMILY)/gld/p$(PART).gld -Map=$@.map --cref -p$(PART)
LIBS = -L$(XC16)/lib -L$(XC16)/lib/$(PARTFAMILY) -lc -lm -lpic30 -lp$(PART) LIBS = -L$(XC16)/lib -L$(XC16)/lib/$(PARTFAMILY) -lc -lm -lpic30
SRC_C = \ SRC_C = \
main.c \ main.c \
......
...@@ -39,10 +39,13 @@ ...@@ -39,10 +39,13 @@
#include "board.h" #include "board.h"
#include "modpyb.h" #include "modpyb.h"
_FGS(GWRP_OFF & GCP_OFF); #pragma config GWRP = OFF
_FOSCSEL(FNOSC_FRC); #pragma config GSS = GCP_OFF
_FOSC(FCKSM_CSECMD & OSCIOFNC_ON & POSCMD_NONE); #pragma config FNOSC = FRC
_FWDT(FWDTEN_OFF); #pragma config FCKSM = CSECMD
#pragma config OSCIOFNC = ON
#pragma config POSCMD = NONE
#pragma config FWDTEN = OFF
// maximum heap for device with 8k RAM // maximum heap for device with 8k RAM
static char heap[4600]; static char heap[4600];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment