Search found 1572 matches

by Roberthh
Sat Jan 30, 2016 11:57 am
Forum: WiPy and CC3200 boards
Topic: Unexpected behavior on memory allocation
Replies: 9
Views: 3570

Re: Unexpected behavior on memory allocation

os.uname() results in:

>>> os.uname()
(sysname='WiPy', nodename='WiPy', release='1.1.1', version='v1.5.2-97-gef5f266 on 2016-01-30', machine='WiPy with CC3200')

Regards
by Roberthh
Sat Jan 30, 2016 7:52 am
Forum: WiPy and CC3200 boards
Topic: Unexpected behavior on memory allocation
Replies: 9
Views: 3570

Unexpected behavior on memory allocation

When setting up a test regarding the discussion here: http://forum.micropython.org/viewtopic.php?f=3&t=1328 I ran into an unexpected behavior on WiPy. I wrote a little test program which allocates memory. That should run into an exception at a certain point. With PyBoard, it does. With WiPy, it does...
by Roberthh
Tue Jan 26, 2016 6:15 pm
Forum: Development of MicroPython
Topic: help with leaking memory management
Replies: 21
Views: 7260

Re: help with leaking memory management

I think that's' what I have seen with a test program which constantly allocated an frees memory in a loop. In that loop, I printed the amount of free memory told by mem_free(). That went down until no more memory was available, and then went up again, and so on. The problem seems to arise, when the ...
by Roberthh
Fri Jan 15, 2016 8:39 am
Forum: Drivers for External Components
Topic: How to write a uc8154c epaper driver
Replies: 4
Views: 2772

Re: How to write a uc8154c epaper driver

The web site behind the link is chinese, but the data sheet itself (button right to the words Ultra Chip) is english. It looks like a serial I2C type connection. I'm still looking for a larger e-paper device, like 6" to 8", which is not too complicated to use. Did anyone come across something like t...
by Roberthh
Mon Jan 04, 2016 2:47 pm
Forum: WiPy and CC3200 boards
Topic: Timer example not working
Replies: 32
Views: 17336

Re: Timer example not working

Most likely it's much less work for fix the time module of WiPy or to learn, how to use it.
by Roberthh
Fri Jan 01, 2016 7:08 pm
Forum: WiPy and CC3200 boards
Topic: Timer example not working
Replies: 32
Views: 17336

Re: Timer example not working

Besides the micropython.org download site for binaries, the whole source code including the versions for WiPy can be found here: https://github.com/micropython/micropython. The WiPy version is the one in folder cc3200.
by Roberthh
Fri Jan 01, 2016 2:09 pm
Forum: WiPy and CC3200 boards
Topic: Timer example not working
Replies: 32
Views: 17336

Re: Timer example not working

For low frequencies/long periods, you have to use tim.channel(Timer.A | Time.B, freq=2). And yes, the documentation is somewhat concise, not telling when to use which. The example in the doc about registering a callback handler is also wrong. That's what misled me first. And I'm not sure whether the...
by Roberthh
Fri Jan 01, 2016 7:08 am
Forum: General Discussion and Questions
Topic: Module loading times
Replies: 5
Views: 1992

Re: Module loading times

Hy dhylands, I fully agree and that is my observation, if you look at the end of my post. The average execution times of these little functions were 35 ms (import os) vs. 20 µs (import uos). It wrote it as a hint, that one may have unexpected delays if 'import os' (or others) is used at places very ...
by Roberthh
Thu Dec 31, 2015 8:50 pm
Forum: General Discussion and Questions
Topic: Module loading times
Replies: 5
Views: 1992

Re: Module loading times

Hello dhylands, I know the re.load mechanism well. I did not want to reload the module. I was just wondering that re-executing "import os" is so much slower than "import _io". It seems that micropython is looking into the filesystem for the module os first, and determines after that, whether it has ...
by Roberthh
Thu Dec 31, 2015 5:29 pm
Forum: General Discussion and Questions
Topic: Micropython Download Site seems strange
Replies: 5
Views: 2245

Re: Micropython Download Site seems strange

Hello @damien,
since a few days versions like http://micropython.org/resources/firmwa ... -dirty.dfu are still hanging around ob the download site. I do not know whether this is intentional.
Best regards and a happy new year, Robert