리눅스에서 STM32F4 Discovery 보드에 플래시 프로그래밍이 가능하도록

SWD 드라이버를 아래 링크에서 소스를 받아 컴파일 할수 있다.

git clone git://github.com/texane/stlink.git

Type the following commands:

  • cd stlink
    

     to navigate into the stlink directory and then:

  • /autogen.sh
    
  • ./configure
    
  • make


lsusb 로 VID 0483, PID 3748 을 확인 할 수 있다. (Bus 003 Device 005: ID 0483:3748 STMicroelectronics ST-LINK/V2)

st-util 명령으로 동작 확인.

  • $ st-util 
    2016-01-26T21:19:10 INFO src/stlink-usb.c: -- exit_dfu_mode
    2016-01-26T21:19:10 INFO src/stlink-common.c: Loading device parameters....
    2016-01-26T21:19:10 INFO src/stlink-common.c: Device connected is: F4 device, id 0x10016413
    2016-01-26T21:19:10 INFO src/stlink-common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes
    2016-01-26T21:19:10 INFO gdbserver/gdb-server.c: Chip ID is 00000413, Core ID is  2ba01477.
    2016-01-26T21:19:10 INFO gdbserver/gdb-server.c: Target voltage is 2905 mV.
    2016-01-26T21:19:10 INFO gdbserver/gdb-server.c: Listening at *:4242...
    




+ Recent posts