差異處
這裏顯示兩個版本的差異處。
| 下次修改 | 前次修改 | ||
|
stm32 [2017/01/31 04:28] jz 建立 |
stm32 [2021/02/27 03:03] (目前版本) jz |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== DFU flash ====== | ||
| + | <code bash> | ||
| + | dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D stm32f4.bin | ||
| + | </code> | ||
| + | |||
| ====== Dev tool ====== | ====== Dev tool ====== | ||
| + | <code bash> | ||
| yaourt -S gcc-arm-none-eabi-bin eclipse-arm gnuarmeclipse-qemu-bin | yaourt -S gcc-arm-none-eabi-bin eclipse-arm gnuarmeclipse-qemu-bin | ||
| - | pacman -S ddd openocd stlink | + | pacman -S ddd openocd stlink arm-none-eabi-gdb |
| + | </code> | ||
| + | |||
| + | ===== Debug ===== | ||
| + | GDB | ||
| + | |||
| + | <code bash> | ||
| + | arm-none-eabi-gdb --eval-command="target remote localhost:1234" YOUR_PROGRAM.elf | ||
| + | </code> | ||
| + | |||
| + | DDD | ||
| + | <code bash> | ||
| + | ddd -debugger arm-none-eabi-gdb YOUR_PROGRAM.elf | ||
| + | # target remote localhost:1234 | ||
| + | </code> | ||
| + | |||
| + | **ref**: | ||
| + | |||
| + | ARM Cortex-M | ||
| + | |||
| + | https://www.youtube.com/watch?v=15z_vn4H41U | ||
| + | |||
| + | Getting started ARM cortex M4 STM32 with Eclipse in Linux | ||
| + | |||
| + | https://www.youtube.com/watch?v=HKX12hJApZM | ||
| + | |||
| + | STM32/ARM Cortex-M3 HOWTO: Development under Ubuntu (Debian) | ||
| + | |||
| + | https://fun-tech.se/stm32/OpenOCD/gdb.php | ||
| + | |||
| + | ARM debugging with gdb | ||
| + | |||
| + | https://www.youtube.com/watch?v=2kLK_sdvC3Q | ||
| + | |||
| + | Embedded Systems Programming on ARM Cortex-M3/M4 | ||
| + | |||
| + | https://www.udemy.com/embedded-system-programming-on-arm-cortex-m3m4 | ||
| + | |||
| + | What is the booting process for ARM? | ||
| + | |||
| + | http://stackoverflow.com/questions/6139952/what-is-the-booting-process-for-arm | ||
| + | |||
| + | mbed OS handbook | ||
| + | |||
| + | https://docs.mbed.com/docs/mbed-os-handbook/en/latest/ | ||
| + | zephyr | ||
| + | https://www.zephyrproject.org | ||
