GithubHelp home page GithubHelp logo

Arduino R4 about arduino_freertos_library HOT 5 CLOSED

feilipu avatar feilipu commented on July 20, 2024
Arduino R4

from arduino_freertos_library.

Comments (5)

gpb01 avatar gpb01 commented on July 20, 2024 1

For the Arduino UNO R4 there is already a FreeRTOS port hidden within the Renesas RA4M1 ...

If you look inside the Arduino core libraries for the UNO R4 series, you will see that the FreeRTOS library is already included.

/packages/arduino/hardware/renesas_uno/1.0.4/libraries/Arduino_FreeRTOS

... so, you don't have to install any new library.

Guglielmo

from arduino_freertos_library.

feilipu avatar feilipu commented on July 20, 2024

It is a very relevant question. From the start, I've been clear that this repo is to enable people to learn the FreeRTOS APIs and code in a very simple environment. Most of the complexity and additional code has been stripped away, leaving only the smallest number of files possible to get started.

That is useful when the basic Arduino Decimila and later 328p UNO was the natural first target, but now that that is changing it brings the purpose of this repo into question.

And, as I get the most joy out of writing assembly language for 8 bit processors currently, it is unlikely that I'll be writing a 32 bit port for the Arduino UNO R4 any time soon.

However, there are still two options that you can pursue.

Firstly, you can use one of the larger AVR devices, if the issue is only memory. The MEGA is supported, as are all of the intermediate devices. I ran into memory issues some years ago with some larger projects and built my Goldilocks based on a ATmega1284p to make them successful. All the design files are public, so you can get one made to suit your exact requirements if you prefer.

For the Arduino UNO R4 there is already a FreeRTOS port hidden within the Renesas RA4M1 Flexible Support Package. If you read the source files you should get a pretty good idea of how to strip them out to make an Arduino library similar to this one. As you will have also seen it is just a Cortex M4 which is already supported by FreeRTOS. So it is not a complex job to build what you need.

from arduino_freertos_library.

KenwoodFox avatar KenwoodFox commented on July 20, 2024

Thats a really good response! i appreciate you taking the time to give me all that helpful information!

I knew it would not be easy to do the port here, I figured i would try and offer. But its very handy to know that there are some other options out there! I guess i should check out the FSP as platformio supports it?

I was hoping I could maybe try and port it myself somehow, i know there already is a freertos for that type of processor the cortex m4 but, i didn't know how to include it as a library or if it would work with the arduino enviorment like yours. Everyone says i should move away from Arduino but, im just trying to port and not rewrite everything. And the mega is a good suggestion! but its physically larger so, might not work out for me at the minute.

Thank you again! I'll try and look into FSP and maybe i can make my own adapter for the cortex m4?

from arduino_freertos_library.

feilipu avatar feilipu commented on July 20, 2024

Arduino_FreeRTOS

Perfect!

from arduino_freertos_library.

KenwoodFox avatar KenwoodFox commented on July 20, 2024

Omg, @gpb01 is totally right. I didn't even think it would be so easy XD

I added a single .patch to enable the features feilipu had here and.. it just built! Thank you!

from arduino_freertos_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.