fix a bug in SPI_setProtectArea, and pass SPI test