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.