TOP Contributors

  1. MIKROE (2641 codes)
  2. Alcides Ramos (347 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 (136215 times)
  2. FAT32 Library (69476 times)
  3. Network Ethernet Library (55703 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40778 times)
  7. GSM click (28787 times)
  8. PID Library (26327 times)
  9. mikroSDK (26050 times)
  10. microSD click (25136 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 2 click

Rating:

7

Author: MIKROE

Last Updated: 2018-03-13

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: FLASH

Downloaded: 5919 times

Not followed.

License: MIT license  

Flash 2 click is a mikroBUS add-on board for adding more Flash Memory to your target board microcontroller. It carries Microchip’s SST26VF064B flash-memory module with 64 Mbits capacity. It’s a highly reliable module with a specified minimum of 100,000 read and write cycles and with over 100 years of Data Retention.

No Abuse Reported

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

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

Do you want to report abuse regarding "Flash 2 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 2 click

Flash 2 click

Native view of the Flash 2 click board.

View full image
Flash 2 Click

Flash 2 Click

Flash 2 Click board

View full image

Key functions:

  • void flash2_read( uint32_t address, uint8_t *buffer,uint32_t data_count ); - The function reads data from selected address.
  • void flash2_write( uint32_t address, uint8_t *buffer,  uint32_t data_count ); - The function writes data to  selected address.
  • void flash2_chipErase( void ); - The chip erase function clears all bits in the device 1.

Examples Description

The application is composed of three sections:

  • System Initialization - GPIO and SPI module Initialization.
  • Application Initialization - Flash Driver Initialization, initialization of click by setting mikorBUS to appropriate logic levels, performing global block unlock and chip erase functions.
  • Application Task - Writing data to click memory and displaying the read data via UART.
void applicationTask()
{

 mikrobus_logWrite("Writing MikroE to Flash memory, from address 0x015015:",
_LOG_LINE);
 flash2_write (0x015015, &wrData[0], 9);
 mikrobus_logWrite("Reading 9 bytes of Flash memory, from address 0x015015:",
_LOG_LINE);
 flash2_read(0x015015,&rdData[0],9);
 mikrobus_logWrite("Data read: ",_LOG_TEXT);
 mikrobus_logWrite(rdData,_LOG_LINE);
 Delay_ms(1000);
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and information

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

HDC1000 click

0

HDC1000 Click is a humidity and temperature measurement click board carrying the HDC1000 sensor.

[Learn More]

Current 7 click

0

Current 7 Click is a compact add-on board providing a precise and accurate current sensing solution. This board features the INA282, a wide common-mode range, bidirectional, high-accuracy current shunt monitor from Texas Instruments. The INA282 represents a voltage output current shunt monitor that can sense drops across shunts at common-mode voltages from –14 V to +80 V, independent of the supply voltage, which operates in a range from 2.7V up to 18V supply. The zero-drift topology enables high-precision measurements with maximum input offset voltages as low as 70μV. Also, the user is allowed to process the output signal in analog or digital form.

[Learn More]

ISO ADC click

5

The ISO ADC Click is add-on board current-shunt measurement device with isolated delta-sigma modulator. This Click boardâ„¢ is based on AMC1204BDWR -provide a single-chip solution for measuring the small signal of a shunt resistor across an isolated barrier from Texas Instruments.

[Learn More]