Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: joepasquariello

Search: Search took 0.00 seconds.

  1. Very, very nice. If this is what your prototype...

    Very, very nice. If this is what your prototype looks like, I would love to see your production design.
  2. There are scenarios where OTA updates are...

    There are scenarios where OTA updates are necessary. There is a working method on this forum for update via UART for Teensy 3.2, and maybe 3.5 and 3.6, too. The main limitation is that the new...
  3. Replies
    35
    Views
    22,321

    Can you guys clarify for me whether the solutions...

    Can you guys clarify for me whether the solutions you're talking about now all rely on the USB port and Paul's bootloader on the Teensy? What I'm interested in is being able to update the Teensy...
  4. Replies
    35
    Views
    22,321

    If what you want to do is load firmware without...

    If what you want to do is load firmware without access to the USB port, have a look at this thread. I tried it about a year ago and was able to install an update via a hardware serial port. I only...
  5. If I understand the Teensy correctly, the...

    If I understand the Teensy correctly, the bootloader is unique in the sense that it's not in the main processor's flash. It's in a second, tiny processor. When you program a Teensy, the entire flash...
  6. I'm wondering what to do with my "minimum subset"...

    I'm wondering what to do with my "minimum subset" of Zilch. I think it's useful. Do you mind if I put it on my github as an example cooperative scheduler to go with minios?
  7. I created a github account and a repository...

    I created a github account and a repository called minios (https://github.com/joepasquariello/minios).

    This version is just the timing and mailbox functions. To try it, create a sketch that uses...
  8. Can you explain why you want to go in that...

    Can you explain why you want to go in that direction? I'm looking for the simplest possible method of creating cooperative fibers. If I wanted more features, I would go to preemptive OS like...
  9. I think so. I'm using a minimum subset based on...

    I think so. I'm using a minimum subset based on your pre-2.0 beta. All that remains is an array of tasks, two integers (ntasks, curtask), and functions os_init(), task_create(), task_start(),...
  10. Very nice. I've got it working on 3.2 and LC....

    Very nice. I've got it working on 3.2 and LC. Hope you don't mind if I ask a few questions.

    For the KINETISL, you call task_swap(), and the ASM code assumes that the two arguments (current frame...
  11. Very much agree on staying away from...

    Very much agree on staying away from pseudo-priority. I like the new yield(), which is where all of the speed improvement comes from, but prefer using Arduino setup/loop as 0th task, which is...
  12. The faster yield looks good. Very nice. Do you...

    The faster yield looks good. Very nice. Do you still intend to support Teensy LC?
  13. The loop task exists whether it executes loop()...

    The loop task exists whether it executes loop() or another function. I like to put a while(1) in loop() so it's like other tasks. You should not assume all tasks have the same stack size, if that's...
  14. I'm not sure what you mean. The stack of the loop...

    I'm not sure what you mean. The stack of the loop task is the "system" stack. You don't need to initialize its SP, and you don't need to figure out where it is. The first time yield() gets called,...
  15. init_stack() contains the code shown below, which...

    init_stack() contains the code shown below, which stores the current value of MSP in os.loop_stack_root, but then, rather then setting os.frame[0].stack_top and os.frame[0].sp to the VALUE of...
  16. Kurt, your code looks reasonable, though I'm not...

    Kurt, your code looks reasonable, though I'm not experience with Arduino. I've done lots of systems with similar cooperative tasking. As for using delay(), I think it's something to avoid. The number...
  17. I like the approach of statically allocated...

    I like the approach of statically allocated tasks. That way you can size the heap/stack without considering the number of tasks.



    I'm fairly new to ARM and Arduino, but the way I'll use Zilch...
  18. I got one, too.

    I got one, too.
  19. You can safely do floating-point in a task, but...

    You can safely do floating-point in a task, but if you do them within any ISR, you would need to save those registers. You would also have save them in all of your ISRs. I have always found I can...
  20. I was trying to understand how stackroot was...

    I was trying to understand how stackroot was working. Your init was stackroot=0, and then task_create() was doing stackroot -= stack_size. I assumed all the stacks were in the heap, but I couldn't...
  21. I got my Teensy LC today, and when I tried to...

    I got my Teensy LC today, and when I tried to build Zilch with the suggested changes that started this thread, an error occurs in task_create() that probably explains why you did what you did. I...
  22. I'll let Duff reply. I've tested only with 3.2...

    I'll let Duff reply. I've tested only with 3.2 and 3.5.
  23. Thanks for taking a look. Just to be clear, I...

    Thanks for taking a look. Just to be clear, I didn't touch any of the asm() statements in task_create(). With the "frame" argument available for both KINETISK/L (instead of "frame" and "p"), it...
  24. Just posted a new thread.

    Just posted a new thread.
  25. Zilch cooperative multi-tasking for Teensy 3.x/LC

    I'm using Zilch, and I have a suggestion for the CPP file. task_create() currently has a different signature for KINETISK/L. Both can use the same signature as shown below, which allows much of...
  26. I have a suggestion for reducing KINETISK/L...

    I have a suggestion for reducing KINETISK/L differences in Zilch. Shall I start a new thread with that topic?
  27. I see that you already updated your git...

    I see that you already updated your git repository. Thanks. This is less important, but yesterday we discussed another small issue in Fibers (and also Zilch).

    In both create() and init_stack()

    ...
  28. I'm using Zilch with success on Teensy 3.2 and...

    I'm using Zilch with success on Teensy 3.2 and 3.5. Have you tried it on Teensy LC?

    One small issue in Zilch::create(). The line below increments num_task when already at its maximum. This will...
  29. Per Warren's suggestion, I used the arm version...

    Per Warren's suggestion, I used the arm version of nm.exe to list all of the symbols in the core library, fibers, and the ino file, which are the only objects the go into the exapmple application....
  30. Warren and Christoph, I've been testing with...

    Warren and Christoph,

    I've been testing with the Fibers and Zilch libraries and following your discussion. I find the Fibers example builds and runs on T3.2, but won't build on T3.5 due to missing...
  31. Replies
    87
    Views
    79,820

    That's correct. It only supports A and B quad...

    That's correct. It only supports A and B quad rather channels.
  32. Replies
    9
    Views
    2,695

    I'm completely new to Arduino and Teensy, but not...

    I'm completely new to Arduino and Teensy, but not entirely new to Eclipse, and not at all new to embedded systems. Arduino is definitely the easiest way to get started with Teensy, but I found it...
  33. Replies
    9
    Views
    2,695

    Actually I did read the instructions, but some...

    Actually I did read the instructions, but some required steps are not mentioned, so there's still a non-zero learning curve, especially for someone new to Arduino, Teensy, and Eclipse. The...
  34. Replies
    9
    Views
    2,695

    Thank you. Yes, I figured out how to reference my...

    Thank you. Yes, I figured out how to reference my Arduino\Hardware\Teensy path, and now I can build for Teensy. The next step is to understand how to add references to the Libraries and Examples from...
  35. Replies
    9
    Views
    2,695

    Does this mean that when you install Sloeber, you...

    Does this mean that when you install Sloeber, you extract the "tar.gz" archive to the folder where you installed Arduino and Teensyduino? I just started trying to use the 3.1 (stable release), and...
  36. Replies
    35
    Views
    22,321

    Thanks very much.

    Thanks very much.
  37. Replies
    35
    Views
    22,321

    Hi Paul, I'm pretty blown away by Teensy 3.x....

    Hi Paul,

    I'm pretty blown away by Teensy 3.x. If I succeed in basing our new products on Teensy, we will certainly buy directly from PJRC. Can I expect to be able to buy these for a good number of...
  38. Replies
    87
    Views
    79,820

    Thanks. I read through the entire post, and I'm...

    Thanks. I read through the entire post, and I'm sure I could get by with the simple version.
  39. Replies
    87
    Views
    79,820

    Hello, I'm new to Teensy (3.2), and was...

    Hello,

    I'm new to Teensy (3.2), and was wondering about the quadrature feature of FTM. When you say "64K limit", do you mean the counter doesn't roll over? I've used the quadrature function on...
Results 1 to 39 of 39