Search found 36 matches

by sebi
Tue Sep 15, 2020 10:15 am
Forum: ESP8266 boards
Topic: [SOLVED] sys.settrace on ESP8266
Replies: 8
Views: 226

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: 226

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: 226

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: 226

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: 226

[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: 354

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: 354

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: 1332

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 ...
by sebi
Wed Oct 09, 2019 10:06 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 8
Views: 1332

Re: Questions about the nRF port

As of today (2019-10-10), it is now possible to activate MICROPY_PY_SYS_STDFILES in mpconfigport.h for the nRF port: see this issue on GitHub and the corresponding commit by @dpgeorge to fix it. Additionally, MICROPY_PY_MATH_SPECIAL_FUNCTIONS can also be enabled following the recipe presented in the...
by sebi
Sun Oct 06, 2019 6:33 pm
Forum: Other Boards
Topic: Questions about the nRF port
Replies: 8
Views: 1332

Re: Questions about the nRF port

Dear c45713, I am talking to Glenn Rub right? I was thinking of activating the FAT file system on the main flash memory of a nRF52382 board (it is a fitness tracker wristband and there is no possibility to connect an external SD card to it). As I wrote in this issue on GitHub activating the FAT FS r...