rk-exxec / micropython

micropython port for Tiva Launchpad, branch:tiva_from_stable -> ports/tm4c123
https://micropython.org
Other
5 stars 8 forks source link

Build on Linux #19

Closed mgaman closed 2 years ago

mgaman commented 3 years ago

I tried following the lines: git clone https://github.com/rk-exxec/micropython.git && git checkout tiva_from_stable cd ./micropython

but the 'git checkout' part failed as no repository was found Redoing as: git clone https://github.com/rk-exxec/micropython.git cd ./micropython git checkout tiva_from_stable worked just fine

After flashing the image to the launchpad I got REPL working but no modules are present e.g. machine, os. What am I doing wrong?

rk-exxec commented 3 years ago

Hey, thanks for letting me know, will change that in the Readme

As for the modules... did you try importing the modules first? (you also need to prepend a 'u', so umachine, uos etc) from umachine import Pin etc.

mgaman commented 3 years ago

thanks for the hint, umachine works fine

On Mon, May 24, 2021 at 2:51 PM Raphael @.***> wrote:

Hey, thanks for letting me know, will change that in the Readme

As for the modules... did you try importing the modules first? (you also need to prepend a 'u', so umachine, uos etc) from umachine import Pin etc.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rk-exxec/micropython/issues/19#issuecomment-846990627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3KSTXDZ7DVZL3QWN7BDBDTPI4UTANCNFSM45MZSQ7A .

mgaman commented 3 years ago

According to the sources and the log from make, the module utime is included. However import utime says no such module

rk-exxec commented 3 years ago

Yes, its currently not functional. But we're working on it. We need to implement the hardware timer first.

Did you have any special use case?

mgaman commented 3 years ago

Not really, I was mostly just curious. In my work I've used the launchpad for dozens of projects, always in C and using code composer + tivaware. I thought that using python would drag me into the 21st century