TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137051 times)
  2. FAT32 Library (70175 times)
  3. Network Ethernet Library (56049 times)
  4. USB Device Library (46371 times)
  5. Network WiFi Library (41991 times)
  6. FT800 Library (41324 times)
  7. GSM click (29083 times)
  8. mikroSDK (26522 times)
  9. PID Library (26464 times)
  10. microSD click (25449 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: 2133 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

N-PLC click

0

N-PLC Click is a compact add-on board that uses existing electrical power lines to transmit data signals. This board features the SM2400, an advanced multi-standard Narrow-band Power Line Communication (N-PLC) modem from Semitech. The SM2400 features a dual-core architecture, a DSP core for N-PLC modulations, and a 32-bit core for running protocols for superior communication performance and flexibility for various open standards and customized implementations. It includes firmware options for IEEE 1901.2 compliant PHY and MAC layers, a 6LoWPAN data link layer, and special modes for industrial IoT applications. In addition to the ability to accept signals from another PLC modem or the power line communication AC coupling circuit, this board also has a handful of other features, such as a selectable interface and power supply, firmware update capabilities, LED indicators, and many others.

[Learn More]

Button ALARM click

0

Button ALARM Click is a very interesting interactive gadget on a Click board™. It is an integrated capacitive touch sensor display in the form of a button. By utilizing an advanced capacitive touch sensing technology, the CTHS15CIC05ALARM sensor can successfully replace the traditional mechanical button, allowing very simplified yet reliable user interfaces to be developed. Besides the touch detection, this sensor also features a green power symbol icon with backlight, which makes the Click board™ very useful for building various stylized and visually appealing interfaces.

[Learn More]

SPI Isolator 5 click

0

SPI Isolator 5 Click is a compact add-on board with a digital isolator optimized for a serial peripheral interface. This board features the DCL541A01, a high-speed quad-channel digital isolator from Toshiba Semiconductor. Outstanding performance characteristics of the DCL541A01 are achieved by Toshiba CMOS technology and the magnetic coupling structure. In addition, they comply with UL 1577 safety-related certification, have a withstand voltage rating of 5kVrms, and operate with the external supply voltage ranging from 2.25V to 5.5V, providing compatibility with lower voltage systems enabling voltage translation functionality across the isolation barrier.

[Learn More]