Jump to content

ra68gi

EstablishedMember
  • Content Count

    229
  • Joined

  • Last visited

Everything posted by ra68gi

  1. Sound like its not been compiled and linked, its the linking process that creates the .hex and cod/coff (debug files).Try using the 'B' (Build) button on the tool bar. It complies what needs compiling and link the code. Regards Dave <{POST_SNAPBACK}> I tried the build and got the following errors Building... BoostBasic Optimizing Basic Compiler Version 6.55 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.01.01 _.bas success SBTEST.BAS(9:9): warning: local variable 'X' may be used uninitialized BoostLink Optimizing Linker Version 6.55 http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 David Hobday Failure Couldn't find function/label by name:main Exit code was -2. Removing target: SBTEST.hex Failed to locate output file 'SBTEST.hex' Done Failed
  2. In this case this warning is not correct - please ignore it. No true quite, keywords are not case sensitive. Function names are. This is not just case sensitivity, PORTB actually has a value, its is a constant which has the address of PORTB.portb is a variable (something we can assign a value to), it reside at the address PORTB. I hope that makes some sense. Regards Dave <{POST_SNAPBACK}> Hi Dave, Next i tried running the above code with LED block (simulator), but got the following error! Debugging... Can't load file 'SBTEST.cod' What could be the problem? Raghunathan
  3. Thanks Dave. The comilation shows success, but also has got a warning as shown below. Why is it and how can it be corrected? "D:\Program Files\SourceBoost\boostbasic.pic16.exe" -t PIC16F648A _.bas BoostBasic Optimizing Basic Compiler Version 6.55 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.01.01 _.bas success SBTEST.BAS(9:9): warning: local variable 'X' may be used uninitialized Done "WHAT I LEARNT" from the above code example. BOOST BASIC COMMANDS ARE CASE SENSITIVE ! portb and trisb will work but not PORTB AND TRISB! Dave, is there any setting to switch off case sensitivity? Thanks, Raghunathan.
  4. Hi Guys, I am new to this forum. I have used PIC BASIC PRO from melabs and BASCOM for 8051, but there is no help oruser manual for beginners in BB. I wish to start with a simple program to display binary counting on portb of any pic. This works with Bascom not with boost basic. Can any one help me with the syntax? #pragma DATA _CONFIG, _WDT_OFF & _HS_OSC & _LVP_OFF & _CP_OFF & _PWRTE_OFF SUB MAIN () DIM X AS BYTE TRISB = 0 DO FOR X=0 TO 255 PORTB = X WAIT 1 NEXT LOOP END SUB I get error when i compile this. I dont know the delay command in BB. i tried a slighty modified code, even this does not work. the modified one is as follows, #pragma DATA _CONFIG, _WDT_OFF & _HS_OSC & _LVP_OFF & _CP_OFF & _PWRTE_OFF SUB MAIN () DIM X AS BYTE dim i as byte TRISB = 0 i=1 DO while i>0 FOR X=0 TO 255 PORTB = X WAIT 1 NEXT LOOP END SUB It shows the following errors. "D:\Program Files\SourceBoost\boostbasic.pic16.exe" -t PIC16F648A _.bas BoostBasic Optimizing Basic Compiler Version 6.55 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.01.01 _.bas failure SBTEST.BAS(5:8): error: left operand must be l-value SBTEST.BAS(5:8): error: failed to generate expression SBTEST.BAS(9:10): warning: local variable 'X' may be used uninitialized SBTEST.BAS(9:8): error: left operand must be l-value SBTEST.BAS(9:8): error: failed to generate expression SBTEST.BAS(10:1): error: unknown identifier 'WAIT' SBTEST.BAS(10:1): error: failed to generate expression Failed to locate output file '_.obj' Done Failed Thanks in advance. Raghunathan
×
×
  • Create New...