UNO - it's as if the SPI library isn't linking properly

For some reason my UNO is hanging on any call to the SPI library. I have tried manually setting up the SPI port instead of calling SPI.begin and then things will hang on SPI.transfer(0x7f)

It's as if the library isn't linking properly. I do not get any compile errors. I've been banging my head against this for hours. UNO, Win8.1

With this code the LED blinks 3 times only:

#include <SPI.h>

int led1 = 13;

void setup() {

  pinMode(led1, OUTPUT);

  blinkLED();
  blinkLED();
  blinkLED();
  SPI.begin();
  blinkLED();
  blinkLED();
  blinkLED();
}

void blinkLED(void) {
  digitalWrite(led1, HIGH);
  delay(200);
  digitalWrite(led1, LOW);
  delay(200);
}

void loop() {}

Please edit your post, select the code, and put it between [code] ... [/code] tags.

You can do that by hitting the "Code" icon above the posting area. It is the first icon, with the symbol: </>

int led1 = 13;

Pin 13 on the Uno is one of the hardware SPI pins (SCK). Once you do an SPI.begin you can no longer control it yourself. Hence it stops blinking.

Done. My apologies.

That should do it, thank you.