Shop OBEX P1 Docs P2 Docs Learn Events
Parallax Serial Terminal interferes with program. — Parallax Forums

Parallax Serial Terminal interferes with program.

HarpritHarprit Posts: 539
edited 2010-06-27 15:17 in Propeller 1
I am running a PST as a part of a program
It runs in its own Cog
It has plenty or memory and I am not displaying much

If I comment out the PST cog everything runs fine
If I run it things go nuts

I am running motor on pins 4, 5 and 6 there is nothing on pins 30 and 31 except the standard eprom
It calls no I/O, it defines no I/O.

The PST cog changes no variables in any way, it displays them only

This is my second time using the PST, I had no problems the first time.

Harprit.

Comments

  • Paul Sr.Paul Sr. Posts: 435
    edited 2010-06-25 20:34
    Stack issues??
  • HarpritHarprit Posts: 539
    edited 2010-06-25 20:42
    Its in its own Cog in a simple repeat loop
    What other issues do I need to know about

    H
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-06-25 23:20
    No idea yet.

    Your comment that nothing is on P30,31 except the standard eeprom - you mean the eeprom is on P28,29 don't you?

    When you say it does not use any I/O or pins. What pins did you configure PST to use (30,31) ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
    · Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
    · Prop Tools under Development or Completed (Index)
    · Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
    · Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
    My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
  • HarpritHarprit Posts: 539
    edited 2010-06-25 23:31
    Let me fix that and get back
    You might have hit it on the head.

    Harprit
  • HarpritHarprit Posts: 539
    edited 2010-06-26 05:29
    Cluso
    You are right on the 30 31 and 28 29
    I tried figuring 30,31 and input and output and visa versa, nothing works
    Tried them both as inputs and both outputs, nothing works
    tried ignoring both, nothing works
    I have nothing connected to these pins
    Reading some of the registers seems to get screwed up
    Only thing that works is commenting out the Cog start up for the PST.
    Then it work fine but the PST is dead so I cant see what is going on.
    H
  • kuronekokuroneko Posts: 3,623
    edited 2010-06-26 05:32
    Why don't you post a minimal example which shows the problem (unless you want to keep us guessing that is [noparse]:)[/noparse]
  • HarpritHarprit Posts: 539
    edited 2010-06-26 06:17
  • kuronekokuroneko Posts: 3,623
    edited 2010-06-26 06:28
    You simply run out of cogs (there may be other issues though):

    pst.StartRxTx(31,30,0,Baud)      ' +1
    Encoder.Start(0, 1, 0, @Pos)     ' +2                                                           
    cognew(cog_PST,       @stack2)   ' +3                                    
    cognew(Fig_Gain,      @stack3)   ' +4
    cognew(Run_Motor(PWM),@Stack4)   ' +5
    cognew(StrtFlag,      @stack5)   ' +6
    cognew(Read_Pots,     @stack6)   ' +7                     
    cognew(Mov_Mtr,       @stack7)   ' fails
    


    You should be able to merge e.g. StrtFlag and Mov_Mtr. It's SPIN after all.

    Post Edited (kuroneko) : 6/26/2010 6:37:21 AM GMT
  • HarpritHarprit Posts: 539
    edited 2010-06-26 12:40
    K:

    Thank you so much
    I was oblivious to the fact that there is that first Cog! (Newbie!)
    There were no other issues
    The thing runs fine now

    There are some really stupid mistakes in my book too but no one has caught them yet!
    They will.

    Thank you so much.
    H
  • jazzedjazzed Posts: 11,803
    edited 2010-06-26 14:52
    Harprit said...
    There are some really stupid mistakes in my book too but no one has caught them yet!
    They will.
    Yuck .... what happens when the mistakes are found?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Pages: Propeller JVM
  • HarpritHarprit Posts: 539
    edited 2010-06-26 15:33
    j:

    They are tiny things like getting some drawn in LEDs backward. (copied in AutoCAD and then not rechecked)
    Some minor errors in commenting (again from copying code from place to place).
    There are 124 pages of code! A slip or two got by me.
    There are no big problems so it will be quite all right
    Nothing to get yucked out about. No crashers.
    So far there have been no complaints, quite the contrary.
    Do you have a copy of the book or this a third party yuck!

    H
  • jazzedjazzed Posts: 11,803
    edited 2010-06-26 16:55
    Harprit said...
    j:

    They are tiny things like getting some drawn in LEDs backward. (copied in AutoCAD and then not rechecked)
    Some minor errors in commenting (again from copying code from place to place).
    There are 124 pages of code! A slip or two got by me.
    There are no big problems so it will be quite all right
    Nothing to get yucked out about. No crashers.
    So far there have been no complaints, quite the contrary.
    Do you have a copy of the book or this a third party yuck!

    H
    Certainly a third party yuck. For me I see no ROI in changing that relationship.
    I've seen your code. Why should I think the rest would be any more enlightening?

    Still, everyone is allowed stupid mistakes.

    Some of the comments I've seen you make about what you don't know are curious.
    Seriously, are those comments self-deprecating humor or attempts at humility?

    I'll try to avoid further non-constructive comments since I don't really want to hurt you.
    --Steve

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Pages: Propeller JVM
  • HarpritHarprit Posts: 539
    edited 2010-06-26 17:30
    Steve, its not about hurting me, its about moving the conversation forward.
    Non-constructive comments (your words) are not moving it forward.

    I am pretty much sure that there in nothing in the book that would teach you anything. Its really simple stuff.
    It is not for guys like you. On the other hand guys like you have not written a good beginners book. I think
    you dropped the ball. I can hardly blame myself for that relapse.

    My book is for beginners. Beginners seem to like it. That gives me some satisfaction but more importantly
    it moves the conversation forward. More Propellers will be used. There will be happy learners. Parallax will make
    money and so bring forth bigger, faster and more interesting goodies. I will have been a part of it!!

    And I really don't know, its not a joke and its not humility. My undergrad work is as a mechanical engineer
    My graduate work is in materials. I spent a lot of time working in refractories for the steel industry. Electronics
    if pretty much Greek to me. I have to think twice about what the flat on the LED indicates. On the other hand
    I am a scientist and it is a part of my training to find and use information effectively. In the book I found what
    what I thought beginners needed to know and put it down in an orderly manner. Its not rocket science and
    beginners seem to rather like it. I am pleased, you are not, and I wonder why.

    The more books there are about the Propeller the better it is for all of us. Where does getting all yucked out about a
    seemingly popular book you have not even seen much less read fit it. Me thinks you need to reconsider.

    Regards
    Harprit
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-06-27 01:56
    Harpit: Do you have a web reference for your book where you can post any errors found? That would be a good idea.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
    · Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
    · Prop Tools under Development or Completed (Index)
    · Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
    · Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
    My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
  • HarpritHarprit Posts: 539
    edited 2010-06-27 02:13
    Cluso99:

    Yes indeed.
    I am working on it for the encodergeek.com website even as we type.
    They will be posted as they are discovered and/or relayed to me.
    They will not be on the McGraw Hill site as it is too inconvenient and bureaucratic to do daily.
    Once the list looks mature it will be added to the McGraw Hill site.

    Harprit
  • HarpritHarprit Posts: 539
    edited 2010-06-27 15:17
    Currently identified errors in my book are posted at

    http://encodergeek.com/PropError.html

    This list will be updated from time to time as more information becomes available.

    Harprit

    Post Edited (Harprit) : 6/27/2010 7:00:55 PM GMT
Sign In or Register to comment.