Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

vtarale/STM32F4

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

114 Commits
114 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32F4

Creating custom header files for the stm32f4. Aim to create a pid controller at last. The stm32f4 is development board with Arm Cortex-M4 arhitecture. It is 32 bit a proccesor. The STM32F4 has multiple adcs, timers, clocks, a dac, and much more.

Current Status

  • Mostly all neccessary header files done except stm32f407_pwm.h
  • Under Development: debbuging the PWM
  • PID controller : the next thing after PWM

Prequistes

  • To flash code on board - openocd
  • Arm 32 bit compiler - arm-none-eabi-gcc
  • nostdlib
  • For checking code and debugging - readelf
  • For debugging - arm-none-eabi-gdb
  • For usart - coolTerm(for mac), minicom
  • Can be downloaded for linux and mac from HomeBrew

Using the Library

Caution: while using library global variables can't be used.

  • While using the library main() function has to be replaced by start()
int start() {                   // has to be always int
  ...
}

Will write the documentation for each library soon

Running the Code !

  • Compiling
 make TARGET=<filename>
  • Running
  make run
  • Debugging
  make debug
  make gdb(seperate terminal)
  • Clean
  make clean
  cd include/
  make clean

References

RM0090 Reference manual
STM32F407 Datasheet
Fundamentals of System-on-Chip Design on Arm Cortex-M Microcontrollers

Lisence

MIT

About

pid controller, and helper libs for stm32f407-discovery

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.