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 (139058 times)
  2. FAT32 Library (71588 times)
  3. Network Ethernet Library (56988 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29761 times)
  8. mikroSDK (27874 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: 2437 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

Smart Buck click

5

Smart Buck click is the two-channel step-down DC/DC converter and regulator, with plenty of additional functions. It can provide voltage measurement at each of its two programmable voltage outputs, as well as the measurement of the current consumption.

[Learn More]

Thingstream Click

5

Thingstream Click is a gateway Click board which provides a simple and reliable connection to the Thingstream Cloud platform, a cloud-based rapid prototyping environment, hosted by Thingstream AG.

[Learn More]

Angle 10 Click

0

Angle 10 Click is a compact add-on board that detects the absolute angular position of a permanent magnet. This board features the AS5070A, a high-resolution angular position sensor with an analog output for precise absolute angle measurement from ams AG. Based on a Hall sensor technology, the AS5070A measures the orthogonal component of the flux density over a full-turn rotation and compensates for external stray magnetic fields with a robust architecture based on a 14-bit sensor array and analog front-end. Only a simple two-pole magnet rotating over the center of the AS5070A is required to measure the angle, providing an instant indication of the magnet’s angular position.

[Learn More]