micro_ros_arduino icon indicating copy to clipboard operation
micro_ros_arduino copied to clipboard

Support for Arduino Uno R4

Open james-yoo opened this issue 1 year ago • 4 comments

Are there any plans to support a new Arduino UNO R4 (Renesas RA4M1 Arm® Cortex®-M4)?

james-yoo avatar Jul 18 '23 05:07 james-yoo

Hello, there is no plan for integrating Arduino UNO R4, but it is easy to integrate new platforms in this repo, and community contributions are very welcomed.

pablogs9 avatar Jul 18 '23 05:07 pablogs9

hi @pablogs9 can you point me to any documentation for integrating new platforms? Thanks

patrickwasp avatar Aug 17 '23 18:08 patrickwasp

Hello, there is no official documentation for making new ports, but you can see some PR that have integrated new platforms:

  • https://github.com/micro-ROS/micro_ros_arduino/pull/35
  • https://github.com/micro-ROS/micro_ros_arduino/pull/1284
  • https://github.com/micro-ROS/micro_ros_arduino/pull/680

In general, you will need to:

  • Determine which compiler (version specific) uses Arduino for the target platform
  • If not available in the building docker, add it here and PR changes.
  • Update the library_generation.sh script to use the compiler to build the micro-ROS static library and put it in the correct folder
  • Update CI to test your changes

In general, this is not a trivial process, but handling it with care should be possible to do it.


IMPORTANT

It is very important to check if one of the already precompiled libraries actually works for the platform.

For example, R4 uses a Cortex-M4 and we already have a precompiled Cortex-M4 library: https://github.com/micro-ROS/micro_ros_arduino/tree/iron/src/cortex-m4

Have you check if adding it as supported plaftorm it works out of the box?

pablogs9 avatar Aug 18 '23 08:08 pablogs9

Hi! I have just checked this issue. I made a PR to get Arduino UNO R4 working over USB

gbr1 avatar Mar 21 '24 11:03 gbr1