Jump to content
Sign in to follow this  
mramos

Loading New Boostbasic Beta

Recommended Posts

Dave,

 

I loaded the update. Did not integrate this time as I modified the MPLABS files by hand as you showed me.

 

When I compile now (in the BoostIDE) I get

 

 

 

Building...

BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Beta version. No limitations. Expire date: 2007.08.01

 

 

_.bas

 

failure

Exit code was 1.

Removing target: _.obj

C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure

Failed to locate output file '_.obj'

Done

 

Failed

 

-------------------------------

 

MPLABS now has 2 errors, one on an END IF? But mt first program compiles in MPLABs no errors.

Edited by mramos

Share this post


Link to post
Share on other sites

mramos,

I loaded the update. Did not integrate this time as I modified the MPLABS files by hand as you showed me.

Best to use the integrate option and go from there.

 

Regards

Dave

Share this post


Link to post
Share on other sites
mramos,
I loaded the update. Did not integrate this time as I modified the MPLABS files by hand as you showed me.

Best to use the integrate option and go from there.

 

Regards

Dave

 

I reinstalled with integrate. Now I have this? Fails on #include <basic/system.bas>

 

Clean: Deleting intermediary and output files.

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Single user Lite License (Unregistered) for 0 node(s)

Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only

 

 

waterheaterservo.bas

C:\Program Files\SourceBoost\include\basic\system.bas(1): error: failure

 

failure

BUILD FAILED: Sat May 19 13:31:26 2007

Share this post


Link to post
Share on other sites

mramos,

I reinstalled with integrate. Now I have this? Fails on #include <basic/system.bas>

 

Clean: Deleting intermediary and output files.

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Single user Lite License (Unregistered) for 0 node(s)

Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only

 

 

waterheaterservo.bas

C:\Program Files\SourceBoost\include\basic\system.bas(1): error: failure

 

failure

BUILD FAILED: Sat May 19 13:31:26 2007

If you post the complete projecct as an attachment I'll take a quick look.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Here she is. Thanks Dave. Do not see attach or upload? Will try code command.

Also, Your IDE give a different error?

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Building...

BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Beta version. No limitations. Expire date: 2007.08.01

 

_.bas

 

failure

C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure

Exit code was 1.

Removing target: _.obj

Failed to locate output file '_.obj'

Done

 

Failed

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#include <basic/system.bas>

' SERVO on GPIO0
' LED on GPIO1
'
#pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF
#pragma CLOCK_FREQ 48000
dim servo@GPIO.0 as bit
dim led@GPIO.1 as bit
dim state as long
dim cnt as byte
dim up as byte
dim down as byte

' MAIN
Sub main()
trisio = ( 00000000b )	   'pin A0 as input for analog input
state=0
cnt = 0 
Do while 1 
	cnt = cnt +1
	if cnt = 37800 then
	   cnt = 0
	end if
	if cnt = 1 then 
	   state=1
	end if
	if cnt = 5400 then
	   state =0
	end if
	if state=1 then 
	   'pulse servo on
	   for i = 1 to up
		   servo = 1
		   call delay_ms(10)
		   servo = 0
		   call delay_ms(10)
	   next
	   state=2
	end if
	if state=0 then
	   'pulse servo off
	   for i = 1 to down
		   servo = 1
		   call delay_ms(10)
		   servo = 0
		   call delay_ms(10)
	   next
	   state = 2
	end if
	led = 1					'light LED					
	call delay_ms(100)
	led = 0 				'off LED
	sleep
	'call delay_ms(500)	  'delay to take readings after 1/2 seconds
Loop
end Sub

Edited by mramos

Share this post


Link to post
Share on other sites
Here she is. Thanks Dave. Do not see attach or upload?
Upload attachment option should now be available.

 

Regards

Dave

Share this post


Link to post
Share on other sites

mramos,

Also, Your IDE give a different error?

 

Try this under SourceBoost IDE:

