With the TV on, point the remote at the IR receiver and press-and-hold the Return and Play/Pause buttons for a few seconds ...
You can refer to its user manual for the process ... Here's how to update the software on your Samsung TV: Remove the battery ...