keil程序下载进度条显示

keil程序下载进度条显示,第1张

keil程序下载进度条显示 需要1/5 分步阅读

在用keil4写好程序之后,需要生成可以被单片机识别的程序HEX程序。点击keil4菜单栏的project,点击魔法棒那样的一个按钮,点击生成hex文件。之前的使用keil编程 *** 作请看经验引用。

2/5

打开单片机程序下载软件STC-ISP,点击打开程序文件,这里需要你找到刚才生成的HEX文件,双击打开。

3/5

找到你预先设置好的存储路径,打开HEX,把它添加到烧录软件里,此时你看到右边有很多十六进制数。

4/5

点击下载,等待一秒左右,按动单片机开发版的开关,如果可以看到蓝色进度条,并且显示已加密,则程序下载成功。

5/5

此时程序即HEX文件已经下载到了单片机里,胡闭清开发版的灯态宏亮了,是不是很有成就感。裤前有位大神说过点亮了一盏流水灯,你就征服了整个单片机。

你的意思没有说的很明白,但我可友罩茄以提供几个方案:

1 如果只是不想让人看到c源码,那么你直接给别人HEX文件就好了,虽然HEX文件可以反汇编,但是反汇编出来的东西,不是那么容易看懂的

2 对HEX文件加密,连反汇编都不可以了,这样人家好察即使拿到你的HEX文件,也不能随便下载到任意的芯片,如果这样的话,你就得要么提供别人一个上位闷塌机解密程序,要么把解密程序放到bootloader程序里面等等,总之要有解密方案

ADuC内部的FLASH/EE具有三种安全模式:LOCK MODE, SECURE MODE, SERIAL SAFE MODE。这三种模晌脊扒式的具体区别请参看数据手册。宴昌您可以根据需要选择模式。这些安全模式可以通过串行通讯协议使能。

Flash/EE Program Memory Security

The ADuC841/ADuC842/ADuC843 facilitate three modes of Flash/EE program memorysecurity. These modes can be independently activated, restricting access to the internal code

space. These security modes can be enabled as part of serial download protocol as described in Application Note uC004 or via parallel programming. The security modes available on the

parts are as follows:

Lock Mode

 野芦 This mode locks the code memory, disabling parallel programming of the program memory. However, reading the memory in parallel mode and reading the memory via a MOVC command from external memory is still allowed. This mode is deactivated by initiating a code-erase command in serial download or parallel programming modes.

Secure Mode

This mode locks code in memory, disabling parallel programming (program and verify/read commands) as well as disabling the execution of a MOVC instruction from external memory,which is attempting to read the op codes from internal memory. Read/write of internal data Flash/EE from external memory is also disabled. This mode is deactivated by initiating a code-erase command in serial download or parallel programming modes.

Serial Safe Mode

This mode disables serial download capability on the device. If serial safe mode is activated and an attempt is made to reset the part into serial download mode, i.e., RESET asserted and deasserted with PSEN low, the part interprets the serial download reset as a normal reset only. It therefore cannot enter serial download mode but can only execute as a normal reset sequence. Serial safe mode can be disabled only by initiating a code-erase command in parallel programming mode.


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/12368319.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存