全速不好使.单步执行IAP,写XFLASH,但执行到 call [0xBE.w] 时总提示我一个警告,然后stvd7就死了。程序如下 do //烧写xflash { if ( BytesLeft <= 32 ) BlockBytes = BytesLeft; else BlockBytes = 32; IAP_FLASH_PTR = Flash + BufferOffset; IAP_DATA_PTR = (unsigned int)&(unsigned char)*Buffer + BufferOffset; IAP_DATA_NB = BlockBytes; #ifdef COSMIC //调用 写入 ram 中的 xflashwriter #asm call [0xBE.w] #endasm #endif BytesLeft-=32; BufferOffset+=BlockBytes; } while (BytesLeft > 0 && BytesLeft < ByteNb ); |