Jump to content

Recommended Posts

I am trying to compile a project in Chameleon that was working with BoostC.

What is this error please?

 

Building...
"C:\Program Files (x86)\SourceBoost\c_pic16.exe" GsmRemote.c  -16x -t PIC16F1825  -idx 1 -obj Release -d _RELEASE
warning: unrecognised command line argument -16x (ignored)
GsmRemote.c(18):  error: failed to parse input file GsmRemote.c
Chameleon(tm) Optimizing C Compiler Version 7.42 Beta 3
http://www.sourceboost.com
Copyright(C) 2017 Pavel Baranov
Copyright(C) 2017 David Hobday

GsmRemote.c

Optimisation:
optimised out 0 instruction(s)
optimised out 0 register(s)
0.832 s: compilation failed (1 error(s), 1 warning(s))
error: failed
Done
 

Edited by Moonwalker

Share this post


Link to post
Share on other sites

You need to show us your GsmRemote.c file or at least its first 18+ lines.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
Quote

#include <PIC16F1825.h>

//#pragma OPTIMIZE "0a" 
#pragma DATA _CONFIG1, _FOSC_INTOSC&_WDTE_OFF&_IESO_OFF&_FCMEN_OFF&_CLKOUTEN_OFF&_CPD_ON&_CP_ON&_BOREN_ON&_MCLRE_OFF&_PWRTE_ON 
#pragma DATA _CONFIG2, _PLLEN_OFF&_LVP_OFF&_BORV_25&_WRT_ALL&_STVREN_ON

#pragma CLOCK_FREQ 8000000


#pragma DATA 0xF000, '9','9','9','9'    //PIN
#pragma DATA 0xF010, 0xFF,0xFF    //Timer 1 ON
#pragma DATA 0xF020, 0xFF,0xFF    //Timer 1 OFF
#pragma DATA 0xF030, 0xFF,0xFF    //Timer 2 ON
#pragma DATA 0xF040, 0xFF,0xFF    //Timer 2 OFF
#pragma DATA 0xF050, '9','9','9','9','9','9','9','9','9','9','9'    //out1 call number == 
#pragma DATA 0xF060, '9','9','9','9','9','9','9','9','9','9','9'    //out2 call number ==
#pragma DATA 0xF070, '1','1'                //Out1/ Out2 Call number mode 0/1/2 ==> 0 = disable, 1 = all nos, 2 = this number
#pragma DATA 0xF080, '1','0'                //Confirm sms - 00= no reply/01 = reply        Confirm call - 00= no reply/01 = reply        

#define FOSC 8000000
#define spBAUD 38400
#define fSPBCLK (FOSC)    // UART Baud rate generator clock (high speed)
#define SPBRG_VAL ((fSPBCLK / (spBAUD * 16L)) - 1L)

// bit_time =  FOSC / 4 / BAUDRATE 
#define bit_time 51     //    38400baud    
 

I removed some personal comment lines. Line 18 is the Config1 setting. 

Turned optimization off but still not working.

Edited by Moonwalker

Share this post


Link to post
Share on other sites
Quote

Building...
"C:\Program Files (x86)\SourceBoost\c_pic16.exe" GsmRemote.c  -16x -t PIC16F1825  -idx 1 -obj Release -d _RELEASE
warning: unrecognised command line argument -16x (ignored)
Chameleon(tm) Optimizing C Compiler Version 7.43 Beta 1
http://www.sourceboost.com
Copyright(C) 2017-2018 Pavel Baranov
Copyright(C) 2017-2018 David Hobday

error: failed
Done
 

While building I get error window  "c_pic16 has stopped working"

Share this post


Link to post
Share on other sites

Cam you email your source file to support@sourceboost.com

 

Regards,

Pavel

 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×