2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-19 08:38:14 +10:00

- probe incorrect for high density stm32 flash

git-svn-id: svn://svn.berlios.de/openocd/trunk@708 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak 2008-06-11 11:12:24 +00:00
parent 710c1a9ed9
commit 5c8ebfbed2

View File

@ -670,8 +670,7 @@ int stm32x_probe(struct flash_bank_s *bank)
LOG_INFO( "flash size = %dkbytes", num_pages );
/* calculate numbers of pages */
if (page_size - 1024)
num_pages /= (page_size - 1024);
num_pages /= (page_size / 1024);
bank->base = 0x08000000;
bank->size = (num_pages * page_size);