Skip to content

Programming our ARM based microcontrollers without an IDE.

Notifications You must be signed in to change notification settings

JihedChaibi/STM32-with-no-IDE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yes, IDEs make the job easier, but..

If you are an embedded developer, you should know what is going under the hood.

Get rid of that IDE and do it like a boss 😎

Image of nucleo

🎉 GOOD NEWS 😁 : FROM NOW ON WE'LL USE OpenOCD & GDB FOR FLASHING AND DEBUGGING, UNDER BOTH LINUX AND WINDOWS!

What you will need :

✪ Any Text Editor

✪ CMSIS / HAL Drivers (You can use your own HAL!)

✪ Startup File + Linker Script (You can always use you own)

✪ GNU Make (Makefiles)

✪ GNU ARM Embedded Toolchain (Compiler/Other Tools)

✪ OpenOCD (If You Want to Flash/Debug Directly From the Command Line)

✪ The GNU Debugger - GDB (arm-none-eabi-gdb OR gdb-multiarch)

STEPS :

  • DOWNLOAD (CLONE) THIS REPOSITORY :
$ git clone https://github.com/JihedChaibi/STM32-with-no-IDE
  • ENTER THE STM32-with-no-IDE FOLDER :
$ cd STM32-with-no-IDE
  • COMPILE THE DEMO CODE (src/main.c) :
  $ make 
  • FLASH :
  $ make flash
  • CLEAN BINARIES (OPTIONAL) :
  $ make clean
  • ERASE THE CHIP'S CONTENT (OPTIONAL) :
  $ make erase
  • START THE DEBUGGING SESSION :
  $ make debug
  • OPEN ANOTHER TERMINAL WINDOW, AND LET THE FUN BEGIN :
  $ make gdb

Short term goals :

  • Debugging from the command line [:heavy_check_mark: DONE!]
  • Windows support [:heavy_check_mark: DONE!]
  • Using CMake+GNU Make or CMake+Ninja as a main builder [:recycle: IN PROGRESS]

Image of nucleo

About

Programming our ARM based microcontrollers without an IDE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages