Giter Club home page Giter Club logo

smoothieware_for_stm32's Introduction

Expected accomplishment

  1. Multi-chip platform support using the latest mbed-os source code.
  2. Isolate the main code of Smoothieware from the hardware.
  3. Implement the function support for STM32F407.
  4. Simplify the code porting.

Current Progress

  1. 2019-01-17: Completed support for the latest mbed-os build environment(2019-01-10 merge id: 2454b25eba55b05b6adaf1258faf61e0818f51ae).
  2. 2019-01-18: The first version that can be compiled.
  3. 2019-01-21: Add simple support for STM32F407.
  4. 2019-01-24: Add USB serial device support.
  5. 2019-02-21: Use submodule to manage mbed-os code.
  6. 2019-02-26: Add SDIO SD card support.

Installation and compilation instructions

  1. Clone code with git clone --recursive https://github.com/YanMinge/Smoothieware_for_STM32
  2. Use win_install.cmd or linux_install to install Compiler Environment
  3. Enter the directory Smoothieware_for_STM32\src from the terminal BuildShell.cmd or BuildShell
  4. Enter make to Compiled code
  5. When compiling for the first time, If there is a mbed-os patch file, the patch operation will be performed first, so you needs to be executed make again.
  6. If your hardware is different from what I use, You can test your code using sample code first. reference Smoothieware_for_STM32\mbed\samples

Development support

If you have a similar idea and want to collaborate on development, you can contact me at [email protected]

smoothieware_for_stm32's People

Contributors

akingpan avatar yanminge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

smoothieware_for_stm32's Issues

编译问题 麻烦更新下最新的子模块

您好,现在正在编译您这个工程,我使用idf 4.4时,用官方micropython是可以正常编译出mpy固件来的,当用您这个子模块的mpy时,总是提示错误:
能麻烦您更新一下readme里的子模块commit id吗,感谢!

kevin@computer:~/esp32/esp32_mpy/project/aitest$ make 
main/copy_leftmodules.sh
current directory /home/kevin/esp32/esp32_mpy/project/aitest
rm -rf build-GENERIC_S3/frozen_content.c && idf.py -D MICROPY_BOARD=GENERIC_S3 -D MICROPY_PY_LVGL=1 -B build-GENERIC_S3  build
Executing action: all (aliases: build)
Running cmake in directory /home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DMICROPY_BOARD=GENERIC_S3 -DMICROPY_PY_LVGL=1 -DCCACHE_ENABLE=0 /home/kevin/esp32/esp32_mpy/project/aitest"...
-- Found Git: /usr/bin/git (found version "2.17.1") 
-- Component directory /home/kevin/esp32/esp32_mpy/project/aitest/components/lv_bindings does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/kevin/esp32/esp32_mpy/project/aitest/components/lvgl_esp32_drivers does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/kevin/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /home/kevin/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /home/kevin/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/kevin/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++
-- Check for working CXX compiler: /home/kevin/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
Solving dependencies requirements
CMake Error at /home/kevin/esp32/esp-idf/tools/cmake/build.cmake:455 (message):
  Traceback (most recent call last):

    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_tools/git_client.py", line 115, in run
      stderr=subprocess.STDOUT,
    File "/usr/lib/python3.7/subprocess.py", line 411, in check_output
      **kwargs).stdout
    File "/usr/lib/python3.7/subprocess.py", line 512, in run
      output=stdout, stderr=stderr)

  subprocess.CalledProcessError: Command '['git', 'fetch', 'origin']'
  returned non-zero exit status 128.

  

  During handling of the above exception, another exception occurred:

  

  Traceback (most recent call last):

    File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/prepare_components/__main__.py", line 3, in <module>
      main()
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/prepare_components/prepare.py", line 110, in main
      args.func(args)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/prepare_components/prepare.py", line 40, in prepare_dep_dirs
      local_components_list_file=args.local_components_list_file,
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/core.py", line 317, in prepare_dep_dirs
      project_requirements, self.lock_path, self.managed_components_path)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/dependencies.py", line 36, in download_project_dependencies
      solution = solver.solve()
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/version_solver/version_solver.py", line 29, in solve
      self.solve_manifest(manifest)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/version_solver/version_solver.py", line 46, in solve_manifest
      self.solve_component(requirement)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_manager/version_solver/version_solver.py", line 50, in solve_component
      name=requirement.name, spec=requirement.version_spec, target=self.requirements.target)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_tools/sources/git.py", line 94, in versions
      commit_id = self._checkout_git_source(version)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_tools/sources/git.py", line 40, in _checkout_git_source
      return self._client.prepare_ref(repo=self.git_repo, path=self.cache_path(), ref=version, with_submodules=True)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_tools/git_client.py", line 36, in wrapper
      return func(self, *args, **kwargs)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_tools/git_client.py", line 76, in prepare_ref
      self.run(['fetch', 'origin'], cwd=path)
    File "/home/kevin/.espressif/python_env/idf5.0_py3.7_env/lib/python3.7/site-packages/idf_component_tools/git_client.py", line 119, in run
      "'git %s' failed with exit code %d \n%s" % (' '.join(args), e.returncode, e.output.decode('utf-8')))

  idf_component_tools.git_client.GitCommandError: 'git fetch origin' failed
  with exit code 128

  fatal: unable to access 'https://github.com/iot-components/tinyusb.git/':
  gnutls_handshake() failed: Error in the pull function.

  

Call Stack (most recent call first):
  /home/kevin/esp32/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
  CMakeLists.txt:36 (project)


-- Configuring incomplete, errors occurred!
See also "/home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
Makefile:32: recipe for target 'all' failed
make: *** [all] Error 2


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.