调通STM32的串口ISP的经验

1、Boot0需接高(注意不要超过3.6V,非5V容忍脚),Boot1(PB2)需接低(电阻下拉或直接接地)。

2、VDDA/VSSA一定要接好,电压符合要求(2.4~3.6V).即使不用ADC也要接,因为VDDA还为POR/OSC/PLL等“模拟”部分供电。

3、检查复位脚的电位是否正常,JTAG仿真器有可能复位系统。

4、检查TXD/RXD信号通路。当然要畅通,呵呵。

5、如果用非mcuisp的软件,最好在TXD/RXD上加上拉电阻到MAX232电源,防止产生干扰信号。mcuisp从软件上处理了这个干扰,可不考虑这点。

6、波特率先设为9600bps或更低,调通读器件ID后再提高到115200。波特率是否能跑高,与PC串口(USB串口线)、MAX232质量有关。

 7:检查RXD通路的方法:用eagleCom打开串口后,点击流控线一页的”<-3V Normal Txd”按钮,可变成“>+3V Break”。如此,可用万用表测量stm32的PA10/UART1_RX,看其电平是否随eagleCom端控制而变化。eagleCom显示”<-3V Normal Txd”时,PC的DB9的3脚应该是负电压,MAX232输出则为高电平;eagleCom显示“>+3V Break”时,PC的DB9的3脚应该是正电压,MAX232输出为低电平。

B:检查TXD通路的方法:eagleCom设置为9600bps,8数据位,Even校验,1StopBit,定时10ms发送0x7F字符(选中\hh HEX转换后输入\7F),此时应该接收到0×79或0x1F。如不通,用万用表测量PA9/UART1_TX–>MAX232–>PC的DB9的2脚,检查那里有问题。

希望大家表骂偶假洋鬼子,板砖?偶闪! /***************************************************************************** / / This software is published under the GPL 2. / For the detail about GPL 2, look into http://www.gnu.org / / author: sproll.gangaro / mail: sproll@163.com / / Hi every body, thanks for choosing Free Hex Control! / / Errrrr...Actually, I hesitate to release the source code of this control, / Because when I checked after completion, I found that it's really ugly! Putting all / graphic codes in the CDraw class is the worst idea, and this makes re-drawing / specific area difficult, so I lazily redraw almost the whole control whenever / it needs. This results in the slowness (I suggest you can use the control in data / display, ^_^). In next version, I will optimize draw efficiency, / making range class to express character and other elements. / And the ascii-bar will support multi-character language, / for example: Chinese, etc. / / Here are some description of some properties: / HScroll: extend control by horizontal scroll bar / AddressStart: the first byte's offset / AddressStyle: style of address, 0, HEX; 1, Dec / AddressNumber:number of address data in characters / ShowData: used in debugging, don't use it / SolidSelectionDisplay: / selected data's background is solid or not / BytesPerLine: if HScroll is true, how many bytes per line, / if HScroll is false, this depends on control's width / Group: separate data into groups or not in a line / GroupSize: if Group is true, how many bytes in a group / ShowCaret: high light the selected byte or not / ShowAddress: show address bar or not / ShowAscii: show ascii bar or not / ShowColumn: show column bar or not / AddressTextColor: / ColumnTextColor: / TextColor: / AsciiTextColor: / text color in each bar / *****************************************************************************/
目前版本支持MCU设备: ■ARM7 32位处理器 【LPC2214、LPC2292、LPC2131、LPC2132、LPC2136、LPC2138】 ■ARM Cortex-M3 处理器【STM32F10x家族】 ■STC 8051 微处理器(没有讨厌的狗头金广告) 【STC89C51RC、STC89C52RC、STC89C55RD+、STC89C516RD+】 对于"ARM7 32位处理器"、"ARM Cortex-M3 处理器"、"STC 8051 微处理器" 三类中的 各个型号选择,在ISP下载时可以忽略型号,软件自动识别并控制相应的下载命令。 当前版本支持 Oscillator: 8.000M、11.0592M、12.00M、18.432M、22.1184M、24.00M、36.864M ! ComMagic 是一款让您爱不释手的工具软件,串口试 + 常用MCU设 备ISP上载软件, 使用完全免费! 本软件可以在Win95/98、Win2000、 WinNT、WinXP、Vista下面运行.软件功能主要为: 1.接收从串口进来的数据并在窗口显示. 2.所接收到的数据数据显示方式可以选择为字符方式或者HEX方式 3.中文显示无乱码,且不影响速度 4.串口波特率可以选择为110bps-115200bps 5.可以选择“5、6、7、8”四种数据长度. 6.可以选择为“1、1.5、2”三种停止位.(1.5停止位需要硬件支持) 7.第9位数据可以选择为“无、奇校验、偶校验、1、0”四种方式. 8.串口设置和字符串操作等设置在程序关闭时自动保存,打开时自 动载入. 9.可以选择在发送窗口按键即发送该键值. 10.可以在字符串输入框输入您想发送的字符串,并发送. 11.可以在字符串输入框输入您想发送的HEX数据串,数据的值从00 到FF,没有任何限制. 12.可以定时重复发送数据,并可以设置发送时间间隔. 13.可以在发送字符串时选择发送新行,即自动加上回车换行. 14.可以自由控制当前串口的DTR、RTS信号线的输出状态. 15.可以打开一个文本文件或者一个二进制文件预览其内容,查看方 式可以是文本方式. 16.可以打开一个文本文件或者一个二进制文件并以当前波特率发送 到串口. 17.可以保存窗口内容到一个文本文件 18.可以即时显示发送的字节数和接收到的字节数,按清除窗口将会 清零. 19.带有常用MCU设备ISP上载功能. 20.这是个绿色软件,单个文件即可执行,不会给您的机器增加任何 负担.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值