if you can get to the download mode, vol down + home button + power button
download the required firmware from Sammobile website. You need to register.
get the odin program. the link is also available from sammobile.
see if you flash the firmware via odin.