flash10 2.1.0.0
|
Flash 10 Click is a compact add-on board representing a highly reliable memory solution. This board features the AT25FF321A, an SPI configurable 32Mbit (2Mx16) serial Flash memory solution from Dialog Semiconductor. The AT25FF321A is an ideal solution for systems in which program code is shadowed from Flash memory into embedded or external RAM (code shadow) for execution and where small amounts of data are stored and updated locally in the Flash memory. It has a flexible and optimized erase architecture for code and data storage applications, non-volatile protection, and four specialized 128-byte OTP security registers to store a unique device ID and locked key storage. This memory can withstand many write cycles (minimum 100k) and has a data retention period greater than 20 years.
We provide a library for the Flash 10 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Flash 10 Click driver.
flash10_cfg_setup
Config Object Initialization function. flash10_init
Initialization function. flash10_erase_memory
This function erases the selected amount of memory which contains the selected address. flash10_memory_write
This function writes a desired number of data bytes starting from the selected memory address. flash10_memory_read
This function reads a desired number of data bytes starting from the selected memory address. This example demonstrates the use of Flash 10 click board by writing specified data to the memory and reading it back.
The demo application is composed of two sections :
Initializes the driver and checks the communication by reading and verifying the device ID.
Writes a desired number of bytes to the memory and then verifies if it is written correctly
by reading from the same memory location and displaying the memory content on the USB UART. The whole 4KB block of memory that contains the STARTING_ADDRESS will be erased before writing data.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.