SPI_CLOCK_DIV and internal oscillator

I can't see anything obviously wrong. All I can suggest is looking at the serial prints and work out in what part of the code it is hanging.