Skip to content
Snippets Groups Projects
Commit 5c8ebfbe authored by ntfreak's avatar ntfreak
Browse files

- probe incorrect for high density stm32 flash

git-svn-id: svn://svn.berlios.de/openocd/trunk@708 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 710c1a9e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment