Flash大小的单位是k而不是M

This commit is contained in:
nnhy 2015-10-25 10:15:29 +00:00
parent 73a98811d4
commit 0dcea73572
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
Flash::Flash()
{
//Size = *(__IO ushort *)(0x1FFFF7E0) << 10; // 里面的单位是k要转为字节
Size = Sys.FlashSize << 20;
Size = Sys.FlashSize << 10;
Block = FLASH_PAGE_SIZE;
Start = 0x8000000;
ReadModifyWrite = true;