1.先裝xcode以及homebrew接著在terminal執行
brew install mpfr gmp libmpc texinfo libusb-compat libftdi wget automake libtool
3-1.改.bashrc後source .bashrc
4.將STM32F4DISCOVERY與PC連接
5.執行st-util
6.執行arm-none-eabi-gdb並且連接
7.下載examples
stm32f4-examples
or
STM32F4-workarea
8.隨便選一個project make
9.load elf
10.run
4.將STM32F4DISCOVERY與PC連接
5.執行st-util
6.執行arm-none-eabi-gdb並且連接
tar ext localhost:4242
7.下載examples
stm32f4-examples
or
STM32F4-workarea
8.隨便選一個project make
9.load elf
load YourPath/spi.elf
10.run