Wirepas SDK
external_flash_mx25r8035f.h
Go to the documentation of this file.
1/* Copyright 2022 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6#ifndef EXTERNAL_FLASH_MX25R8035F_H_
7#define EXTERNAL_FLASH_MX25R8035F_H_
8
9// MX25R8035F chip identification.
10#define MX25_MAN_ID 0xC2
11#define MX25R8035F_MEM_TYPE 0x28
12#define MX25R8035F_MEM_DENSITY 0x14
13
14// MX25R8035F Status register
15// Write In Progress = Busy
16#define MX25_STATUS_WIP 0x01
17// Write Enable Latch
18#define MX25_STATUS_WEL 0x02
19
20// MX25 commands
21#define MX25_CMD_WRITE_STATUS 0x01
22#define MX25_CMD_PROGRAM_PAGE 0x02
23#define MX25_CMD_READ_ARRAY 0x03
24#define MX25_CMD_WRITE_DISABLE 0x04
25#define MX25_CMD_READ_STATUS 0x05
26#define MX25_CMD_WRITE_ENABLE 0x06
27#define MX25_CMD_SECTOR_ERASE 0x20
28#define MX25_CMD_READ_SECURITY 0x2B
29#define MX25_CMD_BLOCK_ERASE_32K 0x52
30#define MX25_CMD_READ_IDENTIFICATION 0x9F
31#define MX25_CMD_RES 0xAB
32
33#endif // EXTERNAL_FLASH_MX25R8035F_H_