.bs2 to .hex or bs2 to asm
Demoncleaner
Posts: 17
Does anybody know a good compiler from bs2 to asm or hex??
Because i couldn't find any hex or asm file with the Basic Stamp...
I also tried CD-Lite but the "serout" command doesn't wrork properly.
Because i couldn't find any hex or asm file with the Basic Stamp...
I also tried CD-Lite but the "serout" command doesn't wrork properly.
Comments
Have you looked at PicBasic Pro?
Then, when you reset your BS2, the run-time environment programmed into the PIC 16C57 reads the tokens from the eeprom, and runs library routines in the run-time environment to implement the actions necessary to do the keywords.
This allows you the best of many worlds. The Parallax proprietary run-time environment is safe from prying eyes. The 'tokenized' version of the program is MUCH smaller than an equivalent compiled version. You get a very fast recompile/redownload/rerun cycle. You get a device that runs at 2,000 PBasic instructions per second, which is fast enough for most purposes. You get very high reliability, because the run-time library takes care of lots of nitty-gritty detail which would bite a 'C' or assembler programmer. You get very low power use, with on-module brown-out protection, clock generation, and memory support.
The main drawback of this approach is that a compiled version would run much faster, and you must use the PBasic language to implement your code. And with the PIC-57 you only get 26 bytes of RAM.
However, there's LOTS of off-the-shelf PIC compilers (at a higher price). There's only a few PIC-based modules like the BS2. And nobody has the level of support provided by Parallax.
Now, Parallax HAS supplied their tokenizer in DLL form -- perhaps you could write your own PBP compiler to feed their tokenizer PBasic source.
The PBASIC Stamp IDE can and will produce "object code", if so instructed to do so. This "object code" can be loaded in the field by a user, and is NOT human readable, nor easily "hackable".
This is NOT object or hex code in the classical sense (the native, machine language output of a compiler or assembler), as it can ONLY be processed by the PBASIC Stamp system, or by third party tools which adhere to the PBASIC Stamp system protocals. The "object code" is also platform dependent, meaning you can not generate "object code" specified for a PBASIC Stamp BS-2 and have it operate properly on a BS-2SX.
The option for doing this can be found as follows. Fire up the PBASIC Stamp Editor/IDE, then use the following sequence:
FILE ==> Generate Object code
Although I didn't actually check it, I suspect the PBASIC Stamp Editor/IDE HELP function may provide additional information on this feature.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Did anyone try the serout command with hyper terminal? Because when i try it i dont get nothing.
Please send me at least a bs2 code that sends correct some letters in hyper terminal. (The samples from the basicstamp does not match with· CD-Lite)
I·actually didn't know anything about tokens. Maybe i could compile them into hex. If there is a way please inform me.
Parallax Basic does not run a Microchip PIC chip or any other processor.
However, it's still a pretty good, very reliable, and simple platform.