PropBasic problem / compiler bug?
Pepz
Posts: 20
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?
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
Simply removing it will have subtle side effects ...
What is the correct way to run the examples?
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.
(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?
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
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.
Ray
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?