Search found 40 matches

by mathieu
Fri Nov 08, 2019 4:28 pm
Forum: Programs, Libraries and Tools
Topic: Can anybody compile unix port with ulab on a Mac?
Replies: 1
Views: 165

Can anybody compile unix port with ulab on a Mac?

I successfully compiled micropython with ulab for the pyboard-D (SF6), but I can't seem to do the same for the unix port. This is on a Mac with macOS 10.13.6 with the latest XCode tools. Here is my build script: git clone https://github.com/micropython/micropython.git git clone https://github.com/v9...
by mathieu
Mon Nov 04, 2019 9:17 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 62
Views: 3229

Re: ulab, or what you will - numpy on bare metal

In any case, if you can compile a working piece of firmware with the latest source as @jimmo suggested, would you mind reporting back here? If it is still not working, then I would be interested in finding out where the problem lies. I did compile a working version based on micropython 1.11 (6f75c4...
by mathieu
Sun Nov 03, 2019 3:02 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 62
Views: 3229

Re: ulab, or what you will - numpy on bare metal

I would suggest changing all occurrences of "float" to "mp_float_t", that will allow it to compile for all targets with the FP precision supported/configured by the target. Done. I have also uploaded compiled firmware for pybv11, and pybd_sf6 to https://github.com/v923z/micropython-ulab/releases. I...
by mathieu
Fri Nov 01, 2019 3:00 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 62
Views: 3229

Re: ulab, or what you will - numpy on bare metal

Done. I have also uploaded compiled firmware for pybv11, and pybd_sf6 to https://github.com/v923z/micropython-ulab/releases. Thanks again! I just tried on pybd_sf6 and everything seems to work fine, except that: - By default I can connect to the board using rshell. - But after I modify boot.py to i...
by mathieu
Fri Nov 01, 2019 1:06 pm
Forum: Pyboard D-series
Topic: Possible issue with WS2812 driver on pyboard-D
Replies: 4
Views: 284

Re: Possible issue with WS2812 driver on pyboard-D

It would be good to know if the fix is down to the baudrate change or separating initialisation from instantiation. Just checked and the single-line declaration also works. This must be linked to the approximate baudrate (see http://docs.micropython.org/en/v1.9.3/pyboard/library/pyb.SPI.html ). Ano...
by mathieu
Thu Oct 31, 2019 10:21 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 62
Views: 3229

Re: ulab, or what you will - numpy on bare metal

I am trying to compile ulab for the PYBD_SF6 on macOS following instructions found at https://github.com/v923z/micropython-ulab/blob/master/docs/source/ulab.rst . When I run make BOARD=PYBD_SF6 CROSS_COMPILE=/usr/local/bin/arm-none-eabi- I get the following error: make: *** No rule to make target `l...
by mathieu
Thu Oct 31, 2019 10:11 pm
Forum: Pyboard D-series
Topic: Possible issue with WS2812 driver on pyboard-D
Replies: 4
Views: 284

Re: Possible issue with WS2812 driver on pyboard-D

Replying to my own thread: I was able to fix the issue by replacing, in the ws2812 module,

Code: Select all

self.spi = pyb.SPI(spi_bus, pyb.SPI.MASTER, baudrate=3200000, polarity=0, phase=0)
by

Code: Select all

self.spi = pyb.SPI(spi_bus)
self.spi.init(pyb.SPI.MASTER, baudrate=6400000, polarity=0, phase=0)
by mathieu
Wed Oct 30, 2019 9:03 pm
Forum: Pyboard D-series
Topic: Possible issue with WS2812 driver on pyboard-D
Replies: 4
Views: 284

Possible issue with WS2812 driver on pyboard-D

The example code from <https://github.com/JanBednarik/micropython-ws2812> produces the expected result on a pyboard 1.1, but the same code on my pyboard-D lights up the whole LED strip in white, and I'm unable to change any LED. SPI 1 and 2 behave in exactly the same way. Has someone noticed this be...
by mathieu
Sat Oct 19, 2019 3:35 pm
Forum: Pyboard D-series
Topic: WebREPL tutorial
Replies: 7
Views: 445

WebREPL tutorial

Dear all,

Sorry if this is a stupid/lazy question, but I wasn't able to figure it out myself: is it possible to edit or upload code wirelessly on a pyboard-D, using webREPL or some other method? If so, is there a tutorial somewhere?

Thanks in advance.
by mathieu
Thu Oct 03, 2019 4:35 pm
Forum: Pyboard D-series
Topic: I may have bricked I2C(2)
Replies: 13
Views: 669

Re: I may have bricked I2C(2)

This is exactly the reason why Y9 & Y10 don't have internal pull-ups. If PYBD is integrated in another design it is usually required to put I2C pull-up resistors on the supporting board (or even on a remote board). Using 5V as pull-up source is ok. Pull-up resistor values should be in the range of ...