bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
603 stars 284 forks source link

Can't install BBC micro:bit MicroPython #703

Closed yufeiluo closed 2 years ago

yufeiluo commented 3 years ago

OS: debian10.

    uname -a
    Linux mydebian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux

Do as the manual webpage say to install microbit module.

https://microbit-micropython.readthedocs.io/en/latest/devguide/installation.html

    sudo add-apt-repository -y ppa:team-gcc-arm-embedded
    sudo add-apt-repository -y ppa:pmiller-opensource/ppa
    sudo apt-get update
    sudo apt-get install cmake ninja-build gcc-arm-none-eabi srecord libssl-dev
    pip3 install yotta

Set configuration for module.json.

    {
      "name": "helloyotta",
      "version": "0.0.0",
      "description": "Hello yotta example module",
      "keywords": ["example"],
      "author": "James Crosby <james.crosby@arm.com>",
      "homepage": "http://github.com/ARMmbed/yotta",
      "repository": {
        "url": "git@github.com:ARMmbed/helloyotta.git",
        "type": "git"
      },
      "license": "Apache-2.0",
      "dependencies": {
        "simplelog": "~0.0.0"
      },
      "targetDependencies": {},
      "bin": "./source"
    }

Building firmware:

    yt target bbc-microbit-classic-gcc-nosd

Run yotta update to fetch remote assets:

    yt up
    yt build
    info: generate for target: bbc-microbit-classic-gcc-nosd 0.2.3 at /home/debian/yotta_targets/bbc-microbit-classic-gcc-nosd
    warning: bin directory "source" doesn't exist but is listed in the module.json file of helloyotta 0.0.0 at /home/debian
    warning: nothing to build!
    CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
      The OLD behavior for policy CMP0017 will be removed from a future version
      of CMake.

      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.

    CMake Deprecation Warning at /usr/share/cmake-3.13/Modules/CMakeForceCompiler.cmake:69 (message):
      The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
      CMAKE_C_COMPILER and allow CMake to identify the compiler.
    Call Stack (most recent call first):
      /home/debian/yotta_targets/mbed-gcc/CMake/toolchain.cmake:78 (cmake_force_c_compiler)
      toolchain.cmake:8 (include)
      CMakeFiles/3.13.4/CMakeSystem.cmake:6 (include)
      CMakeLists.txt:97 (project)

    CMake Deprecation Warning at /usr/share/cmake-3.13/Modules/CMakeForceCompiler.cmake:83 (message):
      The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
      CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
    Call Stack (most recent call first):
      /home/debian/yotta_targets/mbed-gcc/CMake/toolchain.cmake:79 (cmake_force_cxx_compiler)
      toolchain.cmake:8 (include)
      CMakeFiles/3.13.4/CMakeSystem.cmake:6 (include)
      CMakeLists.txt:97 (project)
microbit-carlos commented 3 years ago

Hi @yufeiluo,

There is no need to create a module.json to build MicroPython, you can just follow the instructions from the README.md.

microbit-carlos commented 2 years ago

Hi @yufeiluo, were you able to resolve this issue?

microbit-carlos commented 2 years ago

Closing due to lack of activity. If anybody is still experiencing this issue feel free to reopen it and we can look into it 👍