2021-10-22 17:29:20 索煒達(dá)電子 792
項(xiàng)目編號(hào):E1692
文件大?。?32K
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡(jiǎn)要概述:
硬件資源:
1,DS0(連接在PB5)
2,串口1(波特率:115200,PA9/PA10連接在板載USB轉(zhuǎn)串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模塊(通過FSMC驅(qū)動(dòng),FSMC_NE4接LCD片選/A10接RS)
4,按鍵KEY0(PE4)/KEY1(PE3)/KEY2(PE2)/KEY_UP(PA0,也稱之為WK_UP)
實(shí)驗(yàn)現(xiàn)象:
本實(shí)驗(yàn)開機(jī)的時(shí)候先顯示提示信息,然后等待串口輸入接收APP程序(無校驗(yàn),一次性接收),在串口接收
到APP程序之后,即可執(zhí)行IAP。如果是SRAM APP,通過按下KEY0即可執(zhí)行這個(gè)收到的SRAM APP程序。如果
是FLASH APP,則需要先按下KEY_UP按鍵,將串口接收到的APP程序存放到STM32的FLASH,之后再按KEY1即
可以執(zhí)行這個(gè)FLASH APP程序。通過KEY2按鍵,可以手動(dòng)清除串口接收到的APP程序。
注意事項(xiàng):
1,4.3寸和7寸屏需要比較大電流,USB供電可能不足,請(qǐng)用外部電源適配器(推薦外接12V 1A電源).
2,本例程在LCD_Init函數(shù)里面(在ILI93xx.c),用到了printf,如果不初始化串口1,將導(dǎo)致液晶無法顯示!!
3,本實(shí)驗(yàn)下載成功后,需用串口調(diào)試助手發(fā)送SRAM APP/FLASH APP等APP代碼(.bin文件)驗(yàn)證IAP功能.
目錄│文件列表:
└ IAP-Bootloader V1.0
│ keilkilll.bat
│ README.TXT
├ CORE
│ │ core_cm3.c
│ │ core_cm3.h
│ └ startup_stm32f10x_hd.s
├ HARDWARE
│ ├ KEY
│ │ │ key.c
│ │ └ key.h
│ ├ LCD
│ │ │ font.h
│ │ │ lcd.c
│ │ └ lcd.h
│ ├ LED
│ │ │ led.c
│ │ └ led.h
│ └ STMFLASH
│ │ stmflash.c
│ └ stmflash.h
├ IAP
│ │ iap.c
│ └ iap.h
├ OBJ
│ └ IAP.hex
├ STM32F10x_FWLib
│ ├ inc
│ │ │ misc.h
│ │ │ stm32f10x_adc.h
│ │ │ stm32f10x_bkp.h
│ │ │ stm32f10x_can.h
│ │ │ stm32f10x_cec.h
│ │ │ stm32f10x_crc.h
│ │ │ stm32f10x_dac.h
│ │ │ stm32f10x_dbgmcu.h
│ │ │ stm32f10x_dma.h
│ │ │ stm32f10x_exti.h
│ │ │ stm32f10x_flash.h
│ │ │ stm32f10x_fsmc.h
│ │ │ stm32f10x_gpio.h
│ │ │ stm32f10x_i2c.h
│ │ │ stm32f10x_iwdg.h
│ │ │ stm32f10x_pwr.h
│ │ │ stm32f10x_rcc.h
│ │ │ stm32f10x_rtc.h
│ │ │ stm32f10x_sdio.h
│ │ │ stm32f10x_spi.h
│ │ │ stm32f10x_tim.h
│ │ │ stm32f10x_usart.h
│ │ └ stm32f10x_wwdg.h
│ └ src
│ │ misc.c
│ │ stm32f10x_adc.c
│ │ stm32f10x_bkp.c
│ │ stm32f10x_can.c
│ │ stm32f10x_cec.c
│ │ stm32f10x_crc.c
│ │ stm32f10x_dac.c
│ │ stm32f10x_dbgmcu.c
│ │ stm32f10x_dma.c
│ │ stm32f10x_exti.c
│ │ stm32f10x_flash.c
│ │ stm32f10x_fsmc.c
│ │ stm32f10x_gpio.c
│ │ stm32f10x_i2c.c
│ │ stm32f10x_iwdg.c
│ │ stm32f10x_pwr.c
│ │ stm32f10x_rcc.c
│ │ stm32f10x_rtc.c
│ │ stm32f10x_sdio.c
│ │ stm32f10x_spi.c
│ │ stm32f10x_tim.c
│ │ stm32f10x_usart.c
│ └ stm32f10x_wwdg.c
├ SYSTEM
│ ├ delay
│ │ │ delay.c
│ │ └ delay.h
│ ├ sys
│ │ │ sys.c
│ │ └ sys.h
│ └ usart
│ │ usart.c
│ └ usart.h
└ USER
│ IAP.uvguix.Administrator
│ IAP.uvoptx
│ IAP.uvprojx
│ JLinkSettings.ini
│ main.c
│ stm32f10x.h
│ stm32f10x_conf.h
│ stm32f10x_it.c
│ stm32f10x_it.h
│ system_stm32f10x.c
└ system_stm32f10x.h