Try to install the software youself first through Odin.
If that doesn't work then the motherboard replacement might be your only option.
There is also another thing, the Jtag Riff or something like that, its also used in unbricking screwed up phones, you can look into that and see what phone conditions can it repair. Google it and see what it does, if it can help your case then i think that would be a better solution.
If you are in India then i know that this facility is available somewhere in mumbai, a case was discussed on xda where some guy bricked his phone somehow and got it fixed with that. You can search for that at xda.
Samsung GT-S5830 Galaxy Ace
ROM: AOKP 4.2.2
Scripts: CronMod INT2EXT4+
245MHz - 800MHz, SmartassH3