TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137081 times)
  2. FAT32 Library (70222 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46413 times)
  5. Network WiFi Library (42032 times)
  6. FT800 Library (41375 times)
  7. GSM click (29109 times)
  8. mikroSDK (26555 times)
  9. PID Library (26487 times)
  10. microSD click (25486 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: 2135 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

Charger 6 click

0

Charger 6 Click is a compact add-on board that represents a single-cell battery charger. This board features the BQ25601, an I2C controlled battery charger for high input voltage and narrow voltage DC power path management from Texas Instruments. This buck charger supports USB, and it’s optimized for USB voltage input. The low impedance power path optimizes switch-mode operation efficiency, reduces battery charging time, and extends battery life during discharge. It also has a programmable current limiting, allowing it to use an external power supply rated up to 13.5V. This Click board™ is suitable as a Li-Ion and Li-polymer battery charger for portable devices and accessories, power tools, and more.

[Learn More]

Mikromedia 3 for PIC Capacitive

0

This project contains demo example for Mikromedia 3 for PIC Capacitive.

[Learn More]

I2C MUX 4 click

5

I2C MUX 4 Click is a compact add-on board that contains a dual bidirectional translating switch dedicated for applications with I2C slave address conflicts. This board features the TCA9543APWR, a low voltage 2-channel I2C bus switch with interrupt logic from Texas Instruments.

[Learn More]