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_can_use_method
This function determines if the specified programming method is suitable for the MCU.
Syntax
int mcu_can_use_method(
mcu_t mcu,
int method
);
Parameters
mcu - a reference to the MCU object returned by mcu_create or mcu_get_slave_core function.
method - one of the following constants
Value | Constant | Method |
---|---|---|
0 | NSDSP_METHOD_DEFAULT | The default programming method for the device |
1 | NSDSP_METHOD_LVP | Low voltage ICSP programming (LVP) |
2 | NSDSP_METHOD_HVP | High voltage ICSP programming (HVP) |
Return
The function returns non-zero if the method can be used to program the device, or zero if it cannot.
Different methods may require different physical connections between the target device and NSDSP programmer.
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.