flash6 2.0.0.0
|
The Flash 6 Click based on W25Q128JV (128M-bit) flash memory from Winbond provides a storage solution for systems with limited space, pins and power.
We provide a library for the Flash6 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Flash6 Click driver.
- Initialization function.void flash6_cfg_setup ( flash6_cfg_t *cfg );
FLASH6_RETVAL flash6_init ( flash6_t *ctx, flash6_cfg_t *cfg );
- Function used for reading from memoryvoid flash6_write_memory_data ( flash6_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size );
void flash6_read_memory_data ( flash6_t *ctx, uint32_t addr, uint8_t *data_buf, uint16_t buf_size );
void flash6_erase_memory_segment( flash6_t *ctx, uint8_t segment, uint32_t start_addr );
This application writes in memory and reads from memory.
The demo application is composed of two sections :
Initializes driver, resets device and tests communication.
Clears the memory sector, writes "MikroE" to device memory and then reads it and sends it to log every 2 sec.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.