Datasheet 搜索 > 微控制器 > ST Microelectronics(意法半导体) > STM32F417IET6 数据手册 > STM32F417IET6 用户编程技术手册 3/13 页


¥ 718.509
STM32F417IET6 用户编程技术手册 - ST Microelectronics(意法半导体)
制造商:
ST Microelectronics(意法半导体)
分类:
微控制器
封装:
LQFP-176
描述:
STMICROELECTRONICS STM32F417IET6 微控制器, 32位, 以太网MAC, 照相机接口, ARM 皮质-M4, 168 MHz, 512 KB, 192 KB, 176 引脚, LQFP
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
应用领域在P13
导航目录
STM32F417IET6数据手册
Page:
of 13 Go
若手册格式错乱,请下载阅览PDF原文件

AN3965 IAP overview
Doc ID 022104 Rev 1 3/13
2 IAP overview
STM32F4xx devices are implemented in the STMicroelectronics STM324xG-EVAL
evaluation board.
2.1 Principle
You should program the IAP driver to the Flash memory base address via the JTAG/SWD
interface using the development toolchain of your choice or the factory-embedded boot
loader in the System memory area.
The IAP driver uses the USART to:
● Download a binary file from the HyperTerminal to the STM32F4xx internal Flash
memory.
● Upload the STM32F4xx internal Flash memory content (starting from the defined user
application address) into a binary file.
● Execute the user program.
2.2 IAP driver description
The IAP driver contains the following set of source files:
● main.c: Where the USART initialization and RCC configuration are set. A main menu is
then executed from the menu.c file.
● menu.c: Contains the main menu routine. The main menu gives the options of
downloading a new binary file, uploading internal Flash memory, executing the binary
file already loaded and disabling the write protection of the pages where the user loads
his binary file (if they are write-protected).
● flash_if.c: Contains write, erase and disable write protection of the internal Flash
memory functions.
● common.c: Contains functions related to read/write from/to USART peripheral
● ymodem.c: It is used to receive/send the data from/to the HyperTerminal application
using the YMODEM protocol
(a)
. In case of a failure when receiving the data, the “Failed
to receive the file” error message is displayed. If the data is successfully received, it is
programmed into the internal Flash memory from the appropriate address. A
comparison between internal RAM contents and internal Flash memory contents is
performed to check the data integrity. If there is any data discrepancy, the “Verification
failed” error message is displayed. Other error messages are also displayed when the
image file size is greater than the allowed memory space and when the user aborts the
task.
● STM32F4xx Standard Peripherals Library.
a. The Ymodem protocol sends data in 1024-byte blocks. An error check is performed in the data blocks
transmitted to the STM32F4xx internal RAM to compare the transmitted and received data. Blocks
unsuccessfully received are acknowledged with an NAK (Negative AcKnowledgement). For more details about
the Ymodem protocol, refer to the existing documentation.
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件