Ensure your software (like AVRDude or STM32CubeProgrammer) and hardware programmers are communicating properly.
Understanding HEX Files: A Guide to Testing and Implementation sample hex file download
Plug your programmer into your PC and your target board. sample hex file download