You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Sir,
I use this software with an arduino to program SPI flash W25q128
now I have test it's SPI functions and it can erase all chip , but when I try to read data fron SPI flash, the software has a problem
here i's my script "just for test"
{$read2}
begin
SectorSize := 4096;
addr := 0; //起始地址
size := SectorSize; //读出的字节数
//初始化SPI引脚的状态并设置SPI频率
if not SPIEnterProgMode(_SPI_SPEED_MAX) then LogPrint('Error setting SPI speed');
SPIWrite(0, 5, $0B, (addr shr 16) and $FF, (addr shr 8) and $FF, addr and $FF, 0); //快速读数据指令
buff := CreateByteArray(SectorSize); //缓冲区
SPIRead(0, SectorSize, buff);
ReadToEditor(SectorSize, 0, buff);
ReadToEditor(SectorSize, SectorSize, buff);
ReadToEditor(SectorSize, 2*SectorSize, buff);
SPIExitProgMode();
LogPrint('Read finished!');
end
look at the function "ReadToEditor", here I use it 3 times
the function it says “ReadToEditor(size, position, buffer, ...); ”
it's easy to know that the software "AsProgrammer.exe" show a window where the data size is 4096 * 3 = 0x3000
but the software shows the picture below
oh it shows that it read 4000h data
furthermore, if i run script again , the data size will increase
so i think maybe the script function "ReadToEditor(size, position, buffer, ...);" has some wrong
hope you check it or point out the problem
emmm, I can't read Pascal code........
The text was updated successfully, but these errors were encountered:
Hi Sir,
I use this software with an arduino to program SPI flash W25q128
now I have test it's SPI functions and it can erase all chip , but when I try to read data fron SPI flash, the software has a problem
here i's my script "just for test"
look at the function "ReadToEditor", here I use it 3 times
![image](https://private-user-images.githubusercontent.com/31300074/254906726-d93874da-b3bd-4c3f-9d07-4adf6af32844.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNzA1NDMsIm5iZiI6MTcyMDE3MDI0MywicGF0aCI6Ii8zMTMwMDA3NC8yNTQ5MDY3MjYtZDkzODc0ZGEtYjNiZC00YzNmLTlkMDctNGFkZjZhZjMyODQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDA5MDQwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVhZmYxODQ1NDRkZDgxNjAwNjlkMzc5ZjdiZGQxZWJkMTY1YjAwNzQxNzg5ZDRlYTI4OTc5OTI0NWI2YWYzMTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZIxEhTZbzBRZtqsM6-Wy8J0BC-UctBfCaU8A_QewIPo)
the function it says “ReadToEditor(size, position, buffer, ...); ”
it's easy to know that the software "AsProgrammer.exe" show a window where the data size is 4096 * 3 = 0x3000
but the software shows the picture below
oh it shows that it read 4000h data
furthermore, if i run script again , the data size will increase
![image](https://private-user-images.githubusercontent.com/31300074/254907435-2f507f5d-3cd1-4b90-a933-4d189c34f5d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNzA1NDMsIm5iZiI6MTcyMDE3MDI0MywicGF0aCI6Ii8zMTMwMDA3NC8yNTQ5MDc0MzUtMmY1MDdmNWQtM2NkMS00YjkwLWE5MzMtNGQxODljMzRmNWQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDA5MDQwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwODRjZWZiMzA1ZWY0MjE2MzIwNWQwNjBjNjZhNDM1NzRlNTIwYjdmZmE5NTQ5YWUwNjg2YTg4NTQ5NDg3NDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UeZ199CZe5jRCn6En-GYrCtLk2vIGQPj9me4rFQBQkc)
so i think maybe the script function "ReadToEditor(size, position, buffer, ...);" has some wrong
hope you check it or point out the problem
emmm, I can't read Pascal code........
The text was updated successfully, but these errors were encountered: