Menu

#91 L052 F_NO_ME, page number limit

0.6
Fixed
nobody
None
Medium
Defect
2017-04-17
2016-07-21
No

Hi,
First thanks for the great piece of soft!

  1. I found that L052 device (0x417, "STM32L05xxx/06xxx) also does not support mass erase, so has to have F_NO_ME flag.
  2. Page by page erase is limited in number of pages - 256. So trying to erase 512 pages (L052C8 case) gives error.
    main.c:630 if (npages > 0xFF || npages < 0) 0xFF has to be changed to 512 (at least, I didn`t check what is max pages number in STMs)

**

Discussion

  • Tormod Volden

    Tormod Volden - 2016-07-21
     
  • Tormod Volden

    Tormod Volden - 2016-07-21

    Hi, thanks, Sergey,

    1. The first point was already fixed in https://sourceforge.net/p/stm32flash/code/ci/8c4aa650bffaf98e96d1b6065ab6e76c43150d8a/ I believe.
    2. Yes, this is a relict from the times where only regular erase (0x43) was supported and where one byte carries the number of pages. It should probably be checked against STM32_MAX_PAGES instead, which is also done in stm32_erase_memory().
     

    Last edit: Tormod Volden 2016-07-21
  • Tormod Volden

    Tormod Volden - 2017-04-17

    Fixed in commit 7683db86c4cc5a4add6e343f55764b55a7caefa1

     
  • Tormod Volden

    Tormod Volden - 2017-04-17
    • status: New --> Fixed
     

Anonymous
Anonymous

Add attachments
Cancel