Search found 3466 matches

by dhylands
Tue Sep 22, 2020 2:57 pm
Forum: General Discussion and Questions
Topic: Optimal speed when writing to MicroPython REPL
Replies: 5
Views: 679

Re: Optimal speed when writing to MicroPython REPL

The issue with rshell is that sometimes you’re writing to the filesystem on the device and that can cause the Rx buffer on the device to overflow, since interrupts (and/or code execution) can wind up getting paused for indeterminate amounts of time.
by dhylands
Mon Sep 21, 2020 5:43 pm
Forum: MicroPython pyboard
Topic: Potential Bug
Replies: 9
Views: 899

Re: Potential Bug

Under 1.13 I see no appreciable delay. I seem to recall that I may have small delays (around 3 seconds - most likely filesystem related). MicroPython v1.13-68-g42342fa3c on 2020-09-18; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> >>> from pyb import Pin >>> PB3 = Pin("B3", Pin.IN...
by dhylands
Fri Sep 18, 2020 11:25 pm
Forum: MicroPython pyboard
Topic: Potential Bug
Replies: 9
Views: 899

Re: Potential Bug

I don't see that behavior. My Control-D behaves exactly as expected. Do you have any other software running? Presumably something else must have been modified since I had to do: >>> PB3 = pyb.Pin('B3', pyb.Pin.IN) >>> PB3.value() 1 >>> (i.e. use pyb.Pin rather than just Pin). I tested with both of t...
by dhylands
Fri Sep 18, 2020 11:04 pm
Forum: General Discussion and Questions
Topic: Interpretation of file modification timestamps
Replies: 2
Views: 323

Re: Interpretation of file modification timestamps

Most ports of micropython have no notion of timezone. The Loboris ESP32 port of MicroPython added support for a configurable timezone (at compile time) For most ports os.stat will return whatever time your RTC was initialized to. For the Loboris port, if you use NTP to intiialize the RTC then I thin...
by dhylands
Tue Sep 15, 2020 7:22 pm
Forum: General Discussion and Questions
Topic: Moving files from flash to sd
Replies: 3
Views: 237

Re: Moving files from flash to sd

Since the source and destination are on different file systems, in order to move the file from one place to the other you need to copy it and then remove it from the source. You can't do this using Windows Explorer since it will only let you see the internal flash or the sd but not both at the same ...
by dhylands
Tue Sep 15, 2020 4:27 pm
Forum: Other Boards
Topic: [STM32F103] - Porting MicroPython to the "BluePill" board
Replies: 22
Views: 19252

Re: [STM32F103] - Porting MicroPython to the "BluePill" board

It looks like the the basic that you linked is supported on the BluePill. I've never used it before, so I can't really comment on it.
by dhylands
Tue Sep 15, 2020 2:49 pm
Forum: Other Boards
Topic: [STM32F103] - Porting MicroPython to the "BluePill" board
Replies: 22
Views: 19252

Re: [STM32F103] - Porting MicroPython to the "BluePill" board

The readme says
Use stm32loader.py using the UART bootloader to flash usbdfu.bin
.

As simple as what you want, even the minimal micropython is around 70K IIRC
by dhylands
Mon Sep 14, 2020 3:38 pm
Forum: Other Boards
Topic: [STM32F103] - Porting MicroPython to the "BluePill" board
Replies: 22
Views: 19252

Re: [STM32F103] - Porting MicroPython to the "BluePill" board

Given that the blue pill only has 64K flash in pet sure you won’t be able to get even minimal micropython to run. I have some info on flashing DFU onto the blue pill over here: https://github.com/dhylands/stm32-test/tree/master/board-STM32F103-Mini Note that using the DFU boot loader reduces your av...
by dhylands
Fri Sep 11, 2020 10:10 pm
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 454

Re: Issues with sys.settrace on ESP8266

Usually, if you run into QSTR errors like this, the simple solution is to do a clean followed by a rebuild.
by dhylands
Thu Sep 10, 2020 3:54 pm
Forum: ESP32 boards
Topic: Connecting to RAK811 or RAK4200 Lora Module
Replies: 3
Views: 270

Re: Connecting to RAK811 or RAK4200 Lora Module

When you set a baudrate, the driver will try to match the baudrate as best it can. What you're seeing is the actual baudrate being used. The sender/receiver can typically tolerate a difference of 5-10% and still work (10% is pushing it, but 5% should be fine). 115201 baud is only 0.0009% which is es...