Search found 344 matches

by loboris
Sat Dec 22, 2018 8:33 am
Forum: ESP32 boards
Topic: Virtual Memory RAM
Replies: 4
Views: 3299

Re: Virtual Memory RAM

Is ESP32 for micropython support 8M psRAM now? I'm testing the support for the 2nd half of the 8MB SPIRAM in my MicroPython port. As the access is based on bank switching (there is no other way to use it), it is not suitable for MicroPython heap, but it will be possible to use it for storing data. ...
by loboris
Fri Dec 21, 2018 9:12 am
Forum: ESP32 boards
Topic: Virtual Memory RAM
Replies: 4
Views: 3299

Re: Virtual Memory RAM

You should use ESP32 board/module with 4MB psRAM (SPIRAM), then you can have up to 4MB free RAM (heap).
by loboris
Mon Dec 17, 2018 8:44 pm
Forum: Other Boards
Topic: K210(Sipeed M1) run face tracking PT demo with maixpy
Replies: 9
Views: 9608

Re: K210(Sipeed M1) run face tracking PT demo with maixpy

I've tested the PT face tracking demo and it works very well. I've had some issues using kflash.py (on Ubuntu 18.04) to upload the firmware. The upload speed was extremely slow , no difference if used with 115200 or 2000000 bd and always failed after some time. Then I've tried using -l option and th...
by loboris
Fri Dec 14, 2018 10:42 pm
Forum: ESP32 boards
Topic: ESP32 broken filesystem
Replies: 4
Views: 4170

Re: ESP32 broken filesystem

Using SPIFFS or LittleFS for internal file system may help as they are both more resilient to power loss (by design) than FatFS.
by loboris
Mon Dec 03, 2018 9:33 am
Forum: General Discussion and Questions
Topic: zmodem
Replies: 6
Views: 5038

Re: zmodem

You just have to change the UART baudrate in menuconfig : → Component config → ESP32-specific → UART console baud rate In the current GitHub version there is a small bug which will prevent MicroPython REPL to operate at other than 115200 baud rates. If you want to test, you have to make a small chan...
by loboris
Sun Dec 02, 2018 11:38 pm
Forum: General Discussion and Questions
Topic: zmodem
Replies: 6
Views: 5038

Re: zmodem

Don't forget that we don't need to use 115200 baud. Both ESP32 and K210 have UARTS capable of running at 5 Mbaud speeds :!:
Of course, the speed must be supported by USBtoUART chip.
On most ESP32 boards I have, MicroPython works with no issues with 921600 baud.
by loboris
Sun Dec 02, 2018 4:08 pm
Forum: General Discussion and Questions
Topic: zmodem
Replies: 6
Views: 5038

Re: zmodem

zmodem protocol can use RLE encoding which means the transfer of the files can be faster than the UART speed. For transfering text files (e.g. Python sources) or any files which can be RLE encoded with good enough compression ratio the speed can be at least double of the UART speed. As far as I kno...
by loboris
Fri Nov 30, 2018 3:52 pm
Forum: General Discussion and Questions
Topic: MQTT command topic, state restoring etc
Replies: 7
Views: 4602

Re: MQTT command topic, state restoring etc

restoring local state from local flash would require saving each state change to a file. That surely wears down the flash fast whereas the state is available as a retained message over mqtt anyway. If you have your own remote server (and it is cheap and easy to create one in the cloud), you could s...
by loboris
Sun Nov 25, 2018 10:16 pm
Forum: Development of MicroPython
Topic: bound method type check
Replies: 2
Views: 2696

Re: bound method type check

Code: Select all

if ((MP_OBJ_IS_FUN(args[ARG_func].u_obj)) || (MP_OBJ_IS_METH(args[ARG_func].u_obj))) {
}
MP_OBJ_IS_METH define:

Code: Select all

#define MP_OBJ_IS_METH(o) (MP_OBJ_IS_OBJ(o) && (((mp_obj_base_t*)MP_OBJ_TO_PTR(o))->type->name == MP_QSTR_bound_method))
obj.h
by loboris
Wed Nov 21, 2018 3:55 pm
Forum: General Discussion and Questions
Topic: Strange GPIO behaviour
Replies: 6
Views: 4112

Re: Strange GPIO behaviour

So if that part is missing I can't do anything to solve the problem? If the pin is not used for wake-up, no deinit is needed. If you remove esp32.wake_on_ext0(d1) then you cannot wake-up with a pin. It works in my MicroPython port ( Forum ). >>> import machine >>> rtc = machine.RTC() >>> d1 = machi...