Arduino IDE compile runs, PlatformIO has errors

Using Adafruit Feather M0 and ILI9341 with SD card read/write breakout. I have compiled code that works with the TFT display and can read/write the SD card. But recently, code compiled on PlatformIO won’t access the SD card after a write to the TFT display. The same code compiled on Arduino IDE runs and accesses the SD card. Do I have something configured wrong?

Without your platformio.ini, code, the used Arduino core version for your board, your Arduino IDE configuration and the versions of the libraries you used in the Arduino IDE there’s an almost 0% chance that anything meaningful can be said about your error.