Add target flashing for C4. Closes #4659