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 succes
  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 prob
  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.
  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.
×
×
  • Create New...