MicroPython on i.MX6

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Tetraeder
Posts: 53
Joined: Thu Mar 05, 2015 1:12 pm
Location: Germany

MicroPython on i.MX6

Post by Tetraeder » Wed Nov 18, 2015 2:36 pm

Hi,

after many attempts I’ve managed to port minimal to i.MX6 quadcore :mrgreen: .
I get a repl via UART.
I report the next day about the progress.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: MicroPython on i.MX6

Post by pfalcon » Wed Nov 18, 2015 3:57 pm

Do you mean you run it bare-metal, without Linux? If so, that's indeed pretty cool, details wanted.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Tetraeder
Posts: 53
Joined: Thu Mar 05, 2015 1:12 pm
Location: Germany

Re: MicroPython on i.MX6

Post by Tetraeder » Thu Nov 19, 2015 11:01 am

Yes as bare-metal. On a Freescale Sabre board.
My tests so far: variable declarations and small calculations(10*5).

Something is not right with UART: it will not appear to me that I typed in but after I hit enter, it is displayed.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: MicroPython on i.MX6

Post by pfalcon » Thu Nov 19, 2015 12:17 pm

Cute. If you'd select more wide-spread target, like Raspberry Pi, or just bare-metal x86, you might even catch some people testing or even contributing to it. Otherwise, well, keep us posted ;-).
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

torwag
Posts: 220
Joined: Fri Dec 13, 2013 9:25 am

Re: MicroPython on i.MX6

Post by torwag » Thu Nov 19, 2015 1:34 pm

Hmmm,

that means we can run micropython on the upcoming new generation of e-ink devices which will base on the i.MX7.
Wait until those units are cheap enough and we will have an display unit in form of an programmable e-ink display to show calendars, sensor data, weather or other IoT stuff.

Tetraeder
Posts: 53
Joined: Thu Mar 05, 2015 1:12 pm
Location: Germany

Re: MicroPython on i.MX6

Post by Tetraeder » Mon Nov 23, 2015 3:51 pm

My UART problems are solved.
It works fine, now.
pfalcon wrote:Cute. If you'd select more wide-spread target, like Raspberry Pi, or just bare-metal x86, you might even catch some people testing or even contributing to it. Otherwise, well, keep us posted ;-).

I have one raspberry that would be the next target after i.MX6. If by then no one else has it already been ported.

Now I try to display the repl prompt over the HDMI or LVDS connector. And the support for a keyboard.
furthermore at this point the MicroPython-lib is not complete there also needs some more time.

Tetraeder
Posts: 53
Joined: Thu Mar 05, 2015 1:12 pm
Location: Germany

Re: MicroPython on i.MX6

Post by Tetraeder » Thu Jan 21, 2016 10:32 am

Small update,

currently able to run:
* communication over UART (debug interface)
* Set Pin and toggle output state
* Display (only pictures no video content)
* Temperature monitor

Next,
* USB

hosk
Posts: 6
Joined: Sat Aug 15, 2015 9:49 am
Location: Ostrava

Re: MicroPython on i.MX6

Post by hosk » Thu Mar 03, 2016 12:19 am

Do you have some news about porting?
Are you planning publish code?
Honza
Honza Sklenář

Tetraeder
Posts: 53
Joined: Thu Mar 05, 2015 1:12 pm
Location: Germany

Re: MicroPython on i.MX6

Post by Tetraeder » Thu Mar 03, 2016 6:23 am

Hi Honza,

not found much time to work on.
Currently working on CDC (USB).

I would publish the code but I do not know if I could publish the code of NXP (Freescale) on Github? Because I use the driver package from NXP.

Tetraeder
Posts: 53
Joined: Thu Mar 05, 2015 1:12 pm
Location: Germany

Re: MicroPython on i.MX6

Post by Tetraeder » Mon Apr 25, 2016 2:14 pm

Hi,
the USB CDC support is done.
Next will be MSD.

I have found the the LICENSE of the NXP/Freescale SDK, which I use. Can anyone tell me if I can publish uPy port with the NXP/Freescale code? Only what I have to do is to check the disclaimer in each file, right?

Following the LICENSE:
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

o Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.

o Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

o Neither the name of Freescale Semiconductor, Inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Post Reply