smoothieware not flashing into uC from SD card bootloader

I am using a custom LPC1768 board, I compiled the firmware and renamed the main.bin to firmware.bin and copied to sd card togather with config, after reset the firmware.bin not changing to firmware.cur. All the leds from 1 to 4 are stable, I tried interchanging MOSI and MISO pins, reset the board several times with 3minitues interval manually, tried two sd cards
board is using 12Mhz crystal same as smoothieware

But nothing works, what can be the problem?

Imported from wikidot

Please triple-check your wiring and everything else you can. The bootloader is very simple and is known to work very well, if this is not working it’s likely a problem with your setup.
Are you sure you are using the right SPI port ?

Isnt it P0.6, P0.7, P0.8, P0.9 ?

Any other pin need to be connected?

is the pins i have mentioned is right?