Skip to content
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

Add support for Realtek MCUs #769

Open
kissste opened this issue Sep 6, 2016 · 15 comments
Open

Add support for Realtek MCUs #769

kissste opened this issue Sep 6, 2016 · 15 comments

Comments

@kissste
Copy link

kissste commented Sep 6, 2016

Contains ARM Cortex-M3 processor


RTL8720DN

Realtek RTL8720DN is a Wi-Fi and Bluetooth IC that supports 2.4GHz and 5GHz dual bands for Wi-Fi communication, and Bluetooth Low Energy (BLE) 5.0. BW16 is a module manufactured by B&T, this module is a highly integrated Wi-Fi and Bluetooth module with the RTL8720DN as the main SoC (System on Chip), it can be regarded as an SoC for the Wi-Fi and Bluetooth application with typical SBCs.

@kissste kissste changed the title Add platform RTL8710 / RTL8711 / RTL8915 Add platform RTL8710 / RTL8711 / RTL8195 Sep 6, 2016
@joscha
Copy link

joscha commented Sep 16, 2017

Is there any news on this? Anyone working on it?

@Alxandr
Copy link

Alxandr commented Jan 1, 2018

$15 bounty added to the issue.

@treii28
Copy link

treii28 commented Apr 7, 2018

I would be interested as well. How does one add a bounty? I'll match any bounty (up to $50 - i.e. I'll match that $15 and up to $35 more if anyone else follows suit)

@Alxandr
Copy link

Alxandr commented Apr 8, 2018

@treii28
Copy link

treii28 commented Apr 10, 2018

Cool, matching $15 added.

@ivankravets ivankravets changed the title Add platform RTL8710 / RTL8711 / RTL8195 Add Realtek RTL8710 / RTL8711 / RTL8195 Jul 19, 2018
@ivankravets
Copy link
Member

Could someone explain how do you program these chips now? Does Realtek have own SDK/IDE?

@mtiutiu
Copy link

mtiutiu commented Aug 4, 2018

@ivankravets It seems to be supported by this arduino core Ameba IOT. Works with rtl8710/8195 only and the project seems to be still alive. Regarding the flashing part it works via swd using openocd and a stlink device because it's stm32 based. I gave it a try some time ago and it worked. For openocd integration I used this. I didn't played too much with it so I cannot offer more details. Hope it helps.

@kgunnar
Copy link

kgunnar commented Nov 16, 2018

While not immediately noticeable due to their re-branding, it's clear when looking at the specifications that PINE64's $1.99 PADI IoT Stamp is a RTL8710AF module.

In addition to the Ameba link above providing Arduino support, there is also RtlDuino.

@chris-hatton
Copy link

chris-hatton commented Feb 14, 2020

@ivankravets Yes, Realtek do provide their 'Standard SDK', based on mbed/RTOS, for these RTL8710 / RTL8195 chips. I am also interested in the potential of interfacing PlatformIO directly with this SDK and not via the Arduino support.
I will happily add US$25 to the bounty for this feature.
Presumably with the mbed + RTOS + gcc basis for the Realtek 'Ameba' SDK, most of the interface mechanisms have already been build and it will not be a huge work to drive from PlatformIO?

@ivankravets
Copy link
Member

Could someone help us with adding new dev-platform? There are a lot of examples how to do it https://github.com/platformio/platform-espressif32

Thanks in advance!

@chris-hatton
Copy link

chris-hatton commented Apr 11, 2020

There is an effort by 8Devices to bring the RTL8710 ('Standard' GCC SDK) to PlatformIO.
See: https://github.com/8devices/platformio-realtek-rtl8710b
Hasn't been touched in nearly 2 years but is released under the MIT license meaning we're free to maintain & fork it if necessary. Going to give it a test run.

@benhadad
Copy link

I am coming back to this board myself as it seems a library based on this board will be useful going forward. For one, you can run rust embedded on it in a FreeRTOS setup.

@chris-hatton
Copy link

chris-hatton commented Aug 23, 2021

I've just added a further $50 USD to the BountySource issue taking it up to 💰 $95 USD 💰
...just in case anyone with the knowledge is 'on the edge' about spending the time...

To help spark interest, here are some potential routes to integrating Ameba (meaning RTL8710/RTL8195) with PlatformIO:

C SDK ✅

The official C SDK for the so-called Ameba1 chips in question (RTL8710/RTL8195) can be found here on GitHub.

The PlatformIO documentation for defining new boards, frameworks etc. can be found here.

Arm Mbed 🤔 ✔️

The Ameba Board is supposedly Arm Mbed compatible, and PlatformIO has framework support for Arm Mbed - but not a board definition.

CMSIS 🔌

The Ameba Board is apparently CMSIS-DAP compatible (at least for debugging), while PlatformIO has framework support for CMSIS - but again no board definition for Ameba.

Arduino ⛔

While both Ameba and PlatformIO support the Arduino framework; once more, the requisite Arduino Board Definition for Platform IO is missing. Pursuing this option cannot be considered a full integration in terms of the bounty, due to the reduced control vs. the full C SDK, and reduced ability to integrate 3rd party libraries.

@ivankravets ivankravets changed the title Add Realtek RTL8710 / RTL8711 / RTL8195 Add Realtek RTL8720 / RTL8710 / RTL8711 / RTL8195 Oct 15, 2021
@M4rkoV2
Copy link

M4rkoV2 commented Sep 2, 2022

Any update on that?

@kuba2k2
Copy link

kuba2k2 commented Sep 15, 2022

RTL8195A, RTL8710B, RTL8720C and RTL8720D are totally different chips. Currently, there's an Arduino Core implementation for RTL8710B available in my project: https://github.com/kuba2k2/libretuya
I don't have support for other Realtek chips yet, but it's planned to be available in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests