Search found 49 matches

by pulkin
Sat Mar 21, 2020 6:06 pm
Forum: Development of MicroPython
Topic: test/parser.py fails on my port: any clue how to debug this?
Replies: 11
Views: 7783

Re: test/parser.py fails on my port: any clue how to debug this?

So what may, in principle, cause such failures? Was the pointer to globals accidentally overwritten?
by pulkin
Thu Mar 19, 2020 10:38 pm
Forum: Development of MicroPython
Topic: test/parser.py fails on my port: any clue how to debug this?
Replies: 11
Views: 7783

Re: test/parser.py fails on my port: any clue how to debug this?

No, that [compiling without gc] does not help.

Is it normal for bulk tests to fail at some point without gc?
by pulkin
Sat Mar 07, 2020 6:30 pm
Forum: Development of MicroPython
Topic: test/parser.py fails on my port: any clue how to debug this?
Replies: 11
Views: 7783

test/parser.py fails on my port: any clue how to debug this?

The test with "compile" statements fails (i.e. it freezes the board). I traced the problem down to mp_map_lookup where mp_map_t *map becomes an invalid pointer (it is by fact 0x04 which might be just random data). This happens during another call to mp_load_name which makes me think that it is a pro...
by pulkin
Wed Mar 04, 2020 4:11 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 5662

Re: Builtin modules are loaded at the point of importing them

To verify my understanding: does this mean that up-to-date ESP8266 firmware allows importing files named os.py but will not import uos.py?
by pulkin
Wed Mar 04, 2020 1:07 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 5662

Re: Builtin modules are loaded at the point of importing them

Right, what I am saying is that I have a port

https://github.com/pulkin/micropython/t ... ts/gprs_a9

where I have to make it behave like you demonstarted. At the firmware level.
by pulkin
Sat Feb 29, 2020 11:45 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 5662

Re: Builtin modules are loaded at the point of importing them

I believe the problem is that you cannot override the built-in module. The typical way one would do it is to manipulate sys.path before importing the module. In my case, however, that does not help: whatever import order is the built-in module is always preffered/loaded. I.e. there is no way to impo...
by pulkin
Sat Feb 29, 2020 9:38 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 5662

Re: Builtin modules are loaded at the point of importing them

It is not only sys: every built-in module is loaded.
by pulkin
Fri Feb 28, 2020 10:41 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 5662

Builtin modules are loaded at the point of importing them

When I turn debug messages on I see the following: MicroPython v1.11-697-g7b18c0b93-dirty on 2020-02-28; A9/A9G module with RDA8955 Type "help()" for more information. >>> import sys ... import name 'sys' level=0 __import__: 'sys' None None None 0 Module already loaded ... This means that there is n...
by pulkin
Wed Feb 26, 2020 9:15 am
Forum: Development of MicroPython
Topic: How do I auto-test my port?
Replies: 2
Views: 1901

Re: How do I auto-test my port?

That looks much better than I was expecting. Thanks.
by pulkin
Tue Feb 25, 2020 6:54 pm
Forum: Development of MicroPython
Topic: How do I auto-test my port?
Replies: 2
Views: 1901

How do I auto-test my port?

I want to flash my port and to test software-related functions (first). What is the accepted practice?