Trying to run 4.3.3

Discussion about ViewPort, the premier development environment for the Propeller. Edit, debug and run both spin and c code.

Trying to run 4.3.3

Postby felich » Sat Jul 24, 2010 11:17 pm

I downloaded 4.3.3 and installed it after uninstalling my previous version.
Viewport acknowledges my registration (jfelich@pandoradatasystems.com)

But... Now I can't connect to my Pro Dev Board. :?

Propeller Tool compiles and loads OK.
Viewport compiles OK.
When I try to connect I get a message saying:

Could not connect to Propeller
Unable to receive configuration
Timed Out.
Com19: Opened port, but could not receive configuration.

The last time this happened it was because my conduit.spin was out of date.

Is conduit.spin included with the 4.3.3 installation?
If so, where does it get stored?

Thanks for your help,
Jim
felich
 
Posts: 10
Joined: Wed Mar 03, 2010 2:10 am

Re: Trying to run 4.4

Postby felich » Fri Jul 30, 2010 6:38 am

I have now dowloaded 4.4 and am running conduit 4.4

I can compile and load my Pro Dev Board using the Propeller tool, but no joy trying to connect to Viewport.
The same thing happens using a Prop Demo Board.

Here is my code - I just don't see what I am doing wrong:

CON

_CLKMODE = XTAL1 + PLL16X
_XINFREQ = 5_000_000

VAR
long potentiometer,vp_p,vp_pin,vp_pot 'needs to be a long for VP
long frame[406] 'needed for QuickSample
long stack[50]
long stack2[50]

OBJ
vp : "Conduit.spin"
qs : "QuickSample.spin" 'measures INA up to 20mhz
disp : "MySerialDisplay"
adc : "ADC0831"
motor : "SN754410"

PUB start

vp_pot:= 127

CogNew(runADC, @stack2)
CogNew(runMotor, @stack)

disp.init

vp.register(qs.sampleINA(@frame,1)) 'sample INA with 1 cog up to 20Mhz
vp.config(string("var:Pot,Speed,I/O direction,Control"))
vp.share(@potentiometer,@vp_pot) 'Just needs to be the first and last var (see above)

repeat
disp.display(@potentiometer)
waitcnt(clkfreq+cnt)

PUB runMotor
motor.start

repeat
motor.setp(potentiometer - vp_pot)
waitcnt(clkfreq/1000+cnt)

PUB runADC
adc.periodicAcquireValue(@potentiometer)
{{
felich
 
Posts: 10
Joined: Wed Mar 03, 2010 2:10 am

Re: Trying to run 4.3.3

Postby Hanno » Sat Jul 31, 2010 10:11 pm

Hmm, looks ok- your clock constants are right and you're including vp.share. Possibly your stack may be too small- for debugging, try setting both to 100? Also, for sanity's sake, temporarily comment out the "cognew" and "disp.init"- or alternatively let me know if the samples that came with ViewPort work...
Hanno
Hanno
Site Admin
 
Posts: 282
Joined: Sat Apr 12, 2008 12:33 am

Re: Trying to run 4.3.3

Postby felich » Mon Aug 02, 2010 12:31 am

Well, disp was the problem.
It was trying to use the same pins as conduit.
I should have caught that. :oops:

Sorry to bother you, but thank you very much for your help.
felich
 
Posts: 10
Joined: Wed Mar 03, 2010 2:10 am

Re: Trying to run 4.3.3

Postby Hanno » Tue Aug 03, 2010 10:16 pm

No problem! Glad you caught it- I'll put that on my list of things to check.
Hanno
Hanno
Site Admin
 
Posts: 282
Joined: Sat Apr 12, 2008 12:33 am


Return to ViewPort

Who is online

Users browsing this forum: No registered users and 2 guests

cron