TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136551 times)
  2. FAT32 Library (69744 times)
  3. Network Ethernet Library (55849 times)
  4. USB Device Library (46188 times)
  5. Network WiFi Library (41809 times)
  6. FT800 Library (41000 times)
  7. GSM click (28929 times)
  8. PID Library (26385 times)
  9. mikroSDK (26288 times)
  10. microSD click (25302 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Flash 6 click

Rating:

5

Author: MIKROE

Last Updated: 2020-04-27

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: FLASH

Downloaded: 2066 times

Not followed.

License: MIT license  

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. The 25Q series offers flexibility and performance well beyond ordinary Serial Flash devices.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Flash 6 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Flash 6 click" changes.

Do you want to report abuse regarding "Flash 6 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Flash 6 Click

Flash 6 Click

Native view of the Flash 6 Click board.

View full image
Flash 6 Click

Flash 6 Click

Front and back view of the CLICK_NAME board.

View full image

Library Description

Library contains function for write in memory and read from memory.

Key functions:

  • void flash6_erase_memory_segment( uint8_t segment, uint32_t start_addr ); - Function for eraseing segment
  • void flash6_write_memory_data ( uint32_t addr, uint8_t *data_buf, uint16_t buf_size ); - Function used for writing in memory
  • void flash6_read_memory_data ( uint32_t addr, uint8_t *data_buf, uint16_t buf_size ); - Function used for reading from memory

Examples description

The application is composed of three sections :

  • System Initialization - Initializes SPI module
  • Application Initialization - Initializes driver, resets device and tests communication.
  • Application Task - Clears the memory sector, writes "MikroE" to device memory and then reads it and sends it to log every 2 sec.
void application_task ( )
{
    uint32_t start_addr;
    uint8_t read_buff[ 50 ];
    uint8_t cnt;
    
    start_addr = 0x002000;

    mikrobus_logWrite( " >>>> Erase sector <<<< ", _LOG_LINE );
    flash6_erase_memory_segment( FLASH6_CMD_SECTOR_ERASE_4KB, start_addr );
    Delay_ms( 500 );
    
    mikrobus_logWrite( " >>>> Write in memory <<<< ", _LOG_LINE );
    mikrobus_logWrite( " >>>> ............... <<<< ", _LOG_LINE );
    flash6_write_memory_data( start_addr, &write_buf[ 0 ], 6 );
    mikrobus_logWrite( " >>>> Read from memory <<<< ", _LOG_LINE );
    flash6_read_memory_data( start_addr, &read_buff[ 0 ], 6 );

    mikrobus_logWrite( " >>>> ", _LOG_TEXT );
    for( cnt = 0; cnt < 6; cnt++ )
    {
        mikrobus_logWrite( &read_buff[ cnt ], _LOG_BYTE );
        mikrobus_logWrite( " ", _LOG_TEXT );
        Delay_ms( 100 );
    }
    mikrobus_logWrite( " <<<< ", _LOG_LINE );
    mikrobus_logWrite( "---------------------------", _LOG_LINE );
    
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • SPI Library
  • Conversions Libray

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

ATA6570 click

0

ATA6570 click is a CAN Partial Networking interface board. The click carries the ATA6570, a high-speed CAN transceiver that interfaces a Controller Area Network (CAN) protocol controller and the physical two-wire CAN bus.

[Learn More]

Charger 27 click

0

Charger 27 Click is a compact add-on board that provides a single-cell charging solution. This board features the MP2639B, a Li-Ion or Li-Polymer switching charger from MPS. It is a highly integrated, flexible switch-mode battery charging management device for a single-cell battery for various portable applications. It uses a 4.5V up to 16V external input voltage to provide up to 2A of programmable charging current.

[Learn More]

Methane click

0

Methane click carries an MQ-4 sensor for methane (CH4). The gas sensing layer on the sensor unit is made of tin dioxide (SnO2), which has lower conductivity in clean air.

[Learn More]