Cart Contact NSDSP Home

mcu_erase_page_size

This function returns the erase page size for the specified MCU

Syntax

int mcu_erase_page_size(
        mcu_t             mcu
);

Parameters

mcu - a reference to the MCU object returned by mcu_create or mcu_get_slave_core function.

Return

The function returns the erase page size - the difference between starting addresses of two consecutive erase pages.

Notes

Flash memory must be erased before programming. The erase process turns all the flash bits to '1'. Once the flash is erased, you can program it. The programming turns some of the flash bits from '1' to '0'. Programming cannot turn '0' to '1'. Therefore, to re-program flash, it must first be erased.

Flash can be erased only in chunks of certain size, called pages. Each page may contain one or more rows. The whole row can be programmed at once.

To find out the row size call mcu_write_row_size function.

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.