ODin Mode requires Samsung USB Drivers for the PC.
You can download them here:
http://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
If it then recognizes the phone on the PC, then download the appropriate Samsung firwmare and ODIN from https://www.sammobile.com/firmwares/
You can follow these instructions to reflash, but use the sammobile firmware.
https://androidmtk.com/flash-samsung-stock-rom-using-odin
Try each available version of firmware if the first one you download isn't successful.
If none of them work, your tablet may have other issues on the motherboard.