Search found 623 matches

by Damien
Fri Nov 22, 2019 4:12 am
Forum: Development of MicroPython
Topic: How to soft reset the whole context of upy when process running?
Replies: 2
Views: 132

Re: How to soft reset the whole context of upy when process running?

In your code you call both mp_stack_ctrl_init() and mp_stack_set_top(...). Only one of these should be called, usually it's mp_stack_ctrl_init() which sets the stack top automatically. mp_stack_set_top is only used if setting it automatically doesn't work. Otherwise, the stack limit checking is quit...
by Damien
Fri Nov 01, 2019 10:51 am
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 62
Views: 2616

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

The PYBD_SF6 uses double precision float, and only provides the double precision math functions (eg sin, cos, not sinf, cosf). I see in your ulab code that you use "float" exclusively as the FP data type (at the C level). Is this a restriction or can it also work with double? I would suggest changin...
by Damien
Fri Nov 01, 2019 10:48 am
Forum: Pyboard D-series
Topic: DFU flashing 2nd partition takes 20 minutes
Replies: 9
Views: 375

Re: DFU flashing 2nd partition takes 20 minutes

This really sounds like a hardware issue with the external QSPI flash, the memory-mapped one. The only thing I can suggest at this stage is to remove the PYBD_SF2 completely from anything connected to it, and power it up over USB and measure the current draw using a USB power meter. It should draw a...
by Damien
Tue Oct 29, 2019 6:15 am
Forum: Other Boards
Topic: Split Other Boards into port specific forums?
Replies: 2
Views: 267

Re: Split Other Boards into port specific forums?

I think it makes sense to create new sub-forums for ports, but only as they see interest/use. The nrf port is a good candidate to start with.
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: 362

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: 332

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: 362

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: 353

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: 62
Views: 2616

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: 512

Re: STM32F769I-DISC1 heap issues

The above fix was merged into master.