Search found 600 matches

by Damien
Thu Apr 04, 2019 1:34 pm
Forum: Pyboard D-series
Topic: WBUS-DIP28 Usb FS port issue (SOLVED)
Replies: 5
Views: 172

Re: WBUS-DIP28 Usb FS port issue

It may be that you have an old bootloader which didn't enable 500mA by default, by pulling Pin(W23) high. To test this, do a fresh hard reset and check the state of pin W23. If it's low then it's 100mA max. It's possible to update mboot from the pyboard REPL: download mboot from https://micropython....
by Damien
Thu Apr 04, 2019 1:08 pm
Forum: Pyboard D-series
Topic: WBUS-DIP28 backup battery possible error?
Replies: 3
Views: 164

Re: WBUS-DIP28 backup battery possible error?

Thanks Pete. The schematics for WBUS-DIP28 are now updated to note that the current limiting resistor is not populated by default, and that the user should pick one that matches the specs of the battery used.
by Damien
Thu Apr 04, 2019 12:06 am
Forum: Pyboard D-series
Topic: Detecting Pyboard D and USB connection
Replies: 4
Views: 162

Re: Detecting Pyboard D and USB connection

On PYBD the USB_VUSB and USB_ID pins are not connected through to the USB port (either FS or HS), so these names should be removed from the build (they are just normal IO pins, Y1 and Y2). If you want to detect if the VCP is enabled and has an active connection on the PC via a serial terminal (ie no...
by Damien
Wed Apr 03, 2019 8:29 am
Forum: Pyboard D-series
Topic: Reset Filesystem ?
Replies: 1
Views: 131

Re: Reset Filesystem ?

The LED cycling on the PYBD goes: red, green, blue, white, and corresponds to:
  • red: normal boot
  • green: safe boot (don't execute boot.py or main.py)
  • blue: factory reset of internal filesystem
  • white: enter mboot USB DFU bootloader
by Damien
Wed Apr 03, 2019 8:25 am
Forum: Pyboard D-series
Topic: WiFi throughput performance using (u)iperf3
Replies: 0
Views: 90

WiFi throughput performance using (u)iperf3

To test WiFi throughput on the PYBD as it was being developed, I wrote a Python module implementing the iperf3 protocol. It's on PyPI as uiperf3 and can be installed on a PYBD using upip.install('uiperf3'). To test performance, run normal iperf3 on your PC in server mode (iperf3 -s) and then on the ...
by Damien
Wed Apr 03, 2019 8:07 am
Forum: Pyboard D-series
Topic: Network scan is blocking
Replies: 1
Views: 113

Re: Network scan is blocking

Now that the code is available you can see how scan works. You'll notice it's just doing a busy wait at the end of the scan() method. So in principle it's pretty easy to make it non-blocking, it's just a matter of defining how the user-facing Python API looks. You can also specify a specific (B)SSID...
by Damien
Wed Apr 03, 2019 8:03 am
Forum: Pyboard D-series
Topic: Building
Replies: 13
Views: 421

Re: Building

I have now made available the code, so you can build PYBD firmware yourself using the code posted here: https://github.com/micropython/micropython/pull/4669 For the low-level WiFi driver there is a binary blob, which is unavoidable given the nature of WiFi regulations. I tried to make it so that thi...
by Damien
Mon Apr 01, 2019 7:04 am
Forum: Pyboard D-series
Topic: Pyboard D: Can't switch to 216 MHz
Replies: 14
Views: 438

Re: Pyboard D: Can't switch to 216 MHz

Switching frequency with machine.freq(...) works OK for me, at least on an SF2W board after a fresh start. Do you have something running (eg SPI, UART, Timer) during the switch? machine.lightsleep(ms) should also work, but the USB will not during a lightsleep, you need to do pyb.usb_mode(None) to di...
by Damien
Mon Apr 01, 2019 6:57 am
Forum: MicroPython pyboard
Topic: New subforum for Pyboard D?
Replies: 1
Views: 137

Re: New subforum for Pyboard D?

Now created.
by Damien
Thu Mar 28, 2019 6:16 am
Forum: MicroPython pyboard
Topic: wiznet - OSError: no available NIC
Replies: 5
Views: 163

Re: wiznet - OSError: no available NIC

You can switch to use a better socket implementation on the wiznet, by enabling MICROPY_PY_LWIP. Either build with "make MICROPY_PY_LWIP=1 MICROPY_PY_WIZNET5K=5500", or set these 2 parameters in mpconfigport.mk