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
-
add repository and update
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
-
install toolchain and dependencies
sudo apt-get install gcc-arm-embedded
sudo apt-get install build-essential openocd git libudev-dev libqt5serialport5-dev
-
build and run test at source code folder
make upload
-
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
-
install eclipse
-
install 'gnu-arm-mcu' plugin at help -> eclipse market place
-
go to 'Packs' perspective, click refresh and install STMicroelectronics->Keil->STM32F4xx_DFP
@ Easy way - Using xpm (not recommended)
-
install nodejs, npm
sudo apt-get install nodejs-dev node-gyp libssl1.0-dev
sudo apt-get install npm
-
install xpm
sudo npm install --global xpm
-
install ARM toolchain
xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc
-
install openocd
xpm install --global @gnu-mcu-eclipse/openocd
@ Using 'gcc-arm-embedded' and 'openocd' (personally recommended)
-
just set path in eclipse
windows->preference->MCU
Global Openocd Path -> /usr/bin
done
-
install jdk
https://www.oracle.com/technetwork/java/javase/downloads/index.html
-
install eclipse
-
install 'gnu-arm-mcu' plugin at help -> eclipse market place
-
go to 'Packs' perspective, click refresh and install STMicroelectronics->Keil->STM32F4xx_DFP
-
install nodejs, npm
-
install xpm
npm install --global xpm
-
install ARM toolchain
xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc
-
install openocd
xpm install --global @gnu-mcu-eclipse/openocd
-
install windows build tools
xpm install --global @gnu-mcu-eclipse/windows-build-tools
-
open eclipse
-
file -> import -> c/c++ -> Existing Code as Makefile Project
-
Browse and select target folder, and set 'Toolchain for Indexer Setting' -> 'Arm Cross GCC'
-
right click at project folder imported, select properties
-
C/C++ Build -> Settings -> Devices, Select Devices -> STMicroelectronics -> STM32F4 Series -> STM32F407 (in case of mjvesc) -> Apply
-
right click at project folder imported, select build project
-
right click at project folder imported, select Run As -> Run Configuration
-
double click 'GDB OpenOCD Debugging'
-
select tab 'Debugger' and type below at 'Config options'
-f board/stm32f4discovery.cfg
-
Click Run
The software is released under the GNU General Public License version 3.0