Search found 215 matches

by marfis
Wed Nov 18, 2015 12:51 pm
Forum: MicroPython pyboard
Topic: The "why's" of timer allocation
Replies: 10
Views: 9532

Re: The "why's" of timer allocation

Sure. @dpgeorge: yes you are right - I forgot about that. But even for a Usb<>uart conversion i believe it's not necessary. The rx uart irq can be used to fill the ringbuffer and the endpoint callback can check the status of the buffer and submit the data. So no timer required there. The other direc...
by marfis
Wed Nov 18, 2015 7:21 am
Forum: WiPy and CC3200 boards
Topic: telnet XXB85EXXA0XX-mysimplelink
Replies: 6
Views: 7460

Re: telnet XXB85EXXA0XX-mysimplelink

+1 for an mDNS implementation.
by marfis
Tue Nov 17, 2015 8:51 pm
Forum: MicroPython pyboard
Topic: The "why's" of timer allocation
Replies: 10
Views: 9532

Re: The "why's" of timer allocation

Tim3 might be freed up also for USB (CDC) mode. I was porting some of the USB code to an stml151 device (no MSC just CDC) and so I had time to check the need for that callback that ST proposes for CDC mode. I did not understand why there should be a timer reserved to periodically check the usb buffe...
by marfis
Thu Nov 12, 2015 4:49 pm
Forum: WiPy and CC3200 boards
Topic: 2MB flash on the wipy?
Replies: 21
Views: 18189

Re: 2MB flash on the wipy?

Just to be clear, I have no problem with 192kb Flash left. I love the Wipy and congratulate Dani for this great achievement. So the reliability issue is a bit off topic. Yet interesting to discuss. @pythoncoder: you always have to erase a bank, the difference is where you store the data while erasin...
by marfis
Thu Nov 12, 2015 7:24 am
Forum: WiPy and CC3200 boards
Topic: 2MB flash on the wipy?
Replies: 21
Views: 18189

Re: 2MB flash on the wipy?

you need to copy the contents of the old flash block into RAM, modify it, erase the page in flash and write the updated RAM copy back thats one way to do it but it's dangerous and needs careful considerations with the power supply hw. obviously you'll get corrupted data if power is removed during t...
by marfis
Tue Nov 10, 2015 8:38 pm
Forum: General Discussion and Questions
Topic: UART using 'with'
Replies: 5
Views: 4480

Re: UART using 'with'

you can write a wrapper class around UART I'm aware of that and that it can be easily done (fortunately!). My question is if it makes sense to add it to UART (since it's a file-like object). I stumbled upon the deinit_uart and that triggered the idea - not that I would have used it I'm coming from ...
by marfis
Mon Nov 09, 2015 7:01 am
Forum: General Discussion and Questions
Topic: UART using 'with'
Replies: 5
Views: 4480

Re: UART using 'with'

not sure myself. in case of a malfunctioning (shorts, no replies etc) it may be better to close the port (use deinit() automatically if an exception occurs) to release the pins/irqs etc. also it would be somehow consistent for people coming from pyserial. I agree though that for most applications yo...
by marfis
Sun Nov 08, 2015 7:31 pm
Forum: General Discussion and Questions
Topic: UART using 'with'
Replies: 5
Views: 4480

UART using 'with'

would it make sense to support the 'with' statement for I/O objects such as UART/SPI/I2C?

Currently

Code: Select all

with UART(1, 115200) as u:
	u.readall()
throws

Code: Select all

AttributeError: 'UART' object has no attribute '__exit__'
by marfis
Mon Aug 03, 2015 8:31 pm
Forum: Development of MicroPython
Topic: Makefile structure for stmhal
Replies: 12
Views: 10567

Re: Makefile structure for stmhal

Then you'll benefit immediately from all changes made to stmhal by other devs (and you can contribute easily too!). Yes I see that point. @dhylands now has the F7 working with USB serial and MSD and there was not much to it in the end (ie not much code change). libopencm3 is yet to support the F7. ...
by marfis
Sun Aug 02, 2015 1:18 pm
Forum: Development of MicroPython
Topic: Makefile structure for stmhal
Replies: 12
Views: 10567

Re: Makefile structure for stmhal

On the wiki page http://libopencm3.org/wiki/Licensing they say: While esden and others have indicated that they consider linking with libopencm3 to _not_ require the linked application to become lgpl, the lack of an explicit linking exception bothers a few people. So as far as I understand, that's a...