Search found 1700 matches

by jimmo
Mon Jul 13, 2020 4:26 am
Forum: Development of MicroPython
Topic: QSTR database isn't updated when building
Replies: 5
Views: 116

Re: QSTR database isn't updated when building

It happened once more today. The sequence was ... Ahh, yeah, this definitely explains it. The problem here is that Make only cares about whether the things in the dependency list are newer than the output. Adding new things to the dependency list doesn't change anything if the new inputs are themse...
by jimmo
Mon Jul 13, 2020 2:47 am
Forum: Other Boards
Topic: WeActSTM32F411CEU6 filesystem corruption
Replies: 4
Views: 96

Re: WeActSTM32F411CEU6 filesystem corruption

How do I re-claim my little dev board? I think the situation you're in is that you have two filesystems that overlap (the original one, and the new one that starts at a different location). The firmware update only writes to the region of flash that contains the code, but you can do a full "mass er...
by jimmo
Mon Jul 13, 2020 2:38 am
Forum: Other Boards
Topic: [nRF52832] Store python code on chip
Replies: 7
Views: 153

Re: [nRF52832] Store python code on chip

I think the issue is that you'll need

Code: Select all

import os
print(os.listdir())
The automatic printing of expressions is a REPL-specific feature (in fact, it's the P in REPL).
by jimmo
Mon Jul 13, 2020 2:31 am
Forum: ESP8266 boards
Topic: UART issue
Replies: 6
Views: 1970

Re: UART issue

using this code Node mcu and using serial monitor see whats happening as i plugged the serial monitor repl stops working ? can anyone please help me ? Is your serial monitor also running at 9600 baud? This is a limitation of the ESP8266 -- there is only one UART, so it will be shared with the REPL.
by jimmo
Mon Jul 13, 2020 2:27 am
Forum: ESP32 boards
Topic: Requests Error
Replies: 1
Views: 47

Re: Requests Error

I think this is happening because urequests couldn't bind to a local network interface, because the WiFi wasn't connected yet. After calling "sta_if.connect('', '')" you need to wait until it's connected. import time for i in range(50): if sta_if.isconnected(): break time.sleep_ms(100) else: raise R...
by jimmo
Mon Jul 13, 2020 2:18 am
Forum: General Discussion and Questions
Topic: OSError: -257
Replies: 2
Views: 68

Re: OSError: -257

I'm pretty sure that means "Invalid Handle".

Can you provide more information -- what is your code doing when you see this error?
by jimmo
Mon Jul 13, 2020 2:16 am
Forum: ESP8266 boards
Topic: main.py does not run automatically
Replies: 5
Views: 123

Re: main.py does not run automatically

Yes, you can write a program on the micropython that receives commands over wifi from a host program running on your PC. Here's a simple web server for MicroPython that comes with an example of controlling GPIO pins remotely. https://github.com/miguelgrinberg/microdot For a more complete solution, m...
by jimmo
Mon Jul 13, 2020 2:12 am
Forum: Development of MicroPython
Topic: Getting Started with STM32
Replies: 3
Views: 83

Re: Getting Started with STM32

Thanks to current working-from-home rules I am stuck using a Windows 10 laptop for which I am unable to set up WSL. I expect that building micropython within a Linux environment might go the smoothest as then I'm simply following the documentation, but if anyone has any pointers I should follow I'd...
by jimmo
Mon Jul 13, 2020 2:05 am
Forum: ESP32 boards
Topic: Usocket server problem!
Replies: 1
Views: 44

Re: Usocket server problem!

I would recommend adding a "print" inside the "except" just to make sure that there wasn't any errors. Also should that "continue" be a "break" ?
by jimmo
Mon Jul 13, 2020 2:03 am
Forum: Pyboard D-series
Topic: SD Card not registering on Pyboard SF6W
Replies: 1
Views: 59

Re: SD Card not registering on Pyboard SF6W

I have several SF6W's, This indicates it's probably not something you're doing wrong! I assume you're doing: import os import pyb os.mount(pyb.SDCard(), "/sd") Has anyone else experienced this or have any troubleshooting suggestions? I guess the main thing I'd try is to see if the block device work...