mcu_erase_page_size
mcu_write_row_size mcu_id mcu_can_use_method mcu_can_debug mcu_debug_cap mcu_bp_classes mcu_bp_class_first mcu_bp_class_count mcu_bp_class_cap mcu_bp_class_max_count mcu_debug_rom_reserve mcu_debug_ram_reservemcu_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
© 2007-2025 Northern Software Inc. All Rights Reserved.