Jump to content

mramos

EstablishedMember
  • Content Count

    40
  • Joined

  • Last visited

Everything posted by mramos

  1. cmcon = 7 Sorry to waste that question. I had cmcom=7, fixed the typo. Any list of the #pragma data commands. I am trying to set int_RC_noclockout. And the speeds. Using config=00000000000b (my 14 bits) did not let me do it either.
  2. I have my program running now. I am missing a lot. Is there a manual to get a better idea on setting up a chip. Like the 12F675? I can not figure out the #pragma to get INTOSC to no clock in or how to set the ADC to I/O. Has anyone done this? I am doing it now via my programmer. I would like to use the ICD2, but will live. I have the clock set to 4000000 but the LED it way to fast. So I am looking for a sample program to initialize a 12F675?
  3. 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
  4. Here is the .mcp, not sure how I missed that one.. Here is all again, the board did not like a .mcp file. Thanks waterheater.zip
  5. 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
  6. Will an uninstall and re-install and hope that does the trick? At least I know the code compiles. Thanks.
  7. 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)..
  8. 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
  9. 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
  10. 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
  11. 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.
  12. 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 IDE) 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 ============================================ EDIT: And thanks for the very fast reply.. WOW! Faith restored. Also, it works now in the MPLABS.
  13. Dave and folks, I decided to write a servo driver this morning (would be my first real project). Wrote it in the SourceIDE, compiled and linked and all was good. SUCCESSFUL... hooked up the ICD2 and a 12F675, went in MPLABS, made a project. Did a build and got license expired!!! Now I had the MPLABs working fine last time I played with SourceBoost BASIC. Went back to SourceBoost IDE and it now says the same. EXPIRED!!! Looks like I will have to write in something else. I really want to try this program, but I am not having much luck. Will go look for an updated Beta. Please advise.
  14. Add to the top of the source file: #include <basic/system.bas> Regards Dave <{POST_SNAPBACK}> It also needs to be the first line. MAN this is cool.. BASIC in MPLABS. I will do a project with it and see how it goes. Thanks again Dave.
  15. The code that fails ' LDR on GPIO0 ' LED on GPIO1 ' RELAY on GPIO2 ' '#pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF '#pragma CLOCK_FREQ 4000000 '#pragma OPTIMIZE "0" ' init ADC port dim ldr@GPIO.0 as bit dim led@GPIO.1 as bit dim relay@GPIO.2 as bit dim a as char sub adc_init() trisio = 00000001b 'pin A0 is for analog input ' adcon1 = 10001110b 'setting for only AN0 and ref of vss and vdd, Fosc/8 adcon0 = 01000001b 'setting for channel AN0 and Fosc/8 for 4Mhz, start AD end sub ' read ADC port function adc_read() as byte adcon0.2 = 1 call delay_ms(1) adcon0.2 = 0 call delay_ms(1) adc_read = adresl end function ' MAIN Sub main() trisio = ( 00000001b ) 'pin A0 as input for analog input call adc_init() 'initialize the adc port Do while 1 a = call adc_read() if a < 50 then relay = 0 else relay = 1 end if led=1 'light LED call delay_ms(500) 'delay to take readings after 1/2 seconds led = 0 'off LED call delay_ms(500) 'delay to take readings after 1/2 seconds Loop end Sub
  16. Thanks for bumping this topic. Using SourceBoost package V6.70 with the BoostBasic compiler selected in MPLABs this code compiles and links: #include <basic/system.bas> #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF dim ldr@GPIO.0 as bit sub main() end sub That seemed to work? Clean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\sbasic\davetest.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostbasic.pic16.exe" testdave.bas -O1 -W1 -t 12F675 BoostBasic Optimizing Basic Compiler Version 6.60 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 David Hobday Beta version. No limitations. Expire date: 2007.05.01 testdave.bas success Executing: "C:\Program Files\SourceBoost\boostlink.pic.exe" "D:\pic\sbasic\testdave.obj" -O1 -p "davetest" -t 12F675 BoostLink Optimizing Linker Version 6.60 http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 David Hobday Optimisation level:1 Building CASM file Memory Usage Report =================== RAM available:64 bytes, used:0 bytes (0.0%), free:64 bytes (100.0%), Heap size:64 bytes, Heap max single alloc:63 bytes ROM available:1024 words, used:7 words (0.7%), free:1017 words (99.3%) Successful Loaded D:\pic\sbasic\davetest.COF. BUILD SUCCEEDED: Thu Apr 19 20:20:43 2007
  17. Well, it has been some time now and no response? Did Boost BASIC get parked? Or is there a release close (my hopes) and everyone if busy working on it? No one has answered my post and it has been some time.
  18. 7 = #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF 11 = dim ldr@GPIO.0 as bit <{POST_SNAPBACK}> Any help? It works in the IDE. Is there a release coming soon that will hook into MPLABS? I would really like to debug in BASIC and program via MPLABS. Thanks
  19. 7 = #pragma DATA _CONFIG, _WDT_OFF & _CP_OFF & _PWRTE_OFF 11 = dim ldr@GPIO.0 as bit
  20. I have a program that works in the IDE. I modded the files so I have the SouceBASIC in the MPLABS and loaded it. I see the program, all looks good.. Then if I build it, I get this error: Clean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\sbasic\ldr675office.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostbasic.pic16.exe" ldr675office.bas -O1 -W1 -t 12F675 BoostBasic Optimizing Basic Compiler Version 6.60 Beta (for PIC16 architecture) http://www.sourceboost.com Copyright(C) 2004-2006 Pavel Baranov Copyright(C) 2004-2006 David Hobday Beta version. No limitations. Expire date: 2007.05.01 ldr675office.bas D:\pic\sbasic\ldr675office.bas(7): warning: unknown or invalid pragma (ignored) D:\pic\sbasic\ldr675office.bas(11): error: missing fixed address failure BUILD FAILED: Fri Mar 23 14:08:09 2007
  21. Can you post what you are trying to do? I did not know the Boost BASIC was for sale yet? But I will see if I can help you.
  22. We tested preliminary BoostBasic integration into MPLAB and so far it looks good. It's very likely it will be included into the coming release. Regards, Pavel <{POST_SNAPBACK}> Fantastic. I really like boostbasic. I will hang. If you need beta testers, count me in. I use MPLABS ASM, mikrobasic, pic basic, really like proton, etc. So I can give it a workout for sure. Really tired of using Mikrobasic and then using the .LST file to debug the code Your price tag is inline and linking into MPLABS. I think you will be happy with the sales of BoostBASIC. I know I will promote it. You guys seem to be targeting people like myself, so I am really excited. Nothing against C, but I would just use ASM.. I like basic for quick projects though. Thanks again.
  23. Still waiting to hear about the _.bas file to know if I should wait a bit for MPLABS support or not?
×
×
  • Create New...