嗨,这是我在微控制器编程/刻录时遇到麻烦时要遵循的清单。如果你想,试一试:
1)您是否检查过ST-LINK V2编程器是否存在电源电压?原始编程器需要从电路供电,而一些克隆使用自己的电源(取自USB端口)。正确的方法(对于原始的ST-LINK V2)是通过电路板上的微控制器施加电压给编程器供电。
2)您是否检查过微控制器的复位引脚处于高电平(无效)?
3)时钟是否启用/运行?
4)您是否将掉电电压设置为高于电源(如果已设置)?
5)你是否完全删除了微程序中的程序存储器?这可能导致游泳操作困难(阅读有关SWIM的PDF文档)。
请注意,并非所有要点都适用于任何微控制器。只使用那些有意义的。
希望这有帮助,再见。
以上来自于谷歌翻译
以下为原文
Hi, here is a checklist that I follow when I have troubles with microcontroller programming / burning. If you want, give it a try:
1) have you checked if the supply voltage is present on the ST-LINK V2 programmer ? The original programmer needs to be powered from the circuit, while some clones use their own supply (taken from USB port). The correct way (for the original ST-LINK V2) is to power the programmer with the voltage applied to the microcontroller on the board.
2) Have you checked the reset pin of the microcontroller is at high level (inactive) ?
3) Is the clock enabled / running ?
4) Have you set the brownout voltage higher than the power supply (if it was set) ?
5) Have you fully erased the program memory in the micro ? This can cause the swim to operate with much difficulties (read the PDF document about the SWIM).
Note that not all the points will apply to any microcontroller. Use only the ones that makes sense.
Hope this helps, bye.
嗨,这是我在微控制器编程/刻录时遇到麻烦时要遵循的清单。如果你想,试一试:
1)您是否检查过ST-LINK V2编程器是否存在电源电压?原始编程器需要从电路供电,而一些克隆使用自己的电源(取自USB端口)。正确的方法(对于原始的ST-LINK V2)是通过电路板上的微控制器施加电压给编程器供电。
2)您是否检查过微控制器的复位引脚处于高电平(无效)?
3)时钟是否启用/运行?
4)您是否将掉电电压设置为高于电源(如果已设置)?
5)你是否完全删除了微程序中的程序存储器?这可能导致游泳操作困难(阅读有关SWIM的PDF文档)。
请注意,并非所有要点都适用于任何微控制器。只使用那些有意义的。
希望这有帮助,再见。
以上来自于谷歌翻译
以下为原文
Hi, here is a checklist that I follow when I have troubles with microcontroller programming / burning. If you want, give it a try:
1) have you checked if the supply voltage is present on the ST-LINK V2 programmer ? The original programmer needs to be powered from the circuit, while some clones use their own supply (taken from USB port). The correct way (for the original ST-LINK V2) is to power the programmer with the voltage applied to the microcontroller on the board.
2) Have you checked the reset pin of the microcontroller is at high level (inactive) ?
3) Is the clock enabled / running ?
4) Have you set the brownout voltage higher than the power supply (if it was set) ?
5) Have you fully erased the program memory in the micro ? This can cause the swim to operate with much difficulties (read the PDF document about the SWIM).
Note that not all the points will apply to any microcontroller. Use only the ones that makes sense.
Hope this helps, bye.
举报