Search found 619 matches

by Damien
Wed Oct 16, 2019 10:55 am
Forum: General Discussion and Questions
Topic: Raw mode and help missing from the Unix port?
Replies: 7
Views: 173

Re: Raw mode and help missing from the Unix port?

Some of the unix command-line test do run the unix port through a piped connection to a subprocess with redirected input, so that is certainly possible. In such a case raw REPL would be useful.
by Damien
Wed Oct 16, 2019 10:53 am
Forum: MicroPython pyboard
Topic: What is lowest consumption of D-series?
Replies: 5
Views: 167

Re: What is lowest consumption of D-series?

When developing the pyboard D-series we did a lot of low-power measurements and optimisations, because it was a key goal to obtain optimal lowspower operation of the MCU and WiFi chips. Not all low-power features are available yet, nor all characterised, but to give you an idea: in lowest power mode...
by Damien
Wed Oct 16, 2019 10:31 am
Forum: General Discussion and Questions
Topic: Raw mode and help missing from the Unix port?
Replies: 7
Views: 173

Re: Raw mode and help missing from the Unix port?

For enabling help on the unix port, there was already a PR submitted for this, see https://github.com/micropython/micropython/pull/3436 for the discussion. I'd be in favour of enabling it, at least so that help('modules') works. As for the raw repl, I don't think that's as easy to enable on unix, pa...
by Damien
Thu Oct 03, 2019 2:19 am
Forum: Pyboard D-series
Topic: Unexpected difference between PYBD SF2 and SF6
Replies: 6
Views: 184

Re: Unexpected difference between PYBD SF2 and SF6

Very interesting! Note that PYBD runs by default not at the maximum possible frequency. SF2 is at 120MHz and SF6 at 144MHz by default. This can be increased to the maximum via machine.freq(216_000000). Raw performance should scale roughly linear with clock speed. Maybe it is worth increasing the GC ...
by Damien
Thu Sep 26, 2019 4:22 am
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 35
Views: 860

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

Wow, that looks really great, thanks for sharing it! IMO it would be good to match numpy naming and semantics as much as possible, even for things that seem a little awkward. People who already use numpy already know about the subtleties like upcasting and so it'd make sense to just copy the numpy b...
by Damien
Wed Sep 11, 2019 1:20 am
Forum: General Discussion and Questions
Topic: STM32F769I-DISC1 heap issues
Replies: 8
Views: 407

Re: STM32F769I-DISC1 heap issues

The above fix was merged into master.
by Damien
Tue Sep 10, 2019 3:30 am
Forum: Pyboard D-series
Topic: High Speed USB PHY
Replies: 4
Views: 404

Re: High Speed USB PHY

Docs for pyb.usb_mode() have now been updated. Regarding fast data transmission over USB: there has been some (not publicly available) work done to use MSC to communicate between a board and a PC, by essentially memory mapping an MSC block on both the PC and pyboard and then writing/reading the bloc...
by Damien
Mon Sep 09, 2019 1:31 pm
Forum: Pyboard D-series
Topic: High Speed USB PHY
Replies: 4
Views: 404

Re: High Speed USB PHY

To enable high-speed USB you need to pass "high_speed=True" when setting the USB mode, eg

Code: Select all

pyb.usb_mode('VCP+MSC', high_speed=True)
This definitely needs to be added to the documentation!
by Damien
Sun Sep 08, 2019 11:34 am
Forum: General Discussion and Questions
Topic: STM32F769I-DISC1 heap issues
Replies: 8
Views: 407

Re: STM32F769I-DISC1 heap issues

From what you describe it doesn't sound like a heap fragmentation issue. Heap fragmentation would eventually lead to a MemoryError exception being raised, and then MicroPython will drop to the REPL. You can then run micropython.mem_info(1) to get a view of the heap to see how fragmented it is. If yo...
by Damien
Thu Jul 25, 2019 3:42 am
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 18
Views: 3920

Re: uPing - Ping library for MicroPython

Thanks for testing. I think raw sockets are a good addition (should have been done earlier!).

Would be good to put the uping.py script in a repository somewhere so it can be maintained.