TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139050 times)
  2. FAT32 Library (71588 times)
  3. Network Ethernet Library (56988 times)
  4. USB Device Library (47326 times)
  5. Network WiFi Library (43005 times)
  6. FT800 Library (42295 times)
  7. GSM click (29754 times)
  8. mikroSDK (27873 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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: 2435 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

RS485 Isolator 2 Click

0

RS485 Isolator 2 Click features ADM2867E a 5.7 kV rms signal and power isolated full duplex RS-485 transceiver.

[Learn More]

PAC1921 Click

0

PAC1921 Click is a versatile power monitoring and measuring device intended for the high speed, low latency measurements. This device can measure current, voltage or the power of the connected load.

[Learn More]

IrDA 3 Click

0

IrDA 3 Click is an intelligent IR transceiver device that can both send and receive UART commands via the IR interface. IrDA 3 Click features both the IR transceiver and the encoder/decoder IC, used to convert the UART data and send or receive it in IrDA® compatible format. IrDA 3 Click also has an onboard clock generator for the fastest possible UART performance of 115,200 bps, so it does not need an additional clock signal to be generated by the MCU.

[Learn More]