Search found 523 matches

by Damien
Wed Jun 28, 2017 2:53 am
Forum: Development of MicroPython
Topic: Debugging a memory problem
Replies: 9
Views: 471

Re: Debugging a memory problem

After some more debugging we realized that this object contains pointers to previously allocated object and the next object in line - but when the object is removed from the list its "prev" and "next" pointers are not zeroed - this implementation is in the external library. Sinc...
by Damien
Wed Jun 28, 2017 2:41 am
Forum: ESP8266 boards
Topic: unexpected network behavior with release 1.9
Replies: 6
Views: 289

Re: unexpected network behavior with release 1.9

@Capstan: are you using pre-built firmware from micropython.org/download, or are you compiling it yourself?
by Damien
Tue Jun 27, 2017 6:33 am
Forum: General Discussion and Questions
Topic: weird behaviour breaking from a nested loop
Replies: 2
Views: 122

Re: weird behaviour breaking from a nested loop

This issues has been fixed in the latest version of the code.
by Damien
Tue Jun 27, 2017 6:27 am
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 3
Views: 129

Re: A way to catch any exception?

When a script finishes (either it runs to the end or has an uncaught exception) then the MicroPython runtime will go to the REPL. If you want to catch any exception and handle that (eg reset the device) then do as suggested above, run your outer-most code in a try/except block, and do the error hand...
by Damien
Tue Jun 27, 2017 6:19 am
Forum: Development of MicroPython
Topic: Understanding bytecode compiler and its limits
Replies: 5
Views: 201

Re: Understanding bytecode compiler and its limits

2. Something I wanted to ask for a long time: Damien , why did you decide to write parser in such way, as LR(n) automaton at all? Did you consider LL(n=~1), recursive-descent parser? The parser/compile was the very first thing I wrote and it was a while ago and I don't remember the details of my de...
by Damien
Sun Jun 25, 2017 2:21 am
Forum: The MicroPython pyboard
Topic: pyboard doesn't show up as USB flash device on Windows 10 machine
Replies: 2
Views: 102

Re: pyboard doesn't show up as USB flash device on Windows 10 machine

Yes, this problem was discovered recently by others and has been solved in the most recent version of the firmware code. The problem was that Windows 10 (the Creators update) changed the way it queried USB mass storage devices (like USB flash drives), and it now sends a "SCSI cache synchronize&...
by Damien
Sat Jun 24, 2017 1:30 pm
Forum: Development of MicroPython
Topic: Understanding bytecode compiler and its limits
Replies: 5
Views: 201

Re: Understanding bytecode compiler and its limits

If you are compiling from a vstr (paste mode) then you will need to have enough heap available for the entire script. Much less heap memory is needed if you instead compile from some other source, eg from a file. In the case of compiling from a file, characters that are fed into the lexer are read o...
by Damien
Thu Jun 01, 2017 2:35 am
Forum: General Discussion and Questions
Topic: Windows Creator update causing REPL issues and delay in showing drive
Replies: 9
Views: 570

Re: Windows Creator update causing REPL issues and delay in showing drive

Does anyone have a microbit (or any generic mbed-enabled board) that they could try with Windows Creator? It has a USB MSC and knowing if it worked or not would help work out where the issue lies.
by Damien
Wed May 31, 2017 4:17 am
Forum: Other Boards
Topic: MICROPHY_HW_FLASH_LATENCY compile error
Replies: 1
Views: 131

Re: MICROPHY_HW_FLASH_LATENCY compile error

Thanks for the report, but in this case I'd say it's better to require the individual board config to define MICROPY_HW_FLASH_LATENCY. Otherwise the main code has too many automagic configuration selections.
by Damien
Wed May 31, 2017 4:13 am
Forum: Other Boards
Topic: NUCLEO_F446RE
Replies: 11
Views: 526

Re: NUCLEO_F446RE

Building with cygwin has some difficulties, like: 1) symlinks don't work in cygwin; 2) command-line lengths can overflow; 3) any "strange" characters (eg parenthesis) in path/filenames might break the build. The lcd160cr.py error is related to symlinks not working. The best option is to in...

Go to advanced search