Hi
Is deepcopy not available in micropython. Ive searched for it, and I cannot find it anywhere or any hit to it.
Regards
Search found 28 matches
- Sun Apr 24, 2022 8:09 pm
- Forum: General Discussion and Questions
- Topic: deepcopy
- Replies: 1
- Views: 1237
- 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
It would really be helpful with some insight. or an idea on how to debug this issue.
Regards
- 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...
- 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...
- 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
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.
- 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...
- 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...
- Mon Jan 10, 2022 12:19 pm
- Forum: General Discussion and Questions
- Topic: Missing attributes
- Replies: 4
- Views: 5399
- 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...
- 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...