# STM32Platform **Repository Path**: mengron/stm32-platform ## Basic Information - **Project Name**: STM32Platform - **Description**: Implement a demo used to study boot and application. It will support OTA in the future. I will implement USB communication firstly, and support OTA by USB secondly. - **Primary Language**: C - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2022-06-08 - **Last Updated**: 2024-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: SCON, bootloader, Application ## README Building command for windows: build type=Debug Bootloader build type=Debug Application build type=Release Bootloader build type=Release Application Building command for ubuntu: ./build.sh type=Debug Bootloader ./build.sh type=Debug Application ./build.sh type=Release Bootloader ./build.sh type=Release Application /********************************************************************* ********************************************************************** **********************************************************************/ How to install OpenOCD in Ubuntu Refer to "https://blog.csdn.net/qq_40839071/article/details/114700646" 1. download source file from github: git clone git://git.code.sf.net/p/openocd/code ---update submodule git submodule init git submodule update --init --recursive 2. download libtool for OpenOcd sudo apt-get install build-essential pkg-config autoconf automake libtool libusb-dev libusb-1.0-0-dev libhidapi-dev sudo apt-get install libtool libsysfs-dev 3. config for OpenOcd open terminal windows of OpenOcd, run bootstrap and config ./bootstrap ./configure 4. build OpenOcd and install sudo make sudo make install 5. check OpenOcd installing successfully Openocd -v /********************************************************************* ********************************************************************** **********************************************************************/ How to install driver for st-link refer to "https://blog.csdn.net/hpf247/article/details/122682231" 1. Download dependence library sudo apt-get install git make cmake libusb-1.0-0-dev sudo apt-get install gcc build-essential 2. Download code for "https://github.com/stlink-org/stlink.git" git clone https://github.com/stlink-org/stlink.git 3. build st-link driver Open terminal window in stlink root path. input cmake and make sequencely. 4. Copy executive file to system folder. cd ./build/Release/bin sudo cp st-* /usr/local/bin cd ../lib sudo cp *.so* /lib32 sudo cp ./config/udev/rules.d/49-stlinkv* /etc/udev/rules.d/ /********************************************************************* ********************************************************************** **********************************************************************/ While run arm-none-eabi-gdb error with loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory You should install libncurses5 with following command: sudo apt install libncurses5 run arm-none-eabi-gdb -v again, it will print version information.