Search found 28 matches

by Ephreal
Sun Apr 24, 2022 8:09 pm
Forum: General Discussion and Questions
Topic: deepcopy
Replies: 1
Views: 1237

deepcopy

Hi

Is deepcopy not available in micropython. Ive searched for it, and I cannot find it anywhere or any hit to it.

Regards
by Ephreal
Mon Mar 14, 2022 6:11 pm
Forum: Development of MicroPython
Topic: Code "disappeares" during runtime
Replies: 7
Views: 3066

Re: Code "disappeares" during runtime

So I tried making the class a singleton. and this somehow worked. It's not a memory problem because only 20% of memory is used at the point in time.

It would really be helpful with some insight. or an idea on how to debug this issue.

Regards
by Ephreal
Thu Mar 10, 2022 7:49 pm
Forum: Development of MicroPython
Topic: Code "disappeares" during runtime
Replies: 7
Views: 3066

Re: Code "disappeares" during runtime

I can also see that one list out of two also gets messed up. In the __init__ method I have the following code. self._int_status_offset = list() for offset in range(256, 256 + 32 * 16, 16): self._int_status_offset.append(offset) self._int_setup_offset = list() for offset in range(1280, 1280 + 32 * 16...
by Ephreal
Thu Mar 10, 2022 1:23 pm
Forum: Development of MicroPython
Topic: Code "disappeares" during runtime
Replies: 7
Views: 3066

Re: Code "disappeares" during runtime

Hi I've made some debugging on my missing List variable. The list is created in the __init__ method self.gen_io_vic_int = [0x00000020, 0x00000040, 0x00000080, 0x00000100, 0x00000200, 0x00002000, 0x00004000, 0x00008000, 0x00010000, 0x00020000 And later used in a class function: for mask in reversed(s...
by Ephreal
Thu Mar 10, 2022 11:45 am
Forum: Development of MicroPython
Topic: Code "disappeares" during runtime
Replies: 7
Views: 3066

Re: Code "disappeares" during runtime

Roberthh wrote:
Thu Mar 10, 2022 10:56 am
version number by ctrl-b in REPL or uos.uname().
MicroPython 5616a9e3-dirty on 2022-03-10;

I do not think this is correct because we have not updated our micropython SDK this year. I think the last time was January 2021.
by Ephreal
Thu Mar 10, 2022 10:43 am
Forum: Development of MicroPython
Topic: Code "disappeares" during runtime
Replies: 7
Views: 3066

Re: Code "disappeares" during runtime

It this one, I'm trying to start again https://forum.micropython.org/viewtopic.php?f=2&t=11795 Just move over here because I think it belongs here. I do not have a small code that fails, since I can't get my code to fail unless I run their entire application. If I just run that code part it works ju...
by Ephreal
Thu Mar 10, 2022 10:10 am
Forum: Development of MicroPython
Topic: Code "disappeares" during runtime
Replies: 7
Views: 3066

Code "disappeares" during runtime

Hi This is a bit odd problem. What I see is that FE a class with inheritance loses all the methods it inherits from initializing to when it is used. If I, however, move the initialization close to where it's used it works just fine. I also see a list that is initialized during the __init__ phase and...
by Ephreal
Mon Jan 10, 2022 12:19 pm
Forum: General Discussion and Questions
Topic: Missing attributes
Replies: 4
Views: 5399

Re: Missing attributes

stijn wrote:
Mon Jan 10, 2022 10:46 am
def read(addr) should be def read(self, addr)
Corrected
by Ephreal
Mon Jan 10, 2022 10:05 am
Forum: General Discussion and Questions
Topic: Missing attributes
Replies: 4
Views: 5399

Re: Missing attributes

Please shoe the crashing code and how you use it. Hi It's a rather large code. So below is a simple description of how the code is executed. Class Base(object): def __init__(self): self._baseaddr = None self.InitBaseAddr(self) # asks hardware for and address if self._baseaddr is None: raise Excepti...
by Ephreal
Mon Jan 10, 2022 9:25 am
Forum: General Discussion and Questions
Topic: Missing attributes
Replies: 4
Views: 5399

Missing attributes

Hi As my code grows in micropython. I am now stuck with an error where my attributes are going missing in a class. Though its always at the same point in the code I cannot figure out why. I initialize the class and run a method. in this method, it uses one of its internal values. This module is used...