串口IAP实验

所属分类:单片机开发
开发工具:C/C++
文件大小:6135KB
下载次数:5
上传日期:2018-04-06 16:05:02
上 传 者ck_xiaofei
说明:  硬件资源: 1,DS0(连接在PF9) 2,串口1(波特率:460800,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS) 4,按键KEY0(PE4)/KEY1(PE3)/KEY2(PE2)/KEY_UP(PA0,也称之为WK_UP) 实验现象: 本实验开机的时候先显示提示信息,然后等待串口输入接收APP程序(无校验,一次性接收),在串口接收 到APP程序之后,即可执行IAP。如果是SRAM APP,通过按下KEY0即可执行这个收到的SRAM APP程序。如果 是FLASH APP,则需要先按下KEY_UP按键,将串口接收到的APP程序存放到STM32的FLASH,之后再按KEY1即 可以执行这个FLASH APP程序。通过KEY2按键,可以手动清除串口接收到的APP程序。
(Experimental equipment: Explorer STM32F4 development board Objective: Learn the IAP function of STM32 and master the use of IAP. Hardware resources: 1, DS0 (connected to PF9) 2, serial port 1 (baud rate: 460800, PA9/PA10 connection on board USB to serial port chip CH340). 3 inch TFTLCD ALIENTEK, 2.8/3.5/4.3/7 module (via FSMC driver, FSMC_NE4 LCD chip select /A6 RS) 4, the key is KEY0 (PE4) /KEY1 (PE3) /KEY2 (PE2) /KEY_UP (PA0, also known as WK_UP).)

文件列表:
串口IAP实验 (0, 2015-08-13)
串口IAP实验\IAP Bootloader V1.0 (0, 2015-08-13)
串口IAP实验\IAP Bootloader V1.0\CORE (0, 2015-08-13)
串口IAP实验\IAP Bootloader V1.0\CORE\core_cm4.h (109142, 2014-07-17)
串口IAP实验\IAP Bootloader V1.0\CORE\core_cm4_simd.h (22735, 2014-07-17)
串口IAP实验\IAP Bootloader V1.0\CORE\core_cmFunc.h (17146, 2014-07-17)
串口IAP实验\IAP Bootloader V1.0\CORE\core_cmInstr.h (20513, 2014-07-17)
串口IAP实验\IAP Bootloader V1.0\CORE\startup_stm32f40_41xxx.s (29605, 2015-06-04)
串口IAP实验\IAP Bootloader V1.0\FWLIB (0, 2015-08-13)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc (0, 2015-08-13)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\misc.h (6924, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_adc.h (32880, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_can.h (27318, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_crc.h (2416, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_cryp.h (14481, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_dac.h (14946, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_dbgmcu.h (4296, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_dcmi.h (12977, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_dma.h (28882, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_dma2d.h (19692, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_exti.h (8012, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_flash.h (24467, 2014-08-04)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_flash_ramfunc.h (3275, 2014-08-04)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_fmc.h (44924, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_fsmc.h (27181, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_gpio.h (23548, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_hash.h (10084, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_i2c.h (31939, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_iwdg.h (4323, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_ltdc.h (21191, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_pwr.h (7728, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_rcc.h (30063, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_rng.h (3958, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_rtc.h (40546, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_sai.h (25470, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_sdio.h (22777, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_spi.h (21178, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_syscfg.h (8974, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_tim.h (51689, 2014-08-01)
串口IAP实验\IAP Bootloader V1.0\FWLIB\inc\stm32f4xx_usart.h (17935, 2014-08-01)
... ...

实验器材: 探索者STM32F4开发板 实验目的: 学习STM32的IAP功能,掌握IAP的使用. 硬件资源: 1,DS0(连接在PF9) 2,串口1(波特率:460800,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS) 4,按键KEY0(PE4)/KEY1(PE3)/KEY2(PE2)/KEY_UP(PA0,也称之为WK_UP) 实验现象: 本实验开机的时候先显示提示信息,然后等待串口输入接收APP程序(无校验,一次性接收),在串口接收 到APP程序之后,即可执行IAP。如果是SRAM APP,通过按下KEY0即可执行这个收到的SRAM APP程序。如果 是FLASH APP,则需要先按下KEY_UP按键,将串口接收到的APP程序存放到STM32的FLASH,之后再按KEY1即 可以执行这个FLASH APP程序。通过KEY2按键,可以手动清除串口接收到的APP程序。 注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源). 2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!! 3,本实验下载成功后,需用串口调试助手发送SRAM APP/FLASH APP等APP代码(.bin文件)验证IAP功能. 4,SRAM APP代码的起始地址必须是:0X20001000,FLASH APP代码的起始地址必须是:0X08008000。 5,在创建APP代码的时候,切记要设置中断向量偏移量!! 正点原子@ALIENTEK 2014-10-25 广州市星翼电子科技有限公司 电话:020-38271790 传真:020-36773971 购买:http://shop62103354.taobao.com http://shop62057469.taobao.com 公司网站:www.alientek.com 技术论坛:www.openedv.com

近期下载者

相关文件


收藏者