Difference between revisions of "Translations:WRTnode2R开箱指南/6/en"

From WRTnode Wiki
Jump to: navigation, search
(创建页面,内容为“root@OpenWrt:~# opkg install xxxx </pre> =Play stm32= ==Updating the firmware of stm32== In the stm32 of WRTnode2R/en, we preset a bootloader in the first 4K of...”)
(No difference)

Revision as of 18:01, 15 March 2016

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (WRTnode2R开箱指南)
root@OpenWrt:~# opkg install xxxx
</pre>
=把玩stm32=
==固件更新==
在[[WRTnode2R]]的stm32上,为了实现在7688上更新stm32的固件,我们在stm32的前4k地址烧写了一个bootloader程序,同时在7688上也提供了刷写固件的程序flash-stm32。<br>
如果使用flash-stm32,用户仅需要执行<br>
 root@OpenWrt:~# flash-stm32 URL
URL这个命令行参数可以是stm32固件的链接,也可以是指定的本地stm32系统;就可以将存在服务器上的固件或者本地的固件烧写到stm32中。<br>
建议大家升级stm32的固件,新的固件会有更好的体验:
 root@OpenWrt:~# flash-stm32 http://d.wrtnode.com/2R-stm32/WRTnode2r_stm32_V1.bin
[[文件:flash-stm32-step.png]]<br>
如上图stm32已经升级完成,升级完以后stm32会自动重启。<br>
如果用户希望进行stm32的开发,我们建议用户使用stlink等在线调试工具来开发、调试和烧写代码。在开发前只需要注意点三:<br>
*用户开发的代码中要将中断向量表重定向到0x08001000位置。<br>
*用户代码下载时,要下载到0x08001000位置。<br>
*如果用户完全抛弃我们提供的代码进行开发,但是又希望能够支持在线更新固件的功能,需要在用户开发的代码中实现7688控制stm32复位的功能。(在我们提供的代码中,已经实现了reset这个cmd,所以基于我们提供的代码进行开发,不需要完成这一步)<br>
Translationroot@OpenWrt:~# opkg install xxxx
</pre>
=Play stm32=
==Updating the firmware of stm32==
In the stm32 of [[WRTnode2R/en]], we preset a bootloader in the first 4K of stm32 so we could update firmware of stm32 online in mt7688, which provide by a 7688 tools named flash-stm32.<br />
Using flash-stm32 like:<br />
 root@OpenWrt:~# flash-stm32 URL
URL argument could be the file url from internet or the local file.<br />
We recommended to update the new firmware:
 root@OpenWrt:~# flash-stm32 http://d.wrtnode.com/2R-stm32/WRTnode2r_stm32_V1.bin
[[file:flash-stm32-step.png]]<br />
As shown, stm32 updating finished, after that stm32 will reboot automatically.<br /><br />
If user want to do stm32 development by yourself, use tools like stlink to deleop/debug/reflash. Here's what we must know:<br />
#用户开发的代码中要将中断向量表重定向到0x08001000位置。
#用户代码下载时,要下载到0x08001000位置。
#如果用户完全抛弃我们提供的代码进行开发,但是又希望能够支持在线更新固件的功能,需要在用户开发的代码中实现7688控制stm32复位的功能。(在我们提供的代码中,已经实现了reset这个cmd,所以基于我们提供的代码进行开发,不需要完成这一步)<br />

root@OpenWrt:~# opkg install xxxx </pre>

Play stm32

Updating the firmware of stm32

In the stm32 of WRTnode2R/en, we preset a bootloader in the first 4K of stm32 so we could update firmware of stm32 online in mt7688, which provide by a 7688 tools named flash-stm32.
Using flash-stm32 like:

root@OpenWrt:~# flash-stm32 URL

URL argument could be the file url from internet or the local file.
We recommended to update the new firmware:

root@OpenWrt:~# flash-stm32 http://d.wrtnode.com/2R-stm32/WRTnode2r_stm32_V1.bin

Flash-stm32-step.png
As shown, stm32 updating finished, after that stm32 will reboot automatically.

If user want to do stm32 development by yourself, use tools like stlink to deleop/debug/reflash. Here's what we must know:

  1. 用户开发的代码中要将中断向量表重定向到0x08001000位置。
  2. 用户代码下载时,要下载到0x08001000位置。
  3. 如果用户完全抛弃我们提供的代码进行开发,但是又希望能够支持在线更新固件的功能,需要在用户开发的代码中实现7688控制stm32复位的功能。(在我们提供的代码中,已经实现了reset这个cmd,所以基于我们提供的代码进行开发,不需要完成这一步)