Propeller Programming Question on the Protoboard
MovieMaker
Posts: 502
OK, now let's assume I have all the hardware wired and I am hooked up to the usb port. I have loaded and ran both Propeller tool and Propeller terminal. Now, I want to do something in spin with the objects. Do I load each in one at a time until I have them all·and then ·compile F8·then send them to the Prop-F11? or do I simply list all of the names of the objects under one master Object in the OBJ section and have them in the same physical and logical directory?· I am a little bit unclear on this. (I am talking about the Protoboard.)
It is hard to put into words what I am asking. But, I hope that you understand.
Thanks in Advance!
It is hard to put into words what I am asking. But, I hope that you understand.
Thanks in Advance!
Comments
You have a "main" program which is the one in the "top-most" source window when you compile or you've designated it as the top object using the "Select Top File" or Ctrl-T menu item. Near the beginning of this source program, you will have an OBJ section with one or more declarations of objects referred to by the program. These contain the names of the Spin source files for those objects. When you compile your program, the compiler automatically includes the source programs for those objects as well as any objects referred to by the included objects. It's all automatic. These Spin programs need to be in the same directory as the top-most source program or in the Propeller Tool's library directory for them to be found.