Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 18_PT1000 RDA5807M-FM-Radio flashaccess TF_conops_BAEFLAGIMAN ... more
Revision 10:111637082023, committed 2016-03-16
- Comitter:
- Sissors
- Date:
- Wed Mar 16 20:19:18 2016 +0000
- Parent:
- 9:7502b2ac21c2
- Child:
- 11:ab8a833a25eb
- Commit message:
- Whoops, was per 16-byte, not 8-byte
Changed in this revision
| FreescaleIAP.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/FreescaleIAP.cpp Wed Mar 16 20:09:08 2016 +0000
+++ b/FreescaleIAP.cpp Wed Mar 16 20:19:18 2016 +0000
@@ -2,7 +2,7 @@
#ifdef TARGET_Freescale
-//#define IAPDEBUG
+#define IAPDEBUG
#ifdef TARGET_K64F
//For K64F
@@ -188,10 +188,10 @@
return AlignError;
#ifdef USE_ProgramPhrase
- //Check erase is per 8 bytes, we round up
- length = (length + 7) >> 3;
+ //Check erase is per 16 bytes, we round up
+ length = (length + 15) >> 4;
#else
- //Otherwise per 4 byte
+ //Otherwise per 4 byte (should check if this is true)
length = (length + 3) >> 2;
#endif