Wiznet W7500 Reference Manual page 38

W7500 series
Hide thumbs Also See for W7500:
Table of Contents

Advertisement

0x0001 FD00 ~ 0x0001 FDFF
0x0001 FE00 ~ 0x0001 FEFF
0x0001 FF00 ~ 0x0001 FFFF
Information
0x0003 FC00 ~ 0x0003 FCFF
block
0x0003 FD00 ~ 0x0003 FDFF
0x0003 FE00 ~ 0x0003 FEFF
Data block
0x0003 FF00 ~ 0x0003 FFFF
The W7500 embedded Flash memory can be programmed using in-application programming.
IAP allows the user to re-program the Flash memory while the application is running. The
program and erase operations can be performed over the whole product voltage range.
In
W7500x_Library_Examples(https://github.com/Wiznet/W7500/tree/master/W7500x_Library
_Examples/Projects/Peripheral_Examples/Flash/IAP_Example), there is the IAP Example
Project and the below function is supported to use IAP.
void DO_IAP( uint32_t id, uint32_t dst_addr, uint8_t* src_addr, uint32_t size);
This function requests those parameters, id, dst_addr, src_addr and size. 'id' is already defined
in 'main.c'. 'dst_addr' is the flash memory address in the upper table. 'src_addr' is the buffer
pointer user want to program. 'size' is the flash size user chooses. Please refer flash address
and size mentioned in the upper table.
// IAP 'id' paremeter define
#define IAP_ENTRY
#define IAP_ERAS
#define IAP_ERAS_DAT0
#define IAP_ERAS_DAT1
#define IAP_ERAS_SECT
#define IAP_ERAS_BLCK
#define IAP_ERAS_CHIP
W7500x Reference Manual Version1.1.0
0x1FFF1001
// Because Thum code
0x010
(IAP_ERAS + 0) // Erase Data 0 block
(IAP_ERAS + 1) // Erase Data 1 block
(IAP_ERAS + 2) // Erase a Sector in Main Flash Memory
(IAP_ERAS + 3) // Erase a Block in Main Flash Memory
(IAP_ERAS + 4) // Erase all code
256
Sector510
256
Sector511
256
Sector512
256
Reserved
256
256
Lock info
Data0
Data1
38 / 399

Advertisement

Table of Contents
loading

This manual is also suitable for:

W7500p

Table of Contents