Search found 48 matches

by sebi
Fri Jan 29, 2021 10:03 am
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21895

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

Robert will tell you more, but mpr is a tool that has not been merged yet to the main branch: https://github.com/micropython/micropython/pull/6375 From what I have understood, it works the other way round than classical tools such as rshell: allowing you to mount your raspberry Pi 4 project director...
by sebi
Thu Jan 28, 2021 9:07 am
Forum: Programs, Libraries and Tools
Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Replies: 37
Views: 21895

Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed

Have you seen the other threads on the forum relative to the rp2? viewtopic.php?f=21&t=9646
I think people encounter similar issues and there is some work being done to fix such issues.
by sebi
Tue Sep 15, 2020 10:15 am
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 4230

Re: [SOLVED] sys.settrace on ESP8266

jimmo wrote:
Mon Sep 14, 2020 11:53 pm
Because you disabled it when you were enabling settrace :)
Indeed I should have guessed this :?
Thanks!
I love the potential of sys.settrace!
I wonder why no programming guru in the community has built a kind of debugger/tracer using it yet?!
by sebi
Sun Sep 13, 2020 5:47 pm
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 4230

Re: [SOLVED] sys.settrace on ESP8266

I am playing with sys.settrace on an ESP8266 an I find it to work quite well: I am using it to send some information on UART(1) in order to help me analyse how my code is running. However now I get an error that I was not having when using the standard firmware (the one without sys.settrace ): >>> i...
by sebi
Sat Sep 12, 2020 10:52 am
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 4230

Re: Issues with sys.settrace on ESP8266

Indeed it built perfectly after make clean.
Thanks!
I will now experiment with sys.settrace.
by sebi
Fri Sep 11, 2020 10:01 pm
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 4230

Re: Issues with sys.settrace on ESP8266

Actually I decided to add #define MICROPY_PERSISTENT_CODE_SAVE (1) and #define MICROPY_COMP_CONST (0) to solve the errors I was getting when building with #define MICROPY_PY_SYS_SETTRACE (1) only as I was supposed to: ../../py/mpconfig.h:1670:2: error: #error "MICROPY_PY_SYS_SETTRACE requires MICROP...
by sebi
Thu Sep 10, 2020 11:02 pm
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 4230

[SOLVED] sys.settrace on ESP8266

Dear community, I would like to play with sys.settrace(tracefunc) on an ESP8266. Do you know if it's feasible? According to those explanations on Github @Damien "added some commits (fixes) to get it building on most of the ports". Do you know if it works on an ESP8266? I added those 3 lines to mpcon...
by sebi
Sun Apr 05, 2020 10:51 am
Forum: Programs, Libraries and Tools
Topic: socket state retrieval
Replies: 2
Views: 1648

Re: socket state retrieval

I am connected to the internet via GPRS as I am running MicroPython on an A9G board . Depending on the signal, the connection can be lost and I wanted to check the state of a socket in case of a disconnection. But I found other ways to do this that do not involve parsing the output of socket. Thank ...
by sebi
Sat Mar 28, 2020 1:12 am
Forum: Programs, Libraries and Tools
Topic: socket state retrieval
Replies: 2
Views: 1648

socket state retrieval

Code: Select all

>>> import socket
>>> s = socket.socket()
>>> s
<socket state=0 timeout=-1 incoming=0 off=0>
>>>
How can I retrieve state from s to test its value?
by sebi
Mon Oct 21, 2019 5:52 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 8
Views: 5801

Re: Questions about the nRF port

Hi Glenn, There might be use cases where FatFS would make sense, like in a USB mass storage device scenario. I would like to build a data logger. Are there some limitations with the default microbitFS? Another alternative might be to take a look at the LittleFS work that is ongoing, that might be a ...