j-link或者swd调试
两种
一。JTAG调试(5针),
二。SWD调试(2针),
在JTAG/SWD模式设置库函数
(在文件stm32f10x_gpio.c中):
void GPIO_PinRemapConfig(uint32_t GPIO_Remap, FunctionalState NewState)
setup设置
1.Debug:
use j-link cortex.
run to main
2.Utilities:
use Debug Driver
Update Target before Debugging
3.Debug /setting:
SW---10Mhz
jtag---5mhz
4.Debug /setting/Flash download:
program 勾
verify 勾
reset and run 勾
erase sector 点
软件仿真: