Robobuild SOUNDrino flame

Project tutorial by Ultra sonic 5 flame

  • 25 views
  • 0 comments
  • 0 respects

RoboXDrino

by Ultra Sonic Flame 5

  • 34 views
  • 0 comments
  • 0 respects

Slimedrino 6000

by Ultra Sonic 5 Flame

  • 71 views
  • 1 comment
  • 0 respects


Replicated projects 0

 Phillip Stevens hasn't replicated any projects yet.

Respected projects 0

 Phillip Stevens hasn't respected any projects yet.
  • Using FreeRTOS multi-tasking in Arduino about 2 months ago

    Massimo actually suggested this step when licensing was converted to MIT, but vitriol ensued. Nothing was done.

    https://groups.google.com/a/arduino.cc/forum/m/#!topic/developers/JdLZ2Mk6aEY

  • Using FreeRTOS multi-tasking in Arduino 2 months ago

    I have successfully ported an Arduino mega program to the FreeRTOS environment. Lots of grief with the standard SD code and String functions. I think that anything using the primitive malloc() functions has problems once scheduling has started.

    Yes. I'd agree with you that Arduino is quite loose with malloc() calls, and that this leads to issues when running on FreeRTOS. Ideally, use the FreeRTOS tools for memory allocation.

    Is there a method to periodically invoke a task at a specified interval?

    Tasks need to keep running. i.e. they are not typically re-invoked periodically. However, the vTaskDelay() function can be used to put a task to sleep for a specific period, and therefore be re-invoked as needed. A sleeping task doesn't use CPU resource.

    It is also possible to launch a task, as a child task. But this is a rather "heavy weight" method of getting the action to occur at a specified interval.

    How does one maintain 2 sets of libraries?- one for Arduino, 1 for FreeRtos.

    In separate directories. The Arduino IDE doesn't support build options for libraries, unfortunately.

    Is there a tutorial on configuring FreeRTOS? I need MSec task switching.

    Yes. There are plenty on the freertos.org web site. vTaskDelayUntil() is your msec timer.

    Is the primitive Arduino millisecond still alive and accurate?

    Yes, they are alive, but won't be accurate because they will be halted when their invoking task is not active. Best not to use them.

  • Using FreeRTOS Semaphores in Arduino IDE 4 months ago

    You need one semaphore for each resource you are giving indepentldent access to. That is one for each serial port.

Add projectSign up / Login