Search found 53 matches

by Tetraeder
Tue Feb 07, 2017 1:59 pm
Forum: Development of MicroPython
Topic: Calling a python function from C
Replies: 14
Views: 13281

Re: Calling a python function from C

I have a similar question to the thread topic: I create for pyboard the frozen script -> own.py def test(): print('hello test') I created in stmhal the folder "scripts" and define in Makefile the FROZEN_DIR. Copied the own.py script in folder scripts. compile-> repl -> works, with >>> import own >>>...
by Tetraeder
Thu Jan 19, 2017 10:00 am
Forum: Other Boards
Topic: MicroPython on i.MX6
Replies: 20
Views: 7676

Re: MicroPython on i.MX6

thanks dhylands for your help.

Now it works.
The receive buffer length of my USB VCP function was to long.

So, it was a problem from my side not from MicroPython :D . MicroPython runs like a charm.
by Tetraeder
Wed Jan 18, 2017 4:27 pm
Forum: Other Boards
Topic: MicroPython on i.MX6
Replies: 20
Views: 7676

Re: MicroPython on i.MX6

I don't think so.
My communication is over USB VCP and I print debug information over UART (no receive) only transmit with "void mp_hal_stdout_tx_strn"
by Tetraeder
Wed Jan 18, 2017 4:18 pm
Forum: Other Boards
Topic: MicroPython on i.MX6
Replies: 20
Views: 7676

Re: MicroPython on i.MX6

I can print the information that the target received in pyexec->int pyexec_raw_repl(void) and print "line.buf".

The target receives only "p" and not "print('hello')", so it receives only one char.

Any idea why?
by Tetraeder
Wed Jan 18, 2017 3:37 pm
Forum: Other Boards
Topic: MicroPython on i.MX6
Replies: 20
Views: 7676

Re: MicroPython on i.MX6

Hi, I run MicroPython version 1.8.5 and all works fine. (i.MX6) But I can't execute a script over raw repl with /tools/pyboard.py. The script includes only a print command -> print('hello') I get up to the function mp_call_function_0(module_fun) in pyexec.c, after that the program throws a exception...
by Tetraeder
Tue Sep 13, 2016 1:05 pm
Forum: Development of MicroPython
Topic: UNIX-port and GPIO's?
Replies: 5
Views: 2555

Re: UNIX-port and GPIO's?

thanks for the hints!! Regarding "GPIO Sysfs Interface": Also a good reference for setting GPIO's from User Space http://falsinsoft.blogspot.nl/2012/11/access-gpio-from-linux-user-space.html It's works with my other Board, Phytec phyBOATD-Wega-AM335x, with kernel version 3.12.61 but with my i.MX6 bo...
by Tetraeder
Mon Sep 12, 2016 9:12 am
Forum: Development of MicroPython
Topic: UNIX-port and GPIO's?
Replies: 5
Views: 2555

UNIX-port and GPIO's?

Hello everyone, I have a NXP/Freescale Sabre Board with i.MX6 and I run Linaro. Question: Has someone tried to control a Pin or any other hardware function over the UNIX-port (controller no matter)? Anyone a idea to get this working? I read something about "Linux Device Tree", is that the right way?...
by Tetraeder
Mon Jul 04, 2016 11:23 am
Forum: Other Boards
Topic: Porting to msp432
Replies: 28
Views: 15238

Re: Porting to msp432

what's next?
I'm working at the pin support, has someone started?
by Tetraeder
Tue Jun 28, 2016 12:21 pm
Forum: Other Boards
Topic: MicroPython on i.MX6
Replies: 20
Views: 7676

Re: MicroPython on i.MX6

thanks for the help...
I'm done with the try to publish my code because of the issue with unsure knowledge about LICENSES.
If someone is interested about detailed information about this topic, please write a pn.
by Tetraeder
Fri Jun 24, 2016 9:34 pm
Forum: Other Boards
Topic: Porting to msp432
Replies: 28
Views: 15238

Re: Porting to msp432

yes i have forked your repo and created a pull request.