It’s working. Looks like a duff connection on the SD card socket. After I removed and inserted a few times, it started working. The Cobra II board has been in storage for quite some time.
Actually, I need to go back and test the original board. A DOH!! moment. I tested the code again on a different board and that’s why it works. I forgot I swapped them out to use the one without the WiFi module.