Translations:WRTnode2R开箱指南/6/en

From WRTnode Wiki
Revision as of 18:01, 15 March 2016 by Noel (Talk | contribs) (创建页面,内容为“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...”)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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,所以基于我们提供的代码进行开发,不需要完成这一步)