Flash Issue - The target is in a bad state

I have just solved the issue using this command i found on this post.
sudo ./flash.sh jetson-tx2i mmcblk0p1

I will check what is missing and see if I can install it manually.