GithubHelp home page GithubHelp logo

wuyou33 / bldc-mjvesc_v01_3.40 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dongilc/bldc-mjvesc_v01_3.40

1.0 1.0 0.0 1.68 MB

mjvesc firmware stable

Makefile 2.37% Objective-C 7.97% C 84.10% C++ 4.73% HTML 0.01% Assembly 0.76% Shell 0.06%

bldc-mjvesc_v01_3.40's Introduction

This is the source code for the MJVESC DC/BLDC/FOC controller. This is originated from http://vesc-project.com/. More detail description for MJVESC is at https://drcl.mju.ac.kr/research/mjvesc-framework

bldc-mjvesc_v01_3.40

I strongly recommend to use ubuntu 16.04.5 LTS.

1. Build GNU-ARM at Terminal - Easy way but no gui, 2019-02-08

  1. add repository and update

    sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa

    sudo apt-get update

  2. install toolchain and dependencies

    sudo apt-get install gcc-arm-embedded

    sudo apt-get install build-essential openocd git libudev-dev libqt5serialport5-dev

  3. build and run test at source code folder

    make upload

2-1. eclipse setting @ ubuntu, 2019-02-08

  1. install jdk

    @ JDK 8

    sudo add-apt-repository ppa:webupd8team/java

    sudo apt update

    sudo apt install oracle-java8-installer

    @ JDK 11

    sudo add-apt-repository ppa:linuxuprising/java

    sudo apt update

    sudo apt install openjdk-11-jdk

  2. install eclipse

    https://www.eclipse.org/downloads/

  3. install 'gnu-arm-mcu' plugin at help -> eclipse market place

  4. go to 'Packs' perspective, click refresh and install STMicroelectronics->Keil->STM32F4xx_DFP

@ Easy way - Using xpm (not recommended)

  1. install nodejs, npm

    sudo apt-get install nodejs-dev node-gyp libssl1.0-dev

    sudo apt-get install npm

  2. install xpm

    sudo npm install --global xpm

  3. install ARM toolchain

    xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc

  4. install openocd

    xpm install --global @gnu-mcu-eclipse/openocd

@ Using 'gcc-arm-embedded' and 'openocd' (personally recommended)

  1. just set path in eclipse

    windows->preference->MCU

     Global Openocd Path -> /usr/bin
    

    done

2-2. eclipse setting @ windows, 2019-02-08

  1. install jdk

    https://www.oracle.com/technetwork/java/javase/downloads/index.html

  2. install eclipse

    https://www.eclipse.org/downloads/

  3. install 'gnu-arm-mcu' plugin at help -> eclipse market place

  4. go to 'Packs' perspective, click refresh and install STMicroelectronics->Keil->STM32F4xx_DFP

  5. install nodejs, npm

    https://nodejs.org/en/download/

  6. install xpm

    npm install --global xpm

  7. install ARM toolchain

    xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc

  8. install openocd

    xpm install --global @gnu-mcu-eclipse/openocd

  9. install windows build tools

    xpm install --global @gnu-mcu-eclipse/windows-build-tools

2-3. eclipse build&run Test

  1. open eclipse

  2. file -> import -> c/c++ -> Existing Code as Makefile Project

  3. Browse and select target folder, and set 'Toolchain for Indexer Setting' -> 'Arm Cross GCC'

  4. right click at project folder imported, select properties

  5. C/C++ Build -> Settings -> Devices, Select Devices -> STMicroelectronics -> STM32F4 Series -> STM32F407 (in case of mjvesc) -> Apply

  6. right click at project folder imported, select build project

  7. right click at project folder imported, select Run As -> Run Configuration

  8. double click 'GDB OpenOCD Debugging'

  9. select tab 'Debugger' and type below at 'Config options'

    -f board/stm32f4discovery.cfg

  10. Click Run

License

The software is released under the GNU General Public License version 3.0

bldc-mjvesc_v01_3.40's People

Contributors

dongilc avatar

Stargazers

 avatar

Watchers

 avatar

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.