Multicore, PST library not working!
kaboom
Posts: 12
Hi, I have a P8X32A. I am posting this in the forum for the Prop 1, but if this is a prop 2, please let me know, and, admins, feel free to move this if it is in the wrong section.
This is my first post on this forum! Please let me know if I am doing something wrong. Enough intro, time for content!
Hi, I am Kaboom
I have 2 issues with my Propeller chip that I would like help with.
First, and most important, multicore does not work. I tried allocating various amounts, ranging from .5 longs to ALL OF THE MEMORY as stack for a blinking LED, which should need almost no stack.
Second, the Parallax Serial Terminal library doesn't work. It doesn't transmit or receive data.
-Kaboom
PS: Does this forum have forum signatures?
This is my first post on this forum! Please let me know if I am doing something wrong. Enough intro, time for content!
Hi, I am Kaboom
I have 2 issues with my Propeller chip that I would like help with.
First, and most important, multicore does not work. I tried allocating various amounts, ranging from .5 longs to ALL OF THE MEMORY as stack for a blinking LED, which should need almost no stack.
Second, the Parallax Serial Terminal library doesn't work. It doesn't transmit or receive data.
-Kaboom
PS: Does this forum have forum signatures?
Comments
Haha, it would appear this forum does have signatures. =P
Also, if you would like help, you should post the code that you're trying to use. Make sure you use code tags so it's readable!
Trying to allocate ALL OF THE MEMORY sounds like a bad idea to me and a great way to guarantee that it doesn't work.
As Brett Weir said, please post your code inside [ code ] [ /code ] tags (but without the spaces inside the brackets).
Welcome! to the Forum
You can use the examples in this Free book(PDF) to learn how to use multiple cogs and the serial SPIN Program.(PST)
https://www.parallax.com/sites/default/files/downloads/122-32305-PE-Kit-Labs-Fundamentals-Text-v1.2.pdf
P.S.
There should be a character limit for signatures. When you look at mine, you'll see why.
Self restraint also works. 'Probably not the best idea to try the patience of the moderators -- especially as a new user.
-Phil
But I never reached the limits of the propeller chip! So you are in the right place. And you will see, in this forum the softer people speak, the more valuable is there contribution.
Indeed. When one's first post is, essentially, "Please help me understand the basics while I annoy the **** out of you with my ridiculous forums signature." things are not likely to go well
Please keep signatures 3 lines or less, sensible and appropriate.
And we all appreciate that very much. But what worries me is this mentality:
In general, we have a good community here. Rules are annoying and get in folks' way. If we can survive without any one given rule because our members are responsible, that makes overall life better.
I used my signature mainly for Parallax Forum links to particular threads that interest me, plus links to threads which are index lists to common threads. Of course they are the ones that interest me the most, but then again, they are the threads where I post the most. So many of the readers of my posts are likely to be interested in other relevant threads.
No. We should not need a lengthy set of rules or forum restrictions to prevent abuse. Common sense, consideration for others and good manners should account for that.
Bollucks. Every application I write is multi-core, and other the basic serial library (FDS) and file access (FSRW), every library is mine -- I have about 125 custom libraries that I use in personal and client projects (clients like Disneyland, Legoland, the movie industry, the Halloween industry -- my focus is on entertainment and the Propeller rocks for what I do).
Bigger bollucks. I don't generally use the PST library myself (I use my own update of FDS), but have run programs by others that do use it.
OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!!
OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!! OPERATOR ERROR!!!
You see how annoying that is?
Wake up. Ask clear, concise questions. Specify the language you're using -- yes, the Propeller is multi-lingual a well. I use Spin. Dave prefers C. Peter uses his neat variation of Forth called Tachyon. Bean created PropBASIC. Your question is like saying, "Paint my house." without specifying the color.
Others: Please excuse my rant -- so many of us spend a lot of personal time trying to help the sincere, so the insincere/self-entitled just burrow way under my skin.
Kaboom: Working Spin demo is attached. It sends messages to PST using the PST library that you claim doesn't work. It simultaneously blinks three LEDs -- each in its own cog (You could do three more using this strategy, but it's wasteful).
Just so you know that I spend a lot time doing serious LED control, this image is from the Riot Games headquarters (Santa Monica, CA); that's me standing in front of the Annie & Tibbers display built for Riot by one of my clients, Alliance Studio (Steve Wang and Eddie Yang -- look them up on IMDb).
This uses one Propeller board (EFX-TEK HC-8+ that I designed) acting as a DMX master sending lighting animation data to several DMX "bricks." The mainline code controls the animations, there is a DMX driver (mine), two flame simulation cogs, and two embers simulation cogs.
Riot hires Alliance to take what they create in a computer and make it real (it's not the first, nor the last Propeller-powered display for them), and Alliance hires me because using the Propeller allows me to translate their vision into working code in very short order.
This one, also for Riot, using traditional LED control along with "smart" LED strips (this was a few years ago, so it used the WS2801 -- I wrote that driver).
I have have many more pictures of successful multicore projects, but I think I've made my point: the multicore Propeller works.
You'll hear nothing further from me.
No questions... just thanks for all the stuff you do.