Search found 63 matches

by water
Tue Apr 27, 2021 2:49 pm
Forum: Other Boards
Topic: [ATSAMD] How to setup SAMD series build environment?
Replies: 6
Views: 548

Re: How to setup SAMD series build environment?

Solved, lib/asf4 folder empty, execute

Code: Select all

git submodule update --init lib/asf4
build pass, but I execute

Code: Select all

git submodule update --init --recursive
from micropython root folder before, why lib/asf4 folder is empty?
by water
Mon Apr 26, 2021 9:55 pm
Forum: Other Boards
Topic: [ATSAMD] How to setup SAMD series build environment?
Replies: 6
Views: 548

Re: How to setup SAMD series build environment?

Code: Select all

make submodules
from ports/samd
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Updating submodules: lib/asf4 lib/tinyusb

Code: Select all

make BOARD=ADAFRUIT_ITSYBITSY_M4_EXPRESS
The error above appear still.
But I success build some STM32 at same environment.
by water
Mon Apr 26, 2021 8:15 pm
Forum: Other Boards
Topic: [ESP32-S2] How to setup ESP32-S2 build environment?
Replies: 0
Views: 789

[ESP32-S2] How to setup ESP32-S2 build environment?

make BOARD=GENERIC_S2 idf.py -D MICROPY_BOARD=GENERIC_S2 -B build-GENERIC_S2 build Checking Python dependencies... Python requirements from /home/mc3/espressif/esp-idf/requirements.txt are satisfied. Executing action: all (aliases: build) Running cmake in directory /home/mc3/micropython/ports/esp32...
by water
Mon Apr 26, 2021 8:04 pm
Forum: Other Boards
Topic: [ATSAMD] How to setup SAMD series build environment?
Replies: 6
Views: 548

[ATSAMD] How to setup SAMD series build environment?

I try to build ATSAMD51 use make BOARD=MINISAM_M4 , return error below: Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. mkdir -p build-MINISAM_M4/genhdr GEN build-MINISAM_M4/genhdr/mpversion.h GEN build-MINISAM_M4/genhdr/moduledefs.h GEN build-MINISAM_M4/genhdr/qst...
by water
Sat Apr 24, 2021 8:54 pm
Forum: ESP32 boards
Topic: Can't include USER_C_MODULES since v1.15 ?
Replies: 1
Views: 344

Can't include USER_C_MODULES since v1.15 ?

Since v1.15, micropython switched to cmake on the ESP32 port, breaking compatibility with user modules (likes ulab),
Is it mean I can't include likes ulab to MicroPython after v1.14 ? have some solutions except switch to v1.14 ?
by water
Wed Feb 17, 2021 8:02 pm
Forum: MicroPython pyboard
Topic: Can I use a Pin as Timer source?
Replies: 1
Views: 344

Can I use a Pin as Timer source?

Can I let Timer.counter() add 1 when Pin level changed.
by water
Fri Feb 12, 2021 7:00 pm
Forum: MicroPython pyboard
Topic: SD card after ejecting and re-inserting.
Replies: 5
Views: 1623

Re: SD card after ejecting and re-inserting.

.deinit() is affect to ESP32 port, I confuse them, on PyBoard, use sd.power() instead,
before eject SD card,

Code: Select all

uos.umount('/sd')
sd.power(0)
True
then re-insert SD card,

Code: Select all

sd.power(1)
True

Code: Select all

uos.mount(sd, '/sd')
If none SD card inserted, execute sd.power(0) or sd.power(1) will return False.
by water
Fri Jan 29, 2021 8:39 pm
Forum: General Discussion and Questions
Topic: Can I pass parameter to Timer callback?
Replies: 1
Views: 181

Can I pass parameter to Timer callback?

How to do that? :?:
Thanks.
by water
Thu Jan 28, 2021 3:22 pm
Forum: MicroPython pyboard
Topic: pyboard with LAN8720
Replies: 3
Views: 1191

Re: pyboard with LAN8720

Interest on it. Can we refer ESP32 network.LAN() implement, it works fine, it initialize with: lan = network.LAN(mdc = machine.Pin(23), mdio = machine.Pin(18), power = machine.Pin(17), phy_type = network.PHY_LAN8720, phy_addr = 1) Relate link: https://github.com/micropython/micropython/blob/master/p...
by water
Thu Jan 28, 2021 2:12 pm
Forum: MicroPython pyboard
Topic: SD card after ejecting and re-inserting.
Replies: 5
Views: 1623

Re: SD card after ejecting and re-inserting.

Try sd.deinit() after uos.umount('/sd') or eject SD card, and initialize 'sd' object again after re-insert SD card.