_FLASH_ERASE value wrong

Beta Testing discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

_FLASH_ERASE value wrong

#1 Post by Dany » 13 Mar 2019 19:19

Hi, the _FLASH_ERASE value, defined in the FLASH library seems to be wrong for some PIC32 types (e.g. in my case the P32MX250F128B). They have a flash erase block size of 1KB in stead of 4 kB (e.g. for the P32MX795F512L).

Extract from the P32MX250F128B datasheet:
Note: The Flash page size on
PIC32MX1XX/2XX devices is 1 KB and
the row size is 128 bytes (256 IW and 32
IW, respectively).
All p32's use the same flash library apparently (MikroPascal for P32, v3.6.0), according this spec:
Note: For PIC32MX5XX/6XX/7XX devices, the
Flash page size is 4 KB and the row size
is 512 bytes (1024 IW and 128 IW,
respectively).
Added: this post is related to this one: viewtopic.php?f=164&t=66186&start=15.I see that the error already has been detected... Thanks VCC.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: _FLASH_ERASE value wrong

#2 Post by VCC » 15 Mar 2019 18:14

Hi,
this problem is even older: viewtopic.php?f=172&t=56173
For PIC32MX270F there are other similar problems: viewtopic.php?f=164&t=66186&start=30
mikroe team should really spend some time fixing all these constants. :)

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: _FLASH_ERASE value wrong

#3 Post by Dany » 16 Mar 2019 12:04

VCC wrote:Hi,
this problem is even older: viewtopic.php?f=172&t=56173
For PIC32MX270F there are other similar problems: viewtopic.php?f=164&t=66186&start=30
mikroe team should really spend some time fixing all these constants. :)
Thanks VCC. It is indeed a pity that this kind of problems have to be detected and stumbled upon over and over again.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: _FLASH_ERASE value wrong

#4 Post by Dany » 15 Jun 2021 18:41

Any news?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroPascal PRO for PIC32 Beta Testing”