' #include <basic/system.bas>

' SERVO on GPIO0
' LED on GPIO1
'
#pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF
#pragma CLOCK_FREQ 48000
dim servo@GPIO.0 as bit
dim led@GPIO.1 as bit
dim state as long
dim cnt as byte
dim up as byte
dim down as byte
dim i as byte

' MAIN
Sub main()
trisio = ( 00000000b )	   'pin A0 as input for analog input
state=0
cnt = 0 
Do while 1 
	cnt = cnt +1
	if cnt = 37800 then
	   cnt = 0
	end if

	if cnt = 1 then 
	   state=1
	end if

	if cnt = 5400 then
	   state =0
	end if

	if state=1 then 
	   'pulse servo on
	   for i = 1 to up
		   servo = 1
		   call delay_ms(10)
		   servo = 0
		   call delay_ms(10)
	   next i
	   state=2
	end if

	if state=0 then
	   'pulse servo off
	   for i = 1 to down
		   servo = 1
		   call delay_ms(10)
		   servo = 0
		   call delay_ms(10)
	   next i
	   state = 2
	end if
	led = 1					'light LED					
	call delay_ms(100)
	led = 0				 'off LED
'		sleep
	'call delay_ms(500)	  'delay to take readings after 1/2 seconds
Loop
end Sub

Regards

Dave

Share this post


Link to post
Share on other sites

Dave,

 

I cut and pasted your code in..

 

Same error in MPLABS.

 

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

lean: Deleting intermediary and output files.

Clean: Deleted file "D:\pic\sbasic\waterheaterservo.mcs".

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Single user Lite License (Unregistered) for 0 node(s)

Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only

 

 

waterheaterservo.bas

D:\pic\sbasic\waterheaterservo.bas(1): error: failure

 

failure

BUILD FAILED: Tue May 22 21:49:05 2007

Share this post


Link to post
Share on other sites

Dave, did the code compile for you? I still have the same error.

 

I did a re-install and integrate. Can not see anything wrong in the code (not meaning there is not a mistake in there, just can not find it)..

Share this post


Link to post
Share on other sites

mramos,

Can not see anything wrong in the code (not meaning there is not a mistake in there, just can not find it)..

I can't see the issue, the following code compiled under MPLAB:

#include <basic/system.bas>

' SERVO on GPIO0
' LED on GPIO1
'
#pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF
#pragma CLOCK_FREQ 48000
dim servo@GPIO.0 as bit
dim led@GPIO.1 as bit
dim state as long
dim cnt as byte
dim up as byte
dim down as byte
dim i as byte

' MAIN
Sub main()
trisio = ( 00000000b )	   'pin A0 as input for analog input
state=0
cnt = 0 
Do while 1 
	cnt = cnt +1
	if cnt = 37800 then
	   cnt = 0
	end if

	if cnt = 1 then 
	   state=1
	end if

	if cnt = 5400 then
	   state =0
	end if

	if state=1 then 
	   'pulse servo on
	   for i = 1 to up
		   servo = 1
		   call delay_ms(10)
		   servo = 0
		   call delay_ms(10)
	   next i
	   state=2
	end if

	if state=0 then
	   'pulse servo off
	   for i = 1 to down
		   servo = 1
		   call delay_ms(10)
		   servo = 0
		   call delay_ms(10)
	   next i
	   state = 2
	end if
	led = 1					'light LED					
	call delay_ms(100)
	led = 0				 'off LED
'		sleep
	'call delay_ms(500)	  'delay to take readings after 1/2 seconds
Loop
end Sub

Gave compiler output:

