Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic problem / compiler bug? — Parallax Forums

PropBasic problem / compiler bug?

PepzPepz Posts: 20
edited 2012-10-31 07:29 in Propeller 1
First of all...T H A N K Y O U for the PropBasic compiler !!!!!!
Now the fun is REALLY back!!! :)

I just did some testing with the examples and got some errors when i upload the .spin file to the prop.

By the way, I'm using Programmers Notepad to edit, a hotkey F9 to launch PropBasic compiler and F10 to launch Propellent uploader. (You could use any text editor that can launch external apps.)

Anyway, the compilation finishes ok:

PropBasic Version 00.01.29 Oct 11, 2012
Finished Compile. 1368 Lines Read, 385 Lines Generated, 0 Warnings, 0 Errors.
> Process Exit Code: 0
> Time Taken: 00:00


...but the spinfile has some errors in it:

...
...
__VGA_vgaMem_adr LONG @@@VGA_vgaMem

When i launch propellent to upload the spinfile, it looks like it's trying to compile the file again,
telling me there are these errors.


> "C:\pb\Propellent.exe" C:\pb\VGA_demo1.spin

EVT:501-Compiling: VGA_VIDEO
EVT:501-Compiling: VGA_DEMO1
ERR:101-Error compiling file: C:\pb\VGA_demo1.spin
(Line/Char/Count: 416/23/2) Expected a constant, unary operator, or "(".
__VGA_vgaMem_adr LONG @@@VGA_vgaMem

I removed the extra @:s and Propellent then uploads and runs the file ok.

Or is it just me? ;)

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2012-10-29 07:04
    @@@ is a bst[c] extension (3rd party IDE/compiler). The PropTool and Propellent don't support it.

    Simply removing it will have subtle side effects ...
  • PepzPepz Posts: 20
    edited 2012-10-29 07:39
    So I am doing this wrong?
    What is the correct way to run the examples?
  • PublisonPublison Posts: 12,366
    edited 2012-10-29 08:03
    BST can be downloaded here for free.

    Veiwport also supports @@@, but it is not free.
  • PublisonPublison Posts: 12,366
    edited 2012-10-29 08:18
    Here is the thread for BST, if you have the time to read 77 pages. :)
  • MicksterMickster Posts: 2,694
    edited 2012-10-29 08:44
    Publison wrote: »

    Veiwport also supports @@@, but it is not free.

    If you value your time, the investment in VP will soon be recouped :)

    PropBASIC and Viewport are a winning combination!


    Regards,

    Mickster.
  • PepzPepz Posts: 20
    edited 2012-10-30 03:57
    My setup works fine for simple "BlinkLed" Basic programs but not for the bigger VGA demos.
    (Well the VGA demos half-works if i remove the @@ with sometimes strange output)

    So you say that the Propellent tool does not support the output from the PropBasic.exe compiler?

    Is there another loader I can use?

    I have tried the "Brads Spin Tool" with these results:

    IDE preferences / PropBasic compiler binary location points at bstc.exe

    I open a "BlinkLed.pbas" file and press F9.

    "Can't find basic compiler. Please configure in IDE preferences."

    Ok,
    Tools / IDE preferences / PropBasic tab / Browse to PropBasic.exe, gives me this msgbox:
    "PropBasic has encountered a problem and needs to close. Tell Microsoft...."


    Or is it just me?
  • BeanBean Posts: 8,129
    edited 2012-10-30 04:54
    Yeah, I wish Parallax would support the @@@ prefix.... Arrrrg.

    The setting in BST should point to PropBasic.exe

    There is probably an error in your code that the compiler is not expecting and it is crashing.

    If you can post your code, I can run it through and fix the problem with the compiler.

    Bean
  • PepzPepz Posts: 20
    edited 2012-10-31 02:41
    Hi Bean!

    The code is your VGA demos! :) and they compile fine! Now what tool can i use to upload the *.spin to the propeller since the Propellent software doesnt support "@@@" ?
    This question is still unsolved.

    PUBLISONs answer was: Use the BST instead. Ok. Now i have another problem:
    In BST, no basic compiler can be found as stated above.
  • RsadeikaRsadeika Posts: 3,837
    edited 2012-10-31 04:06
    You could try SimpleIDE to run the .spin file that was created by PropBASIC. I just tried a program that used @@@, and it ran without a hitch. As for bst, PropBASIC does not come added on, you have to do that yourself. I have not used bst in a very long time, I forget the exact steps to accomplish the add on procedure. You might better off trying SimpleIDE, IMO.

    Ray
  • PepzPepz Posts: 20
    edited 2012-10-31 07:29
    Got it!
    1. PropBasic compiles pbas file to a spin file.
    2. bstc compiles spin file to binary file
    3. propeller-load uploads binary file to propeller chip.

    But you could eat a sandwich instead! ;)
    Thanks anyway!

    Or is it just me? :)
Sign In or Register to comment.