Index: fw/sdk/libyc_qspi.a
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fw/sdk/yc_qspi.c
===================================================================
--- /YC3121_SDK/fw/sdk/yc_qspi.c	(revision 660)
+++ /YC3121_SDK/fw/sdk/yc_qspi.c	(working copy)
@@ -80,7 +80,9 @@
 {
 	uint32_t primask=get_primask();
 	if(!primask)	__asm("CPSID i");
+	uint8_t tmp = pre_qspi();
 	uint8_t result=((uint8_t(*)(uint32_t flash_addr, uint32_t len, uint8_t *tbuf))FUNC_QSPI_FLASH_READ_ADDR)(flash_addr, len, buf);
+	end_qspi(tmp);
 	if(!primask)	__asm("CPSIE i");
 	return result;
 }
@@ -136,6 +138,7 @@
 		else
 		{
 			memset(buf+i,0xff,n);
+			i +=n;
 		}
 		flash_addr +=n;
 		len -=n;
@@ -343,7 +346,7 @@
 	enc_write_flash(APP_INFO_ADDR,app_info_buf,sizeof(app_info_buf));
 }
 
-#define QSPI_LIB_VERSION 0x00010001
+#define QSPI_LIB_VERSION 0x00010004
 uint32_t qspi_GetVersion(void)
 {
     return QSPI_LIB_VERSION;
Index: fw/sdk/yc_qspi.lib
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