Executing: "C:\Program Files\SourceBoost\boostbasic.pic16.exe" testbas.bas -O1  -W1  -t 12F675
BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture)
[url=http://www.sourceboost.com]http://www.sourceboost.com[/url]
Copyright© 2004-2007 Pavel Baranov
Copyright© 2004-2007 David Hobday

Beta version. No limitations. Expire date: 2007.08.01


testbas.bas

success

 

Regards

Dave

Share this post


Link to post
Share on other sites

Still the same error.. Both IDE and MPLABS. MPLABS is 7.5 I think there is a 7.60.. Anyway, same code

 

I uninstalled Sourceboost, remove the project, reinstall sourceboost, in MPLABS made a new project.

 

Still the same error in MPLABS-------------------------

 

Clean: Deleting intermediary and output files.

Clean: Deleted file "D:\pic\sbasic\waterheaterservo.mcs".

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Single user Lite License (Unregistered) for 0 node(s)

Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only

 

 

waterheaterservo.bas

D:\pic\sbasic\waterheaterservo.bas(1): error: failure

 

failure

BUILD FAILED: Sat May 26 07:41:42 2007

 

 

 

 

 

 

 

IDE error ---------------------

 

Building...

BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Beta version. No limitations. Expire date: 2007.08.01

 

 

_.bas

 

failure

C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure

Exit code was 1.

Removing target: _.obj

Failed to locate output file '_.obj'

Done

 

Failed

Share this post


Link to post
Share on other sites
Still the same error.. Both IDE and MPLABS. MPLABS is 7.5 I think there is a 7.60.. Anyway, same code

 

I uninstalled Sourceboost, remove the project, reinstall sourceboost, in MPLABS made a new project.

Post the complete project, with MPLAB project files, and I'll take a quick look.

 

Regards

Dave

Share this post


Link to post
Share on other sites

mramos,

Here it is..

 

Any ideas???? Like to use it..

 

Can't open the workspace as the project file is missing - .mcp file

 

Regards

Dave

Share this post


Link to post
Share on other sites

mramos,

Here is the .mcp, not sure how I missed that one.. Here is all again, the board did not like a .mcp file.
Its all worked fine for me.

 

Now I see your the mistake:

Clean: Deleting intermediary and output files.

Clean: Deleted file "D:\pic\sbasic\waterheaterservo.mcs".

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" waterheaterservo.bas -O1 -W1 -t 12F675

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Single user Lite License (Unregistered) for 0 node(s)

Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only

 

 

waterheaterservo.bas

D:\pic\sbasic\waterheaterservo.bas(1): error: failure

 

failure

BUILD FAILED: Sat May 26 07:41:42 2007

You are invoking the wrong compiler.

You need to change the .exe associated with the toolsuite to the BoostBasic one.

 

Regards

Dave

Share this post


Link to post
Share on other sites

I did the project already, but maybe I will try it in MPLABS and BoostBASIC now that it works. This Beta stuff can be a pain in the but.

 

Now new question, MPLABS works fine now, in your IDE I still get this? I assume MPLABS shells to the same programs and it now works..

 

Building...

BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Beta version. No limitations. Expire date: 2007.08.01

 

 

_.bas

 

failure

C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure

Exit code was 1.

Removing target: _.obj

Failed to locate output file '_.obj'

Done

 

Failed

Share this post


Link to post
Share on other sites
I did the project already, but maybe I will try it in MPLABS and BoostBASIC now that it works. This Beta stuff can be a pain in the but.

 

Now new question, MPLABS works fine now, in your IDE I still get this? I assume MPLABS shells to the same programs and it now works..

 

Building...

BoostBasic Optimizing Basic Compiler Version 6.70 Beta (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2007 Pavel Baranov

Copyright© 2004-2007 David Hobday

 

Beta version. No limitations. Expire date: 2007.08.01

 

 

_.bas

 

failure

C:\Program Files\SourceBoost\include\basic\system.bas(14): error: failure

Exit code was 1.

Removing target: _.obj

Failed to locate output file '_.obj'

Done

 

Failed

Remove the line #include <basic/system.bas> as this is included automatically under the SourceBoost IDE.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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...
Sign in to follow this  

×
×
  • Create New...