Search found 9 matches

by tarun2121
Wed Dec 03, 2014 9:58 am
Forum: General Discussion and Questions
Topic: Implement co-operative schduling
Replies: 5
Views: 5438

Re: Implement co-operative schduling

Thanks.
It works.. !!
by tarun2121
Tue Dec 02, 2014 9:12 am
Forum: General Discussion and Questions
Topic: Implement co-operative schduling
Replies: 5
Views: 5438

Re: Implement co-operative schduling

When I use generator.next() in micropython It gives error "generator object has no attribute 'next' ".
I used it in Python without any library import it works. what can be the issue and solution?
by tarun2121
Fri Nov 28, 2014 9:50 am
Forum: General Discussion and Questions
Topic: Implement co-operative schduling
Replies: 5
Views: 5438

Implement co-operative schduling

Hi all I need to implement Co-operative scheduling in micropython environment. I am new to Python(& micropython). I tried it by using "yield". But I couldn't understand it accordingly. Following is the example what I want and waht I am getting. Suppose I have two tasks, and 7 instructions each task....
by tarun2121
Mon Nov 24, 2014 7:15 am
Forum: Development of MicroPython
Topic: Call C functions from Micropython script.
Replies: 1
Views: 5152

Call C functions from Micropython script.

Hello All
I need to call C functions(from some .c file) to micropython script running on STM board. How it could be done?
I tried to call in same way CPython does, But I am getting error while importing C file in python script.
by tarun2121
Mon Nov 10, 2014 6:37 am
Forum: Development of MicroPython
Topic: Run more than one micropython instance
Replies: 30
Views: 24221

Re: Run more than one micropython instance

Thanks to all for replying. I want to run multiple python codes on STM board. Say my task1 is being executed and task2 comes with higher priority. Now I want to put Task1 on pause and let task2 finish its execution and then Task1 will resume from same situation where it was paused. By this way my ne...
by tarun2121
Wed Nov 05, 2014 11:13 am
Forum: Development of MicroPython
Topic: Run more than one micropython instance
Replies: 30
Views: 24221

Re: Run more than one micropython instance

Thanks for replying Dave
I actually want to execute more than one Python codes at same time(by switching between them, feel of multithreading). Can I do it?




-Tarun
by tarun2121
Wed Nov 05, 2014 8:05 am
Forum: Development of MicroPython
Topic: Run more than one micropython instance
Replies: 30
Views: 24221

Run more than one micropython instance

Hello all
I need to run more than one(say 4) micropython on my STM32F4 board. Is it possible? Is there any idea regarding the same?
by tarun2121
Fri Oct 31, 2014 11:38 am
Forum: Development of MicroPython
Topic: Multithreading or Multitasking?
Replies: 2
Views: 4307

Multithreading or Multitasking?

Hello All
I need to use multithreading with micropython? Since there is no such library included by default(correct me if i am wrong). How can I use mutithreading then? or is there any alternative?


-Tarun
by tarun2121
Wed Oct 22, 2014 9:58 am
Forum: Development of MicroPython
Topic: Build micropython for Ubuntu Desktop
Replies: 2
Views: 4590

Build micropython for Ubuntu Desktop

Hello all
I want to build micropython for Ubuntu desktop. I have downloaded the source code. Now which package i need to build the solution?

-tarun