FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
167
Copyright © Bridgetek Limited
5.22
CMD_MEMZERO - write zero to a block of memory
C prototype
void cmd_memzero( uint32_t ptr,
uint32_t num );
Parameters
ptr
Starting address of the memory block
num
Number of bytes in the memory block
The completion of this function is detected when the value of REG_CMD_READ is
equal to REG_CMD_WRITE.
Command layout
+0
CMD_MEMZERO(0xffffff1c)
+4
ptr
+8
num
Examples
To erase the first 1K of main memory:
cmd_memzero(0, 1024);