How to program SPI Flash through LT768x - Using STM32F103x as the host MCU

1. Introduction

In LT768x applications, an SPI Flash is often used to store pre-designed images, animations, and fonts etc. This manual is to illustrate how users may utilize an STM32 MCU to program such image data to an SPI Flash that is connected to an LT768x chip.

2. Programming Procedure

Step 1: Contact Levetop for the MCU source code (based on STM32F103x), and program it to the MCU board. In the code, two buttons (KEY0 & KEY1) are designed to work as below:

                        KEY0: Erase the flash chip

                        KEY1: Retrieve and print out the first 100 data bytes stored in the flash

Step 2: Connect the MCU board to LT768x controller board

Step 3: Connect the MCU board to computer through Uart port

Step 4: Power on the MCU board

Step 5: Activate the Uart tool (using 正点原子 ATK-XCOM.exe as an exmple), and set related parameters.                     

Please note that the baud-rate must be set as same as the MCU code setting.

Step 6: Open the Uart connection, the Uart tool window will show as below after running the MCU code:

Step 7: Press KEY0 to erase the flash chip. This operation will take some time. Please note that the flash chip must be erased before programming new data to it.

Step 8: Open the target bin file

Step 9: Send the bin file

Step 10: Press KEY1 to check the first 100 data bytes stored in the SPI Flash chip. Users may verify if the read data are correct by comparing with the bin file.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值