Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
No response ?!?!
Once again, is there any resource or reference document to install the compile toolchain to compile ATSAMD's base MicroPython ?
Dominique
Once again, is there any resource or reference document to install the compile toolchain to compile ATSAMD's base MicroPython ?
Dominique
-
- Posts: 169
- Joined: Fri Aug 19, 2016 11:55 am
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
I don’t know but I assume the same toolchain as used to build CircuitPython should get you going. There’s a very detailed and up-to-date guide on that. As to building MicroPython, I assume the procedure is similar to other ARM-based targets such as STM32.
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Not that I'm aware of - but I know of two people that have built the SAMD port for the XIAO (SAMD21) recently, which is similar.
You can follow the STM32 guide for the dependencies (cross compilers is the same: arm-none-eabi-gcc) and then something like:
Code: Select all
> make -C mpy-cross
> cd ports/samd
> make submodules
> make BOARD=ADAFRUIT_ITSYBITSY_M4_EXPRESS
I haven't built for this board before but hopefully that will give you a start - let me know if you're still stuck.
I'll add 'Update README.md for SAMD port' to my todo list...
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Before working on a more complex portage (ATSAMD51) I did focus my intention on SAMD21.
So I compiled MicroPython for the Adafruit Trinket M0 featuring an SAMD21E18A mcu.
1) I did install an Ubuntu machine on a virtual machine (Linux machine to ease the installation process). I did notice that Ubuntu server edition is more efficient for the compilation (no need to manage a graphical interface together with the compilation process).
2) I did follow the official Getting Starter Instructions at https://docs.micropython.org/en/latest/ ... arted.html
Please note that some package named had changed. Replace
with
I did compile the unix version and the stm32 version. Thoses are good examples to get familliar with the build process.
3) Finally, I did compiled the firmware for the Trinket M0 (which is also an ARM mcu)
this will generates the u2f file to upload to the board. The file will be located there.
Now... I need to wait for a Trinket M0 to upload the firmware
So I compiled MicroPython for the Adafruit Trinket M0 featuring an SAMD21E18A mcu.
1) I did install an Ubuntu machine on a virtual machine (Linux machine to ease the installation process). I did notice that Ubuntu server edition is more efficient for the compilation (no need to manage a graphical interface together with the compilation process).
2) I did follow the official Getting Starter Instructions at https://docs.micropython.org/en/latest/ ... arted.html
Please note that some package named had changed. Replace
Code: Select all
$ sudo apt-get install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib
Code: Select all
$ sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi
3) Finally, I did compiled the firmware for the Trinket M0 (which is also an ARM mcu)
Code: Select all
$ cd ~/micropython/ports/samd
$ make submodules
$ make BOARD=ADAFRUIT_TRINKET_M0
Code: Select all
ls ~/micropython/ports/samd/build-ADAFRUIT_TRINKET_M0/firmware.uf2
Last edited by MCHobby on Mon Apr 05, 2021 11:15 pm, edited 1 time in total.
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Thanks! Note that binutils-arm-none-eabif should be binutils-arm-none-eabi.
I've got a Trinket lurking about somewhere, as well as a Xiao.
Update: … success! ish …
So as expected from mattyt's comment last year, no peripherals supported, not even Pins. No obvious filesystem, either. But it built, and made a UF2, that loaded and did a thing.
I haven't found the working Xiao (SAMD21) MicroPython port anywhere. I know it can run ArduPy, SeeedStudio's MicroPython that lives on top of Arduino. But that's cheating.
Incidentally, if anyone gets those "Partnership with SeeedStudio" emails offering free kit, they're legit! That's how I got my Wio Terminal. All they ask is that you write something about the hardware, with a link back to them. It would be a good opportunity for MicroPython devs who want to work on SAMD support to get free hardware.
I've got a Trinket lurking about somewhere, as well as a Xiao.
Update: … success! ish …
Code: Select all
MicroPython v1.14-132-gd87f42b0e on 2021-04-04; Trinket M0 with SAMD21E18A
>>> import machine
>>> machine.
__name__ bootloader freq mem16
mem32 mem8 reset
I haven't found the working Xiao (SAMD21) MicroPython port anywhere. I know it can run ArduPy, SeeedStudio's MicroPython that lives on top of Arduino. But that's cheating.
Incidentally, if anyone gets those "Partnership with SeeedStudio" emails offering free kit, they're legit! That's how I got my Wio Terminal. All they ask is that you write something about the hardware, with a link back to them. It would be a good opportunity for MicroPython devs who want to work on SAMD support to get free hardware.
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Hi there,
I'm progressing on the implementation... I just compiled a living SAMD21 MicroPython with Pin class declaration.
Did not work with C since my 25 (I'm also 50 now)... OMG... so hard!
Now, I still need to connect pipes.... but that's promising
I'm progressing on the implementation... I just compiled a living SAMD21 MicroPython with Pin class declaration.
Did not work with C since my 25 (I'm also 50 now)... OMG... so hard!
Now, I still need to connect pipes.... but that's promising
- rcolistete
- Posts: 352
- Joined: Thu Dec 31, 2015 3:12 pm
- Location: Brazil
- Contact:
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
There is CircuitPython for Seeeduino Wio Terminal since v6.0.0 :
https://circuitpython.org/board/seeeduino_wio_terminal/
https://circuitpython.org/board/seeeduino_wio_terminal/
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Hi,
I'm just MicroPython addict (I do prefer that API)
Regards,
Dominique
I'm just MicroPython addict (I do prefer that API)
Regards,
Dominique
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
I see that there's now a nightly build for the ItsyBitsy M4, but I don't have a clue as to whether it's another peripheral-less build like those mentioned previously. Were it complete that would seem to be a nearly complete starting point to get the WIOT-specific stuff going.
regards,
-e
regards,
-e
Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
I'm working at extending the SAMD port and made already some progress. The state is contain in PR8533 at the repository: https://github.com/micropython/micropython/pull/8533, which shows the features already added. At the moment I'm implementing PWM. That will take a few days. Next on the list are hardware SPI/I2C (SoftSPI and SoftI2C are already present), WDT, RTC, DAC.
My plan is to first extend features that will be supported by both SAMD21 and SAMD51. Once the Firmware size exceed the available space for SAMD21, only extension for SAMD51 will be added. That may also include enhancements for classes present in both device types, like UART.
Note that there is still a bug in TinyUSB. If you paste text into the REPL with echo, the USB output locks up (see https://github.com/micropython/micropython/issues/8521).
My plan is to first extend features that will be supported by both SAMD21 and SAMD51. Once the Firmware size exceed the available space for SAMD21, only extension for SAMD51 will be added. That may also include enhancements for classes present in both device types, like UART.
Note that there is still a bug in TinyUSB. If you paste text into the REPL with echo, the USB output locks up (see https://github.com/micropython/micropython/issues/8521).