-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
executable file
·44 lines (34 loc) · 1.21 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
######################################################################
## Filename: README
## Version:
##
## Author: Bright Pan <[email protected]>
## Created at: Mon Mar 28 19:14:22 2011
##
##
## Modified by: Bright Pan <[email protected]>
## Modified at: Mon Apr 18 16:56:26 2011
##
## Description:
## Copyright (C) 2010-2011, Bright Pan
######################################################################
1. openocd configure file.
openjtag.cfg for jtag device.
stm32f103vct6.cfg for stm32 mcu.
init.cfg for newboot.
sudo openocd -d 3 -l openocd.log -f openjtag.cfg -f stm32_h103_rb.cfg -f init.cfg
2. build in gnu building system.
libtoolize
autoreconf --install
mkdir build
cd build
../configure --host=arm-none-eabi --build=i486-linux-gnu
make
3. libraries linking sequence
if you want to link library a and b, but they are exist call relations of a call b,
so you want to link the two libraries, you should link a first, then link b.
4. gdb
if you want reburn flash, you can write:
monitor newboot
if you want reset cpu, you can write:
monitor reset halt