Skip to content

Project-MAR/NUCLEO-L053R8-GCC-OpenOCD-FreeRTOS

Repository files navigation

Eclipse Template for STM32L053R8 + GCC + OpenOCD + FreeRTOS


Working Environment

  • UBUNTU 16.04
  • Eclipse NEON 3 (64 bits)
  • GNU ARM Embedded Toolchain 6-2017-q1-update
  • GNU ARM Eclipse Plug-in
  • OpenOCD V0.10.0

Download Links


Setup

1. Install ARM-Toolchain and OpenOCD

Download binary from links above, extract and put them at.

$/home/opt/

Note:

  • It is not necessary to put in this location but it will be easy to eclipse to auto detect toolchain and OpenOCD
  • Detail for setup and test OpenOCD can be found here
  • Telnet use port 4444
  • GDB use port 3333

Open other terminal, Start OpenOCD server with this command (Nucleo board must be connected).

openocd -f board/stm32l0discovery.cfg

2. Install Eclipse and ARM-Eclipse Plugin.

  • Installl Eclipse Neon 3, Use C/C++ for default workspace.
  • Install the GNU ARM plug-in for Eclipse
  • Setup GNU ARM Plug-in
    • Detail 1
    • Detail 2

3. Installing STM32CubeMX on Linux

The STM32CubeMX tool is written in portable java, but unfortunately it is distributed as a Windows executable embedded in a Windows installer.

To intall it on Linux:

  1. sudo java -jar SetupSTM32CubeMX-4.11.0.exe
  2. install the tool somewhere in your home, eg: /home/you/stm32/cubemx
  3. sudo chown -R you:you /home/you/stm32/cubemx

To run it:

  • java -jar /home/you/stm32/cubemx/STM32CubeMX.exe
  • or mark that file as executable, rename it to STM32CubeMX.jar, and double click it

4. Clone this Repo and open with eclipse.


(Optional) How to set up this environmet in detail.

These are original source and tutorial.

(Optional) Link between CMSISOS and FreeRTOS.

Link between CMISOS <-> FreeRTOS, Use when you want to remove CMSISOS
The following lines are included in FreeRTOSConfig.h:

#define vPortSVCHandler      SVC_Handler
#define xPortPendSVHandler   PendSV_Handler
#define xPortSysTickHandler  SysTick_Handler

Note:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published