Search found 3 matches

by rimbi
Thu Jan 06, 2022 10:22 am
Forum: Development of MicroPython
Topic: Problem with minimal Micropython firmware
Replies: 3
Views: 16475

Re: Problem with minimal Micropython firmware

I have understood the problem. The module is named by default as usys. In order to import it as sys instead,

Code: Select all

#define MICROPY_MODULE_WEAK_LINKS (1)
should be defined in the mpconfigport.h file.
by rimbi
Wed Jan 05, 2022 6:42 am
Forum: Development of MicroPython
Topic: Problem with minimal Micropython firmware
Replies: 3
Views: 16475

Re: Problem with minimal Micropython firmware

Hi Dave, Thank you very much for the explanation. It really helped me understand the underlying concepts a bit more. On the other hand, I tried both - turning on MICROPY_PY_SYS #define MICROPY_PY_SYS (1) - setting MICROPY_CONFIG_ROM_LEVEL to all possible values #define MICROPY_CONFIG_ROM_LEVEL MICRO...
by rimbi
Tue Jan 04, 2022 8:00 am
Forum: Development of MicroPython
Topic: Problem with minimal Micropython firmware
Replies: 3
Views: 16475

Problem with minimal Micropython firmware

Hi All, I am just new to Micropython and interested in porting it to a new platform. I have followed the porting guide and was able to build the minimal micropython firmware on ubuntu. But when I try to import sys the repl displays the following error: >>> import sys Traceback (most recent call last...