Looking for an object Called "Building Block"
Blake Koch
Posts: 39
I'm working through "Programing and Customizing the Multicore Propeller Microcontroller" book that I bought form the main store and I got to page 75 the section about {WRONG ADDRESS PASSED TO A METHOD}, In the OBJ section of the {Top File.spin} code,
the code under OBJ is calling out for {blink : "Building Block"} when I run the program I get the error code {cannot find object {Building Block.spin} in editor tabs. I have looked in all the usual places and I do not seem to have it.
Question 1 Am I doing something wrong at the run menu?, the book is not clear if I should compile using Current or Top files. Side Note: The program does compiles using Top file f10 however the program does not work.
Question 2 If I am missing this file on my computer where can I get it?
'top file
CON 'Constant Declaration
_clkmode = xtal1 + pll16x 'Crystal and PLL setting
_xinfreq = 5_000_000 '5MHz crystal x 16 = 80 MHz
VAR 'Variable Declaration
long delay 'delay variable
OBJ
pst : "Parallax Serial Terminal" 'Parallax Serial Terminal
blink : "Building Block" ' Building block
PUB Go ' Go method
pst.Start(115200) 'Start Parallax Serial Terminal
delay := clkfreq/4 'Initialize delay varible
blink.Start(5, @delay) 'Call start methode, P5 blink 2mz
repeat 'Main Loop
pst.Str(String("Enter delay ms: ")) 'Prompt user input
delay := pst.DecIn * (clkfreq/1000) 'User imput Delay variable
Thanks for any help
Blake
the code under OBJ is calling out for {blink : "Building Block"} when I run the program I get the error code {cannot find object {Building Block.spin} in editor tabs. I have looked in all the usual places and I do not seem to have it.
Question 1 Am I doing something wrong at the run menu?, the book is not clear if I should compile using Current or Top files. Side Note: The program does compiles using Top file f10 however the program does not work.
Question 2 If I am missing this file on my computer where can I get it?
'top file
CON 'Constant Declaration
_clkmode = xtal1 + pll16x 'Crystal and PLL setting
_xinfreq = 5_000_000 '5MHz crystal x 16 = 80 MHz
VAR 'Variable Declaration
long delay 'delay variable
OBJ
pst : "Parallax Serial Terminal" 'Parallax Serial Terminal
blink : "Building Block" ' Building block
PUB Go ' Go method
pst.Start(115200) 'Start Parallax Serial Terminal
delay := clkfreq/4 'Initialize delay varible
blink.Start(5, @delay) 'Call start methode, P5 blink 2mz
repeat 'Main Loop
pst.Str(String("Enter delay ms: ")) 'Prompt user input
delay := pst.DecIn * (clkfreq/1000) 'User imput Delay variable
Thanks for any help
Blake
Comments
I should have read the next paragraph the answer (file) was just underneath it.
Blake
I did you get the object OK?