GithubHelp home page GithubHelp logo

Comments (12)

kentindell avatar kentindell commented on July 20, 2024

Firstly, I've not tried to build MicroPython on a Raspberry Pi before. In theory it should be fine but I've not done it.

The first step is to build the upstream MicroPython source before you apply the firmware patches. If that fails then the problem is with your build environment. What does that result in?

from canhack.

DanielR92 avatar DanielR92 commented on July 20, 2024

Sorry but I am new in python. And have no Idea how to compile on the pico.

But I think the problem is my environment what do you say.

from canhack.

kentindell avatar kentindell commented on July 20, 2024

The MicroPython firmware is now pretty large and complex. So the first step is to build a clean MicroPython firmware build.

Try following the instructions in the README here:

https://github.com/kentindell/canhack/blob/master/pico/micropython/README.txt

Get the MicroPython repo cloned, and use the v1.18 release. If you can get steps 1-4 in the README done then you can build the MicroPython firmware.

from canhack.

DanielR92 avatar DanielR92 commented on July 20, 2024

I already did this steps. See first post. But thanks for help. :)

from canhack.

kentindell avatar kentindell commented on July 20, 2024

So that's a 'stock' MicroPython build that failed? It works on Ubuntu and even macOS (subject to compiler tools) so I'm a bit surprised it fails on the RPi.

Are all the normal build-essential tools installed on the RPi?

from canhack.

kentindell avatar kentindell commented on July 20, 2024

Hmm, someone else seems have problems with this but fixed it by changing Rapsbian's language to English:

micropython/micropython#4755

And also problems if the path lengths are too long:

https://forum.micropython.org/viewtopic.php?p=63991#p63991

Some people seem to get along fine on the RPi4, and others don't..

from canhack.

DanielR92 avatar DanielR92 commented on July 20, 2024

I will check that, thanks for the hint! :)

from canhack.

DanielR92 avatar DanielR92 commented on July 20, 2024

Ok I have a big issue with that. Have somebody a already running compiled of firmware.uf2 for me? Thanks :)

from canhack.

kentindell avatar kentindell commented on July 20, 2024

Does firmware-220511.uf2 not work for you?

from canhack.

DanielR92 avatar DanielR92 commented on July 20, 2024

I think not, because when I put in the Pico it restart and in the console it show me:
MicroPython v1.19.1 on 2022-06-18; Raspberry Pi Pico with RP2040
Type "help()" for more information.

from rp2 import *
c = CAN()
Traceback (most recent call last):
File "", line 1, in
NameError: name 'CAN' isn't defined

from canhack.

kentindell avatar kentindell commented on July 20, 2024

That's not the firmware in the repo: that looks like you've got the stock firmware on it.

from canhack.

DanielR92 avatar DanielR92 commented on July 20, 2024

I have a fresh pico unpacked it and take the "firmware-20220511.uf2" in the "BOOTSEL" drive. After that it restart and I have a stock firmware on it. After that I put the python src/can2/ into the Pico.

But its not running. A simple question, exist a Howto how to run it easy? :)

thanks for help

from canhack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.