Search found 74 matches

by nelfata
Mon Sep 01, 2014 9:04 pm
Forum: General Discussion and Questions
Topic: Pulse Generation
Replies: 7
Views: 2936

Pulse Generation

Hi, is there any way to generate microsecond pulses on a GPIO line using MP where the pulse width could be configurable in multiples of micro seconds? The minimum is one pulse. I have an idea to use the timer callback to trigger a GPIO line but I am not sure if the processing is fast enough to do th...
by nelfata
Mon Aug 25, 2014 9:45 pm
Forum: Development of MicroPython
Topic: Build broken with MICROPY_HW_ENABLE_CC3K
Replies: 2
Views: 1567

Build broken with MICROPY_HW_ENABLE_CC3K

In stmhal/boards/PYBV10/mpconfigboard.h

When setting:
MICROPY_HW_ENABLE_CC3K (1)

The build gives many errors.
by nelfata
Tue Aug 12, 2014 8:16 am
Forum: General Discussion and Questions
Topic: Trying to use timers to avoid a blocking loop
Replies: 15
Views: 7270

Re: Trying to use timers to avoid a blocking loop

Hi, I am in the process of integrating ChibiOS with MP. I think that could be useful to build a threading library based on this RTOS. I am still having problems with incompatible definitions and build, between the two. The idea is to have MP run on top of this RTOS in one thread and take advangtage ...
by nelfata
Tue Aug 05, 2014 2:59 pm
Forum: General Discussion and Questions
Topic: ADC Callback Exception
Replies: 2
Views: 1279

Re: ADC Callback Exception

Ok that makes sense. Thank you.
by nelfata
Tue Aug 05, 2014 1:11 pm
Forum: General Discussion and Questions
Topic: ADC Callback Exception
Replies: 2
Views: 1279

ADC Callback Exception

I am not sure why the following causes and exception with MemoryError when a divide by 3 is added: adcY11 = pyb.ADC( pyb.Pin.board.Y11 ) adcTimer = pyb.Timer(7, freq=2) # THIS WORKS FINE adcTimer.callback(lambda t: print(adcY11.read() ) ) # THIS GIVES MemoryError exception adcTimer.callback(lambda t...
by nelfata
Fri Aug 01, 2014 3:38 pm
Forum: Development of MicroPython
Topic: RTOS Integration
Replies: 6
Views: 4687

Re: RTOS Integration

That should be simple enough to enable/disable with the configuration files.
I can try it, but I believe that the RTOS can be totally disabled unless you wish to use its drivers in a single thread environment.
I think it makes sense to have the RTOS be built as a static library.
by nelfata
Fri Aug 01, 2014 9:12 am
Forum: Development of MicroPython
Topic: RTOS Integration
Replies: 6
Views: 4687

RTOS Integration

I am starting on integrating the ChibiOS RTOS with MP. I would like to get some feedback on what would be more beneficial: MP as a library or ChibiOS as a library. Either modules can be compiled as a static library. Here are some thoughts to consider: 1. ChibiOS implements drivers for just about all...
by nelfata
Tue Jul 15, 2014 4:06 pm
Forum: Development of MicroPython
Topic: Building MP as a static library
Replies: 10
Views: 5089

Re: Building MP as a static library

This is great. Thank you.
by nelfata
Sun Jul 13, 2014 6:25 am
Forum: Development of MicroPython
Topic: Building MP as a static library
Replies: 10
Views: 5089

Building MP as a static library

Did someone build MP as a static library, to be linked with an application?
If so please provide Makefile (hopefully some slight changes). Thanks.
by nelfata
Sat Jul 05, 2014 6:35 pm
Forum: General Discussion and Questions
Topic: OSError: [Errno 5]
Replies: 28
Views: 11702

Re: OSError: [Errno 5]

Sure, already done, issue #743