is there a difference in sending a serial command at setup and during loop?

  Serial1.println("ST");

Even though the PI may be off or booting, you send data, anyway. Then some portion of this two byte stream of data is lost. You didn't think it important to show the PI code, or explain which portion gets lost, but you want us to help you fix it. I doubt that that will happen.