Page 1 of 1

MPLAB C30 Compiler to MPLAB X XC16 Compiler

PostPosted: 08 Dec 2014 13:30
by 7L1RLL
I am trying to compile juma tx500 firmaware (version 1.06a) by MPLAB X XC compiler(V1.23) instead of C30 compiler.
Because C30 Free version does not continue to be supported by Microchip any more.
There are many warnings and errors.

An example of final message is as follows :

QUOTE----
nbproject/Makefile-default.mk:316: *** You cannot create a production image using *.elf or *.cof as loadables. However you can debug your project. To be able to create a production image, you need *.hex files as loadables.. Stop.
UNQUOTE-----

Is there any experience, comment or suggestion ?
Rick 7L1RLL'

Re: MPLAB C30 Compiler to MPLAB X XC16 Compiler

PostPosted: 09 Dec 2014 11:16
by 7L1RLL
I successed to compile by MPLAB X(v1.90) and XC16 compiler(v1.23). The reason was a my misloading of DataEEPROM.o as reloadable files.
But I found an error on BORV_20 as brown out voltage of juma tx500.c. This may be BORV_27 for PIC30F6014A .
All unused valiables were deleted easily. But the other warning are kept as the original program.

---QUOTE---
//_FBORPOR(MCLR_EN & PWRT_64 & BORV_20); //Enable MCLR, power on timer, brown out 2V
_FBORPOR(MCLR_EN & PWRT_64 & BORV_27); //Enable MCLR, power on timer, brown out 2V->2.7 by 7L1RLL,2014.12.08
---UNQUOTE---

Thank you
Rick 7L1RLL