Skip to content

Porting MicroPython to Renesas RA4M1 and RA6M2 #7034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
S-Nakamura-R opened this issue Mar 15, 2021 · 5 comments
Closed

Porting MicroPython to Renesas RA4M1 and RA6M2 #7034

S-Nakamura-R opened this issue Mar 15, 2021 · 5 comments
Labels
ports Relates to multiple ports, or a new/proposed port

Comments

@S-Nakamura-R
Copy link

Hi,
I am Saori Nakamura from Renesas Electronics.

We ported MicroPython to our Cortex-M4 based Microcontroller, RA4M1 and RA6M2.
Now we are planning to submit pull request.
If there is something we should consider, would you please let us know?

We confirmed Contributor Guideline and #5449.
In our case, the answers for the items listed in #5449 are as followings.

  1. are the chips widely available to the public and will they be for the foreseeable future?
    => Yes.
    Access the pages and click “Buy / Quote” of “Product Options”, you can find many distributors.
    RA4M1:
    https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra4m1-32-bit-microcontrollers-48mhz-arm-cortex-m4-and-lcd-controller-and-cap-touch-hmi
    RA6M2:
    https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra6m2-32-bit-microcontrollers-120mhz-medium-size-memory-integration-and-ethernet
    And, “RA” series is part of the Renesas Product Longevity Program (PLP).
    https://www.renesas.com/us/en/support/product-longevity-program-plp

  2. are development boards easily available?
    => Yes. RA is already widely available and will be even more in the future.
    RA4M1 Clicker board:
    https://www.mikroe.com/ra4m1-clicker
    Also, the boards are easily available from Digi-key, Mouser, and etc.
    EK-RA6M2:
    https://www.renesas.com/us/en/buy-sample/check-inventory/result?show_price=1&partno=RTK7EKA6M2S00001BU&exact=1
    The boards are easily available from many distributors.

  3. is the toolchain open source (or at least free to obtain)?
    => Yes. GCC is used and it is available .
    https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

  4. are there plans to support multiple MCUs/SoCs?
    => Yes, it is our intention to extend MiroPython support to multiple groups within the RA MCU lineup, and also potentially to other Renesas MCU families.

  5. will there be someone around for the long term to maintain this port?
    => Yes, it is our intention to offer long term maintenance of this port, in line with Renesas’ usual policy of customer care.

  6. the license (and copyright) must be appropriate.
    => Yes, the license follows https://docs.micropython.org/en/latest/license.html

  7. support for a new device must be sustainable in the long term (that's a general remark).
    => Yes, we fully agree, please refer to 5.

  8. a new port should ideally not touch any files in any directory except the new port directory (and any new submodules), so fixes/updates to the core (py/, extmod/, etc) should be in separate PR's
    => Yes.

  9. the new port name should be generic enough in scope to encompass new MCUs from the same family in the future
    => Yes, we fully agree and this is our intention.

The ported codes follow the Code Conventions and we applied the test suite included this package and confirmed the results.

@stinos
Copy link
Contributor

stinos commented Mar 15, 2021

Answering 'yes' on all points is a good start for sure :)

@dpgeorge perhaps just add #5449 (comment) to Contributor Guidelines?

@S-Nakamura-R
Copy link
Author

@stinos
Thanks! I created PR.

@chrismas9
Copy link
Contributor

Great to see this port. The RA4M1 is the first 5V MCU running MicroPython. 5V is still used in noisy automotive and industrial applications and can drive power MOSFETs directly.

@dpgeorge dpgeorge added the ports Relates to multiple ports, or a new/proposed port label Apr 7, 2021
@Meekdai
Copy link

Meekdai commented Apr 15, 2022

Great, I hope to have the opportunity to use Renesas MCU running micropython in the future.

@dpgeorge
Copy link
Member

The renesas-ra port was added in 0f57ccf

tannewt pushed a commit to tannewt/circuitpython that referenced this issue Oct 22, 2022
.. these have been converted to shared-bindings style
and have their own documentation now that better matches our
implementation.

Closes: micropython#7034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ports Relates to multiple ports, or a new/proposed port
Projects
None yet
Development

No branches or pull requests

5 participants