Search found 352 matches

by rcolistete
Tue Aug 18, 2020 1:45 am
Forum: Other Boards
Topic: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?
Replies: 8
Views: 6661

Re: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?

Updating some info that may be useful about microbitFS on nRF boards with MicroPython : - by default, ports/nrf uses microbitFS as file system, see : * issue #6194 "nrf: internal flash filesystem/storage not implemented with VFS" : Today, microbitfs (MBFS) is default internal flash filesystem for al...
by rcolistete
Tue Aug 18, 2020 1:29 am
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 8
Views: 5729

Re: Questions about the nRF port

See this MicroPython GitHub issue #6344 "nRF microbit (nRF51822) issues" , for example : - ports/nrf for microbit with default configuration; - file system microbitfs is not accessible via ufs or Mu Editor. How to externally acess the internal file system ? With official MicroPython for BBC micro:bi...
by rcolistete
Mon Aug 17, 2020 11:34 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 108
Views: 91997

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

Some teasing : 8-) :mrgreen: MicroPython v1.12-670-gf55324882 on 2020-08-17; micro:bit with NRF51822 Type "help()" for more information. import gc gc.collect() gc.mem_free() 10416 1/3 0.3333333 import ulab as np np.__version__ '0.54.2' np. __class__ __name__ __version__ approx arange array compare e...
by rcolistete
Mon Aug 17, 2020 6:27 pm
Forum: ESP32 boards
Topic: issue with setting up a toolchain
Replies: 10
Views: 4956

Re: issue with setting up a toolchain

List the steps you have used, like the git clone command, etc.
by rcolistete
Mon Aug 17, 2020 6:07 pm
Forum: General Discussion and Questions
Topic: How to disable wifi on ESP32
Replies: 5
Views: 3185

Re: How to disable wifi on ESP32

It is not currently possible using MicroPython mainline/official, see this GitHub issue #6219 "[ESP32] Read from ADC2 Pins".

But the MicroPython ESP32 Lobo firmware supports ADC2 .
by rcolistete
Sat Aug 15, 2020 7:50 pm
Forum: micro:bit boards
Topic: Better way to Trigger A+B Buttons
Replies: 2
Views: 3010

Re: Better way to Trigger A+B Buttons

See this GitHub issue #470 "Docs - Add discussion on how to detect "simultaneous" press on button a and b" . So this example works : from microbit import * while True: # Solves issue 1 sleep(50) # How long sleep is "just enough"? # Solves issue 2 (a, b) = (button_a.was_pressed(), button_b.was_presse...
by rcolistete
Fri Aug 14, 2020 3:01 pm
Forum: General Discussion and Questions
Topic: Run two funktions at the same Time on ESP32
Replies: 2
Views: 1617

Re: Run two funktions at the same Time on ESP32

Another hardware, K210 boards with Lobo firmware has the option :
Running two independent Micropython instances on two K210 cores is supported.
Rich set of functions for data exchange between instances is provided.
by rcolistete
Thu Aug 13, 2020 2:41 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 7261

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

Any comments about drawbacks of "MICROPY_PY_REVERSE_SPECIAL_METHODS" ?

Otherwise I'll always use "MICROPY_PY_REVERSE_SPECIAL_METHODS" in my new firmware builds for Pyboard's, ESP8266, ESP32, Pycom, etc.
by rcolistete
Wed Aug 12, 2020 5:21 pm
Forum: ESP8266 boards
Topic: Iram1_0_seg overflow with native decorator
Replies: 5
Views: 2458

Re: Iram1_0_seg overflow with native decorator

See line 183 above : frozen modules are kept in IROM. But running @micropython.native decorator needs IRAM if you have not configured "esp.set_native_code_location(start, length)" to use IROM. I don't have any experience with "esp.set_native_code_location(start, length)", so it is better to have opi...
by rcolistete
Wed Aug 12, 2020 2:02 pm
Forum: ESP8266 boards
Topic: Iram1_0_seg overflow with native decorator
Replies: 5
Views: 2458

Re: Iram1_0_seg overflow

Sorry, I think my answer is not a solution for your case with @micropython.native decorator (but it is for native C user/external modules).

IRAM size is fixed, AFAIK. So there is maximum size of code using decorators. But try to use "esp.set_native_code_location(start, length)".