- Using the
stm32f407-discovery
board. - Making PID Controller
stm32f407_gpio.h
complete (now can be used !!).stm32f407_usart.h
complete (now can be used !!).stm32f407_adc.h
complete (now can be used !!).stm32f407_dac.h
complete (now can be used !!).light.c
complete.ADC
complete.USART
complete.DAC
complete.
Under Development:
PID controller
: the next thing afterDAC
- To flash code on board -
openocd
- Arm
32 bit
compiler -arm-none-eabi-gcc
nostdlib
- For checking code and debugging -
readelf
- For debugging -
gdb
,lldb
(for mac) - For
usart
-qemu
Caution: while using library global variables
can't be used.
- While using the library
main()
function has to be replaced bystart()
int start() { // has to be always int
...
}
- To compile
light.c
:
$ make compile_light
- To compile
adc.c
:
$ make compile_adc
- To compile
usart.c
:
$ make compile_usart
- To compile
dac.c
:
$ make compile_dac
- To
flash
the code onto the board:
$ make run
- To
debug
:
$ make debug
- To analyze(recheck) the code and see the memory (
readelf
):
$ make read
- To clean (clear
object files
):
$ make clean